Move pipewire stubs initialization to Media::Audio::Start

This commit is contained in:
Ilya Fedin 2022-05-04 14:31:20 +04:00 committed by John Preston
parent e206f42e4e
commit caf2be13b3
1 changed files with 4 additions and 4 deletions

View File

@ -81,10 +81,6 @@ bool PlaybackErrorHappened() {
}
void EnumeratePlaybackDevices() {
if (!Webrtc::InitPipewireStubs()) {
LOG(("Audio Info: Failed to load pipewire 0.3 stubs."));
}
auto deviceNames = QStringList();
auto devices = [&] {
if (alcIsExtensionPresent(nullptr, "ALC_ENUMERATE_ALL_EXT")) {
@ -200,6 +196,10 @@ void Start(not_null<Instance*> instance) {
qRegisterMetaType<AudioMsgId>();
qRegisterMetaType<VoiceWaveform>();
if (!Webrtc::InitPipewireStubs()) {
LOG(("Audio Info: Failed to load pipewire 0.3 stubs."));
}
auto loglevel = getenv("ALSOFT_LOGLEVEL");
LOG(("OpenAL Logging Level: %1").arg(loglevel ? loglevel : "(not set)"));