Merge pull request #5292 from ligfx/setvolumeafterstart
AudioCommon: set volume _after_ starting stream
This commit is contained in:
commit
50349098c1
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue