From 91e76129e7262e0be0c222272d94eef77202b80e Mon Sep 17 00:00:00 2001 From: beveloper Date: Tue, 23 Dec 2003 23:20:41 +0000 Subject: [PATCH] bugfix git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5741 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/plugins/au_reader/au_reader.cpp | 5 +++++ src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/add-ons/media/plugins/au_reader/au_reader.cpp b/src/add-ons/media/plugins/au_reader/au_reader.cpp index 2f8163b366..c65ef64183 100644 --- a/src/add-ons/media/plugins/au_reader/au_reader.cpp +++ b/src/add-ons/media/plugins/au_reader/au_reader.cpp @@ -204,6 +204,7 @@ auReader::Sniff(int32 *streamCount) fFormat.u.raw_audio.format = media_raw_audio_format::B_AUDIO_SHORT; break; case SND_FORMAT_LINEAR_24: + // XXX broken fFormat.u.raw_audio.format = media_raw_audio_format::B_AUDIO_INT; break; case SND_FORMAT_LINEAR_32: @@ -213,8 +214,12 @@ auReader::Sniff(int32 *streamCount) fFormat.u.raw_audio.format = media_raw_audio_format::B_AUDIO_FLOAT; break; case SND_FORMAT_DOUBLE: + // XXX broken fFormat.u.raw_audio.format = media_raw_audio_format::B_AUDIO_FLOAT; break; + default: + TRACE("WavReader::Sniff: unhandled raw format\n"); + return B_ERROR; } fFormat.u.raw_audio.byte_order = B_MEDIA_BIG_ENDIAN; fFormat.u.raw_audio.buffer_size = fBufferSize; diff --git a/src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp b/src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp index e5e5206774..fb1c460c32 100644 --- a/src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp +++ b/src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp @@ -140,7 +140,7 @@ WavReader::Sniff(int32 *streamCount) } break; default: - TRACE("WavReader::Sniff: ignoring chunk 0x%08lx of %lu bytes\n", UINT32(chunk.fourcc), chunk.len); + TRACE("WavReader::Sniff: ignoring chunk 0x%08lx of %lu bytes\n", UINT32(chunk.fourcc), UINT32(chunk.len)); break; } pos += UINT32(chunk.len);