[Scummvm-cvs-logs] CVS: scummvm/sound mixer.cpp,1.188,1.189 mixer.h,1.100,1.101
kirben
kirben at users.sourceforge.net
Mon Apr 4 04:43:48 CEST 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm akos.cpp,1.215,1.216 script_v100he.cpp,2.110,2.111 script_v72he.cpp,2.232,2.233 script_v90he.cpp,2.210,2.211 sound.cpp,1.433,1.434 sound.h,1.82,1.83 wiz_he.cpp,2.36,2.37
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.418,2.419 script_v80he.cpp,2.84,2.85 sound.cpp,1.434,1.435
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8107/sound
Modified Files:
mixer.cpp mixer.h
Log Message:
Add 8 sound channel support for HE games
-Allows sound looping to work
Added support for WAVE format musuc used in later HE100 games.
Index: mixer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mixer.cpp,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -d -r1.188 -r1.189
--- mixer.cpp 23 Mar 2005 16:41:44 -0000 1.188
+++ mixer.cpp 4 Apr 2005 11:43:24 -0000 1.189
@@ -367,6 +367,14 @@
return false;
}
+int SoundMixer::getActiveChannelSoundID(SoundHandle handle) {
+ Common::StackLock lock(_mutex);
+ const int index = handle._val % NUM_CHANNELS;
+ if (_channels[index])
+ return _channels[index]->getId();
+ return 0;
+}
+
bool SoundMixer::isSoundHandleActive(SoundHandle handle) {
Common::StackLock lock(_mutex);
const int index = handle._val % NUM_CHANNELS;
Index: mixer.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mixer.h,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- mixer.h 22 Mar 2005 18:29:00 -0000 1.100
+++ mixer.h 4 Apr 2005 11:43:25 -0000 1.101
@@ -205,9 +205,17 @@
bool isSoundIDActive(int id);
/**
+ * Get the sound ID of handle sound
+ *
+ * @param handle sound to query
+ * @return sound ID if active
+ */
+ int getActiveChannelSoundID(SoundHandle handle);
+
+ /**
* Check if a sound with the given hANDLE is active.
*
- * @param handle the sound to query
+ * @param handle sound to query
* @return true if the sound is active
*/
bool isSoundHandleActive(SoundHandle handle);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm akos.cpp,1.215,1.216 script_v100he.cpp,2.110,2.111 script_v72he.cpp,2.232,2.233 script_v90he.cpp,2.210,2.211 sound.cpp,1.433,1.434 sound.h,1.82,1.83 wiz_he.cpp,2.36,2.37
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.418,2.419 script_v80he.cpp,2.84,2.85 sound.cpp,1.434,1.435
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list