[Scummvm-cvs-logs] SF.net SVN: scummvm: [29856] scummvm/trunk/sound/softsynth
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Fri Dec 14 00:27:36 CET 2007
Revision: 29856
http://scummvm.svn.sourceforge.net/scummvm/?rev=29856&view=rev
Author: drmccoy
Date: 2007-12-13 15:27:36 -0800 (Thu, 13 Dec 2007)
Log Message:
-----------
Adding a method to check whether a note currently playing
Modified Paths:
--------------
scummvm/trunk/sound/softsynth/pcspk.cpp
scummvm/trunk/sound/softsynth/pcspk.h
Modified: scummvm/trunk/sound/softsynth/pcspk.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/pcspk.cpp 2007-12-13 20:10:13 UTC (rev 29855)
+++ scummvm/trunk/sound/softsynth/pcspk.cpp 2007-12-13 23:27:36 UTC (rev 29856)
@@ -74,6 +74,10 @@
_volume = volume;
}
+bool PCSpeaker::isPlaying() const {
+ return _remainingSamples != 0;
+}
+
int PCSpeaker::readBuffer(int16 *buffer, const int numSamples) {
Common::StackLock lock(_mutex);
Modified: scummvm/trunk/sound/softsynth/pcspk.h
===================================================================
--- scummvm/trunk/sound/softsynth/pcspk.h 2007-12-13 20:10:13 UTC (rev 29855)
+++ scummvm/trunk/sound/softsynth/pcspk.h 2007-12-13 23:27:36 UTC (rev 29856)
@@ -53,6 +53,8 @@
/** Adjust the volume. */
void setVolume(byte volume);
+ bool isPlaying() const;
+
int readBuffer(int16 *buffer, const int numSamples);
bool isStereo() const { return false; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list