diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-07-04 21:47:22 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-07-04 21:47:22 +0000 |
commit | d929eba5d47f097302779d55427712c3ceb931ad (patch) | |
tree | 14ca7172d2abe2d446f96b885464b17044705d3e /hw/sb16.c | |
parent | 219fb125039e175a92aa14684ac688305b5143bd (diff) | |
download | qemu-d929eba5d47f097302779d55427712c3ceb931ad.zip qemu-d929eba5d47f097302779d55427712c3ceb931ad.tar.gz qemu-d929eba5d47f097302779d55427712c3ceb931ad.tar.bz2 |
audio endianness API changes (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2042 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sb16.c')
-rw-r--r-- | hw/sb16.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 ); } |