aboutsummaryrefslogtreecommitdiff
path: root/hw/sb16.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-07-04 21:47:22 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-07-04 21:47:22 +0000
commitd929eba5d47f097302779d55427712c3ceb931ad (patch)
tree14ca7172d2abe2d446f96b885464b17044705d3e /hw/sb16.c
parent219fb125039e175a92aa14684ac688305b5143bd (diff)
downloadqemu-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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/sb16.c b/hw/sb16.c
index 6443a90..04325ac 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
);
}