From fb065187e4ee9e0d1709b344ec01bb426ff1e43b Mon Sep 17 00:00:00 2001 From: bellard Date: Tue, 9 Nov 2004 23:09:44 +0000 Subject: audio clean up (initial patch by malc) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1131 c046a42c-6fe2-441c-8c8c-71466251a162 --- audio/fmodaudio.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'audio/fmodaudio.c') diff --git a/audio/fmodaudio.c b/audio/fmodaudio.c index 7457033f92..8245f93fde 100644 --- a/audio/fmodaudio.c +++ b/audio/fmodaudio.c @@ -25,9 +25,22 @@ #include #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" -- cgit v1.2.3