aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound/sounddesc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/sound/sounddesc.cpp')
-rw-r--r--engines/gob/sound/sounddesc.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/gob/sound/sounddesc.cpp b/engines/gob/sound/sounddesc.cpp
index 9df8bbb4bc..8903597bb0 100644
--- a/engines/gob/sound/sounddesc.cpp
+++ b/engines/gob/sound/sounddesc.cpp
@@ -53,6 +53,19 @@ SoundDesc::~SoundDesc() {
free();
}
+void SoundDesc::swap(SoundDesc &desc) {
+ SWAP(_repCount , desc._repCount);
+ SWAP(_frequency , desc._frequency);
+ SWAP(_flag , desc._flag);
+ SWAP(_id , desc._id);
+ SWAP(_mixerFlags, desc._mixerFlags);
+ SWAP(_resource , desc._resource);
+ SWAP(_data , desc._data);
+ SWAP(_dataPtr , desc._dataPtr);
+ SWAP(_size , desc._size);
+ SWAP(_type , desc._type);
+}
+
void SoundDesc::set(SoundType type, byte *data, uint32 dSize) {
free();