mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
TSAGE: Fix sounds not getting registered in Globals::_sounds
This fixes a problem in Scene 20 where the scene wasn't ending after a sound fade
This commit is contained in:
parent
7ef6bea74e
commit
f67f069e3f
@ -302,7 +302,8 @@ void SoundManager::addToPlayList(Sound *sound) {
|
||||
}
|
||||
|
||||
void SoundManager::removeFromPlayList(Sound *sound) {
|
||||
_sfRemoveFromPlayList(sound);
|
||||
if (_soundManager)
|
||||
_sfRemoveFromPlayList(sound);
|
||||
}
|
||||
|
||||
bool SoundManager::isOnPlayList(Sound *sound) {
|
||||
@ -2246,6 +2247,13 @@ int Sound::_soFindSound(VoiceTypeStruct *vtStruct, int channelNum) {
|
||||
ASound::ASound(): EventHandler() {
|
||||
_action = NULL;
|
||||
_cueValue = -1;
|
||||
if (_globals)
|
||||
_globals->_sounds.push_back(this);
|
||||
}
|
||||
|
||||
ASound::~ASound() {
|
||||
if (_globals)
|
||||
_globals->_sounds.remove(this);
|
||||
}
|
||||
|
||||
void ASound::synchronize(Serializer &s) {
|
||||
|
@ -361,6 +361,7 @@ public:
|
||||
int _cueValue;
|
||||
|
||||
ASound();
|
||||
~ASound();
|
||||
virtual void synchronize(Serializer &s);
|
||||
virtual void dispatch();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user