diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-17 22:19:29 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-17 22:19:29 +0000 |
commit | f941aa256f2254c3f35f00fcf5d7f20dba55a5b7 (patch) | |
tree | 7e92c23171d665c8841d2afb7765ac45c94b70aa /audio/wavaudio.c | |
parent | b93aebecb0844b220c1652b79e698db2afe3bbab (diff) |
Qemu support for S32 and U32 alsa output, by Vassili Karpov.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2427 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/wavaudio.c')
-rw-r--r-- | audio/wavaudio.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/audio/wavaudio.c b/audio/wavaudio.c index a552b7e973..2dbc58cbe1 100644 --- a/audio/wavaudio.c +++ b/audio/wavaudio.c @@ -41,7 +41,8 @@ static struct { { 44100, 2, - AUD_FMT_S16 + AUD_FMT_S16, + AUDIO_HOST_ENDIANNESS }, "qemu.wav" }; @@ -131,6 +132,11 @@ static int wav_init_out (HWVoiceOut *hw, audsettings_t *as) case AUD_FMT_U16: bits16 = 1; break; + + case AUD_FMT_S32: + case AUD_FMT_U32: + dolog ("WAVE files can not handle 32bit formats\n"); + return -1; } hdr[34] = bits16 ? 0x10 : 0x08; |