1
Audio / [ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
« on: December 28, 2024, 12:24:40 pm »
UPDATE:
The problem appears if I launch the application with sudo app
Otherwise it is fine
So why sudo cannot load the audio in SFML?
if (music.openFromFile(sound_file) == true)
{
std::cout << " music.openFromFile(sound_file) == true " << std::endl;
}
else
std::cout << " music.openFromFile(sound_file) == false " << std::endl;
It load the music file, but the audio device has an error:
[ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
Failed to open the audio device
An internal OpenAL call failed in SoundSource.cpp(44).
Expression:
alGenSources(1, &m_source)
Error description:
AL_INVALID_OPERATION
The specified operation is not allowed in the current state.
An internal OpenAL call failed in SoundSource.cpp(45).
Expression:
alSourcei(m_source, AL_BUFFER, 0)
Error description:
AL_INVALID_OPERATION
The specified operation is not allowed in the current state
/inxi -A
Audio:
Device-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
API: ALSA v: k6.8.0-51-generic status: kernel-api
Server-1: PipeWire v: 1.0.5 status: active
systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
Active: active (running) since Thu 2024-12-26 06:02:15 EST; 2 days ago
TriggeredBy: ● pipewire.socket
Main PID: 1301 (pipewire)
Tasks: 3 (limit: 9185)
Memory: 8.9M (peak: 10.6M swap: 3.7M swap peak: 3.7M)
CPU: 11min 38.003s
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
└─1301 /usr/bin/pipewire
Dec 26 06:02:15 allaptop-ideapad systemd[1288]: Started pipewire.service - PipeWire Multimedia Service.
Dec 26 06:02:17 allaptop-ideapad pipewire[1301]: mod.jackdbus-detect: Failed to receive jackdbus reply: org.freedesktop.DBus.Error.Ser>
systemctl --user daemon-reload
The problem appears if I launch the application with sudo app
Otherwise it is fine
So why sudo cannot load the audio in SFML?
if (music.openFromFile(sound_file) == true)
{
std::cout << " music.openFromFile(sound_file) == true " << std::endl;
}
else
std::cout << " music.openFromFile(sound_file) == false " << std::endl;
It load the music file, but the audio device has an error:
[ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
Failed to open the audio device
An internal OpenAL call failed in SoundSource.cpp(44).
Expression:
alGenSources(1, &m_source)
Error description:
AL_INVALID_OPERATION
The specified operation is not allowed in the current state.
An internal OpenAL call failed in SoundSource.cpp(45).
Expression:
alSourcei(m_source, AL_BUFFER, 0)
Error description:
AL_INVALID_OPERATION
The specified operation is not allowed in the current state
/inxi -A
Audio:
Device-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
API: ALSA v: k6.8.0-51-generic status: kernel-api
Server-1: PipeWire v: 1.0.5 status: active
systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
Active: active (running) since Thu 2024-12-26 06:02:15 EST; 2 days ago
TriggeredBy: ● pipewire.socket
Main PID: 1301 (pipewire)
Tasks: 3 (limit: 9185)
Memory: 8.9M (peak: 10.6M swap: 3.7M swap peak: 3.7M)
CPU: 11min 38.003s
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
└─1301 /usr/bin/pipewire
Dec 26 06:02:15 allaptop-ideapad systemd[1288]: Started pipewire.service - PipeWire Multimedia Service.
Dec 26 06:02:17 allaptop-ideapad pipewire[1301]: mod.jackdbus-detect: Failed to receive jackdbus reply: org.freedesktop.DBus.Error.Ser>
systemctl --user daemon-reload