diff options
author | Max Horn | 2005-01-09 15:57:38 +0000 |
---|---|---|
committer | Max Horn | 2005-01-09 15:57:38 +0000 |
commit | 7df70de2b1e070ed6474f81f9da782bc22f21bb1 (patch) | |
tree | 9be433339c87291a98fee6d968bfd794b1c12169 /saga | |
parent | 9cea3d393f0c3657f3caef72a13dce5594581bdd (diff) | |
download | scummvm-rg350-7df70de2b1e070ed6474f81f9da782bc22f21bb1.tar.gz scummvm-rg350-7df70de2b1e070ed6474f81f9da782bc22f21bb1.tar.bz2 scummvm-rg350-7df70de2b1e070ed6474f81f9da782bc22f21bb1.zip |
Mark some places which probably should use loadWAVFromStream(); maybe some of the engine maintainers can look into using it
svn-id: r16503
Diffstat (limited to 'saga')
-rw-r--r-- | saga/sndres.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/saga/sndres.cpp b/saga/sndres.cpp index f51250ae22..9757e3217d 100644 --- a/saga/sndres.cpp +++ b/saga/sndres.cpp @@ -34,6 +34,7 @@ #include "common/file.h" #include "sound/voc.h" +#include "sound/wave.h" namespace Saga { @@ -200,6 +201,15 @@ int SndRes::loadVocSound(byte *snd_res, size_t snd_res_len, SOUNDBUFFER *snd_buf int SndRes::loadWavSound(byte *snd_res, size_t snd_res_len, SOUNDBUFFER *snd_buf_i) { // TODO: This function should, perhaps, be made more robust. + // TODO: use loadWAVFromStream to load the WAVE data! + /* + int rate, size; + bye flags; + bool isValidWAV; + Common::MemoryReadStream stream(snd_res, snd_res_len); + isValidWAV = loadWAVFromStream(stream, size, rate, flags); + */ + MemoryReadStreamEndian readS(snd_res, snd_res_len, IS_BIG_ENDIAN); byte buf[4]; |