mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
HDB: Bail if the music stream couldn't be created.
This commit is contained in:
parent
89b20bbb86
commit
5675a00d8f
@ -1789,12 +1789,15 @@ void Song::stop() {
|
||||
}
|
||||
|
||||
void Song::playSong(SoundType song, bool fadeIn, int ramp) {
|
||||
this->_song = song;
|
||||
this->_playing = true;
|
||||
|
||||
Common::String fileName = getFileName(song);
|
||||
Audio::AudioStream* musicStream = createStream(fileName);
|
||||
|
||||
if (musicStream == nullptr) return;
|
||||
|
||||
this->_song = song;
|
||||
this->_playing = true;
|
||||
|
||||
int initialVolume;
|
||||
|
||||
if (fadeIn) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user