diff options
Diffstat (limited to 'audio/audio.h')
-rw-r--r-- | audio/audio.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/audio/audio.h b/audio/audio.h index 4e1a694..14fa3bc 100644 --- a/audio/audio.h +++ b/audio/audio.h @@ -24,6 +24,7 @@ #ifndef QEMU_AUDIO_H #define QEMU_AUDIO_H +#include "config.h" #include "sys-queue.h" typedef void (*audio_callback_fn_t) (void *opaque, int avail); @@ -35,10 +36,17 @@ typedef enum { AUD_FMT_S16 } audfmt_e; +#ifdef WORDS_BIGENDIAN +#define AUDIO_HOST_ENDIANNESS 1 +#else +#define AUDIO_HOST_ENDIANNESS 0 +#endif + typedef struct { int freq; int nchannels; audfmt_e fmt; + int endianness; } audsettings_t; struct audio_capture_ops { @@ -74,7 +82,6 @@ void AUD_remove_card (QEMUSoundCard *card); int AUD_add_capture ( AudioState *s, audsettings_t *as, - int endian, struct audio_capture_ops *ops, void *opaque ); @@ -85,8 +92,7 @@ SWVoiceOut *AUD_open_out ( const char *name, void *callback_opaque, audio_callback_fn_t callback_fn, - audsettings_t *settings, - int sw_endian + audsettings_t *settings ); void AUD_close_out (QEMUSoundCard *card, SWVoiceOut *sw); @@ -104,8 +110,7 @@ SWVoiceIn *AUD_open_in ( const char *name, void *callback_opaque, audio_callback_fn_t callback_fn, - audsettings_t *settings, - int sw_endian + audsettings_t *settings ); void AUD_close_in (QEMUSoundCard *card, SWVoiceIn *sw); |