aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/smush/saud_channel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/smush/saud_channel.cpp')
-rw-r--r--engines/scumm/smush/saud_channel.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/scumm/smush/saud_channel.cpp b/engines/scumm/smush/saud_channel.cpp
index 86ed7811ca..befeadad91 100644
--- a/engines/scumm/smush/saud_channel.cpp
+++ b/engines/scumm/smush/saud_channel.cpp
@@ -180,17 +180,17 @@ bool SaudChannel::appendData(Chunk &b, int32 size) {
return true;
}
-int32 SaudChannel::getAvailableSoundDataSize(void) const {
- return _sbufferSize;
-}
+byte *SaudChannel::getSoundData() {
+ byte *tmp = _sbuffer;
-void SaudChannel::getSoundData(int8 *snd, int32 size) {
- memcpy(snd, _sbuffer, size);
+ assert(_dataSize > 0);
if (!_keepSize)
- _dataSize -= size;
- delete []_sbuffer;
+ _dataSize -= _sbufferSize;
+
_sbuffer = 0;
_sbufferSize = 0;
+
+ return tmp;
}
} // End of namespace Scumm