mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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() {
|
void EnumeratePlaybackDevices() {
|
||||||
if (!Webrtc::InitPipewireStubs()) {
|
|
||||||
LOG(("Audio Info: Failed to load pipewire 0.3 stubs."));
|
|
||||||
}
|
|
||||||
|
|
||||||
auto deviceNames = QStringList();
|
auto deviceNames = QStringList();
|
||||||
auto devices = [&] {
|
auto devices = [&] {
|
||||||
if (alcIsExtensionPresent(nullptr, "ALC_ENUMERATE_ALL_EXT")) {
|
if (alcIsExtensionPresent(nullptr, "ALC_ENUMERATE_ALL_EXT")) {
|
||||||
|
@ -200,6 +196,10 @@ void Start(not_null<Instance*> instance) {
|
||||||
qRegisterMetaType<AudioMsgId>();
|
qRegisterMetaType<AudioMsgId>();
|
||||||
qRegisterMetaType<VoiceWaveform>();
|
qRegisterMetaType<VoiceWaveform>();
|
||||||
|
|
||||||
|
if (!Webrtc::InitPipewireStubs()) {
|
||||||
|
LOG(("Audio Info: Failed to load pipewire 0.3 stubs."));
|
||||||
|
}
|
||||||
|
|
||||||
auto loglevel = getenv("ALSOFT_LOGLEVEL");
|
auto loglevel = getenv("ALSOFT_LOGLEVEL");
|
||||||
LOG(("OpenAL Logging Level: %1").arg(loglevel ? loglevel : "(not set)"));
|
LOG(("OpenAL Logging Level: %1").arg(loglevel ? loglevel : "(not set)"));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue