Archives: Stop sound before loading a new ROM - 7z ifiles can take a while to decompress which made the current sound buffer loop.

This commit is contained in:
Souryo 2016-06-19 16:55:26 -04:00
parent 17fb20e235
commit b4e412a7d5

View file

@ -38,6 +38,8 @@ void Console::Release()
void Console::Initialize(string romFilename, stringstream *filestream, string ipsFilename, int32_t archiveFileIndex)
{
SoundMixer::StopAudio();
MessageManager::SendNotification(ConsoleNotificationType::GameStopped);
shared_ptr<BaseMapper> mapper = MapperFactory::InitializeFromFile(romFilename, filestream, ipsFilename, archiveFileIndex);