diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-11-09 23:09:44 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-11-09 23:09:44 +0000 |
commit | fb065187e4ee9e0d1709b344ec01bb426ff1e43b (patch) | |
tree | ca7bf5ed6f0731429b9f9b6d62f2993583c9bcfb /audio/fmodaudio.c | |
parent | bf71c9d9b64a70e56db351c38ff71e5e27d871e7 (diff) | |
download | qemu-fb065187e4ee9e0d1709b344ec01bb426ff1e43b.zip qemu-fb065187e4ee9e0d1709b344ec01bb426ff1e43b.tar.gz qemu-fb065187e4ee9e0d1709b344ec01bb426ff1e43b.tar.bz2 |
audio clean up (initial patch by malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1131 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/fmodaudio.c')
-rw-r--r-- | audio/fmodaudio.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/audio/fmodaudio.c b/audio/fmodaudio.c index 7457033..8245f93 100644 --- a/audio/fmodaudio.c +++ b/audio/fmodaudio.c @@ -25,9 +25,22 @@ #include <fmod_errors.h> #include "vl.h" -#define AUDIO_CAP "fmod" -#include "audio/audio.h" -#include "audio/fmodaudio.h" +#include "audio/audio_int.h" + +typedef struct FMODVoice { + HWVoice hw; + unsigned int old_pos; + FSOUND_SAMPLE *fmod_sample; + int channel; +} FMODVoice; + + +#define dolog(...) AUD_log ("fmod", __VA_ARGS__) +#ifdef DEBUG +#define ldebug(...) dolog (__VA_ARGS__) +#else +#define ldebug(...) +#endif #define QC_FMOD_DRV "QEMU_FMOD_DRV" #define QC_FMOD_FREQ "QEMU_FMOD_FREQ" |