From d929eba5d47f097302779d55427712c3ceb931ad Mon Sep 17 00:00:00 2001 From: bellard Date: Tue, 4 Jul 2006 21:47:22 +0000 Subject: audio endianness API changes (malc) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2042 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/sb16.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'hw/sb16.c') diff --git a/hw/sb16.c b/hw/sb16.c index 6443a90d03..04325ac031 100644 --- a/hw/sb16.c +++ b/hw/sb16.c @@ -203,6 +203,7 @@ static void continue_dma8 (SB16State *s) as.freq = s->freq; as.nchannels = 1 << s->fmt_stereo; as.fmt = s->fmt; + as.endianness = 0; s->voice = AUD_open_out ( &s->card, @@ -210,8 +211,7 @@ static void continue_dma8 (SB16State *s) "sb16", s, SB_audio_callback, - &as, - 0 /* little endian */ + &as ); } @@ -348,6 +348,7 @@ static void dma_cmd (SB16State *s, uint8_t cmd, uint8_t d0, int dma_len) as.freq = s->freq; as.nchannels = 1 << s->fmt_stereo; as.fmt = s->fmt; + as.endianness = 0; s->voice = AUD_open_out ( &s->card, @@ -355,8 +356,7 @@ static void dma_cmd (SB16State *s, uint8_t cmd, uint8_t d0, int dma_len) "sb16", s, SB_audio_callback, - &as, - 0 /* little endian */ + &as ); } @@ -838,6 +838,7 @@ static void legacy_reset (SB16State *s) as.freq = s->freq; as.nchannels = 1; as.fmt = AUD_FMT_U8; + as.endianness = 0; s->voice = AUD_open_out ( &s->card, @@ -845,8 +846,7 @@ static void legacy_reset (SB16State *s) "sb16", s, SB_audio_callback, - &as, - 0 /* little endian */ + &as ); /* Not sure about that... */ @@ -1371,6 +1371,7 @@ static int SB_load (QEMUFile *f, void *opaque, int version_id) as.freq = s->freq; as.nchannels = 1 << s->fmt_stereo; as.fmt = s->fmt; + as.endianness = 0; s->voice = AUD_open_out ( &s->card, @@ -1378,8 +1379,7 @@ static int SB_load (QEMUFile *f, void *opaque, int version_id) "sb16", s, SB_audio_callback, - &as, - 0 /* little endian */ + &as ); } -- cgit v1.2.3