mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
audio endianness API changes (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2042 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
219fb12503
commit
d929eba5d4
17 changed files with 85 additions and 109 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue