mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 04:43:26 +00:00
Merge pull request #907 from somaen/fixPS2Audio
EMI: Make SCXTrack behave like MP3Track in regards to isPlaying
This commit is contained in:
commit
11c65aeab2
@ -49,4 +49,11 @@ bool SCXTrack::openSound(const Common::String &soundName, Common::SeekableReadSt
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SCXTrack::isPlaying() {
|
||||
if (!_handle)
|
||||
return false;
|
||||
|
||||
return g_system->getMixer()->isSoundHandleActive(*_handle);
|
||||
}
|
||||
|
||||
} // end of namespace Grim
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
SCXTrack(Audio::Mixer::SoundType soundType);
|
||||
~SCXTrack();
|
||||
bool openSound(const Common::String &soundName, Common::SeekableReadStream *file) override;
|
||||
bool isPlaying() override { return true; }
|
||||
bool isPlaying() override;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user