[Scummvm-cvs-logs] CVS: scummvm/saga sndres.cpp,1.36,1.37
Max Horn
fingolfin at users.sourceforge.net
Sun Jan 9 07:58:14 CET 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sound wave.cpp,NONE,1.1 wave.h,NONE,1.1 module.mk,1.18,1.19 voc.cpp,1.24,1.25
- Next message: [Scummvm-cvs-logs] CVS: scummvm/simon sound.cpp,1.72,1.73
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2838/saga
Modified Files:
sndres.cpp
Log Message:
Mark some places which probably should use loadWAVFromStream(); maybe some of the engine maintainers can look into using it
Index: sndres.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sndres.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- sndres.cpp 1 Jan 2005 16:18:36 -0000 1.36
+++ sndres.cpp 9 Jan 2005 15:57:38 -0000 1.37
@@ -34,6 +34,7 @@
#include "common/file.h"
#include "sound/voc.h"
+#include "sound/wave.h"
namespace Saga {
@@ -200,6 +201,15 @@
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];
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sound wave.cpp,NONE,1.1 wave.h,NONE,1.1 module.mk,1.18,1.19 voc.cpp,1.24,1.25
- Next message: [Scummvm-cvs-logs] CVS: scummvm/simon sound.cpp,1.72,1.73
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list