From f9d0d2a44a726f417911adfb03aee9caf22adebf Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 27 Jan 2009 03:26:51 +0000 Subject: Add/Update comments. svn-id: r36094 --- engines/agos/sound.cpp | 2 +- sound/adpcm.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp index dc8d6d8fc2..4f56daf1cf 100644 --- a/engines/agos/sound.cpp +++ b/engines/agos/sound.cpp @@ -739,7 +739,7 @@ void Sound::playSoundData(Audio::SoundHandle *handle, byte *soundData, uint soun uint16 compType; int blockAlign, rate; - // FIXME: How about using makeWAVStream() here? + // TODO: Use makeWAVStream() in future, when makeADPCMStream() allows sound looping int size = READ_LE_UINT32(soundData + 4); Common::MemoryReadStream stream(soundData, size); if (!Audio::loadWAVFromStream(stream, size, rate, flags, &compType, &blockAlign)) diff --git a/sound/adpcm.cpp b/sound/adpcm.cpp index 1140089910..3fb6d4d87e 100644 --- a/sound/adpcm.cpp +++ b/sound/adpcm.cpp @@ -501,6 +501,7 @@ int16 ADPCMInputStream::decodeTinsel(int16 code, double eVal) { return (int16) CLIP(sample, -32768.0, 32767.0); } +// TODO: Add optional support for sound looping AudioStream *makeADPCMStream(Common::SeekableReadStream *stream, bool disposeAfterUse, uint32 size, typesADPCM type, int rate, int channels, uint32 blockAlign) { return new ADPCMInputStream(stream, disposeAfterUse, size, type, rate, channels, blockAlign); } -- cgit v1.2.3