aboutsummaryrefslogtreecommitdiff
path: root/scumm/sound.h
diff options
context:
space:
mode:
authorMax Horn2003-12-23 19:18:20 +0000
committerMax Horn2003-12-23 19:18:20 +0000
commit3f77642948a824e6e198c93a455fbf3fbab7e507 (patch)
treef36217b85bc0533320a7ff44d485714d25407beb /scumm/sound.h
parent43875b42fcefae5e0f009acd87407e8d545623c6 (diff)
downloadscummvm-rg350-3f77642948a824e6e198c93a455fbf3fbab7e507.tar.gz
scummvm-rg350-3f77642948a824e6e198c93a455fbf3fbab7e507.tar.bz2
scummvm-rg350-3f77642948a824e6e198c93a455fbf3fbab7e507.zip
Replace the DOTT/SAM hack (which ensures that only one SFX is being played at a time for them) with proper code: instead of hacking the sound handle, we assign a fake sound ID to the SFX, thus ensuring only one is playing at a time
svn-id: r11880
Diffstat (limited to 'scumm/sound.h')
-rw-r--r--scumm/sound.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/sound.h b/scumm/sound.h
index 1ac2d2c219..d41fc44a81 100644
--- a/scumm/sound.h
+++ b/scumm/sound.h
@@ -91,7 +91,7 @@ public:
protected:
File *openSfxFile();
- void startSfxSound(File *file, int file_size, PlayingSoundHandle *handle);
+ void startSfxSound(File *file, int file_size, PlayingSoundHandle *handle, int id = -1);
bool isSfxFinished() const;
};