diff options
Diffstat (limited to 'engines/gob/sound.cpp')
-rw-r--r-- | engines/gob/sound.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/gob/sound.cpp b/engines/gob/sound.cpp index 336f3b2c1c..fe5f7ede16 100644 --- a/engines/gob/sound.cpp +++ b/engines/gob/sound.cpp @@ -33,6 +33,17 @@ namespace Gob { +void SoundDesc::set(SoundType type, SoundSource src, + byte *data, uint32 dSize) { + + free(); + + _type = type; + _source = src; + _data = _dataPtr = data; + _size = dSize; +} + void SoundDesc::load(SoundType type, SoundSource src, byte *data, uint32 dSize) { @@ -225,6 +236,12 @@ void Snd::stopSound(int16 fadeLength, SoundDesc *sndDesc) { _curFadeSamples = 0; } +void Snd::setRepeating(int32 repCount) { + Common::StackLock slock(_mutex); + + _repCount = repCount; +} + void Snd::waitEndPlay(bool interruptible, bool stopComp) { if (stopComp) _compositionPos = -1; |