Merge pull request #5292 from ligfx/setvolumeafterstart

AudioCommon: set volume _after_ starting stream
This commit is contained in:
Markus Wick 2017-04-21 10:29:21 +02:00 committed by GitHub
commit 50349098c1
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,6 @@ void InitSoundStream()
g_sound_stream = std::make_unique<NullSound>(); g_sound_stream = std::make_unique<NullSound>();
} }
UpdateSoundStream();
if (!g_sound_stream->Start()) if (!g_sound_stream->Start())
{ {
ERROR_LOG(AUDIO, "Could not start backend %s, using %s instead", backend.c_str(), ERROR_LOG(AUDIO, "Could not start backend %s, using %s instead", backend.c_str(),
@ -68,6 +66,8 @@ void InitSoundStream()
g_sound_stream->Start(); g_sound_stream->Start();
} }
UpdateSoundStream();
if (SConfig::GetInstance().m_DumpAudio && !s_audio_dump_start) if (SConfig::GetInstance().m_DumpAudio && !s_audio_dump_start)
StartAudioDump(); StartAudioDump();
} }