mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Move pipewire stubs initialization to Media::Audio::Start
This commit is contained in:
parent
e206f42e4e
commit
caf2be13b3
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue