diff options
Diffstat (limited to 'sound/softsynth/pcspk.cpp')
-rw-r--r-- | sound/softsynth/pcspk.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/softsynth/pcspk.cpp b/sound/softsynth/pcspk.cpp index dea3eac549..396d9328f1 100644 --- a/sound/softsynth/pcspk.cpp +++ b/sound/softsynth/pcspk.cpp @@ -74,6 +74,10 @@ void PCSpeaker::setVolume(byte volume) { _volume = volume; } +bool PCSpeaker::isPlaying() const { + return _remainingSamples != 0; +} + int PCSpeaker::readBuffer(int16 *buffer, const int numSamples) { Common::StackLock lock(_mutex); |