aboutsummaryrefslogtreecommitdiff
path: root/audio/wavcapture.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 /audio/wavcapture.c
parent219fb125039e175a92aa14684ac688305b5143bd (diff)
audio endianness API changes (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2042 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/wavcapture.c')
-rw-r--r--audio/wavcapture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/wavcapture.c b/audio/wavcapture.c
index 33f04c50b3..7458a5e3e6 100644
--- a/audio/wavcapture.c
+++ b/audio/wavcapture.c
@@ -70,6 +70,7 @@ void wav_capture (const char *path, int freq, int bits16, int stereo)
as.freq = freq;
as.nchannels = 1 << stereo;
as.fmt = bits16 ? AUD_FMT_S16 : AUD_FMT_U8;
+ as.endianness = 0;
ops.state = wav_state_cb;
ops.capture = wav_capture_cb;
@@ -97,5 +98,5 @@ void wav_capture (const char *path, int freq, int bits16, int stereo)
}
qemu_put_buffer (wav->f, hdr, sizeof (hdr));
- AUD_add_capture (NULL, &as, 0, &ops, wav);
+ AUD_add_capture (NULL, &as, &ops, wav);
}