mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-27 19:11:09 +00:00
Move pipewire stubs initialization to Media::Audio::Start
This commit is contained in:
parent
e206f42e4e
commit
caf2be13b3
@ -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)"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user