Code: Select all
guest@porteus:/$ mpv "/sound/S.aac"
[ffmpeg/demuxer] aac: Estimating duration from bitrate, this may be inaccurate
(+) Audio --aid=1 (aac 2ch 44100Hz)
AO: [pulse] 44100Hz stereo 2ch float
A: 00:00:56 / 00:02:29 (37%) Cache: 91s/3MB
Code: Select all
guest@porteus:/$ mpg123 "/sound/Fischer-Z Luton To Lisbon.mp3"
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.25.13; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Directory: /sound/
Terminal control enabled, press 'h' for listing of keys and functions.
Playing MPEG stream 1 of 1: Fischer-Z Luton To Lisbon.mp3 ...
MPEG 1.0 L III vbr 44100 j-s
Title: luton to lisbon Artist: Fischer-Z
[1:56] Decoding of Fischer-Z Luton To Lisbon.mp3 finished.
Code: Select all
root@porteus:/# sudo -u guest mpg123 "/sound/Fischer-Z Luton To Lisbon.mp3"
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.25.13; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Segmentation fault
Code: Select all
root@porteus:/# sudo -u guest mpv "/sound/S.aac"
[ffmpeg/demuxer] aac: Estimating duration from bitrate, this may be inaccurate
(+) Audio --aid=1 (aac 2ch 44100Hz)
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
[ao/alsa] Playback open error: Connection refused
[ao/oss] Can't open audio device /dev/dsp: No such file or directory
[ao] Failed to initialize audio driver 'oss'
Could not open/initialize audio device -> no sound.
Audio: no audio
Exiting... (Errors when loading file)
native guest mpv working okay.
Why is that? sudo -u guest should run the program as if guest ran it natively. Still, it always fails when trying it the sudo -u guest way, either by segfault, or by claiming "Failed to initialize audio driver 'oss' -- Could not open/initialize audio device -> no sound." even when in both cases the exact same program and sound file ran natively by guesting work okay.
Me thinks that must be some kind of setup issue with the 5.0rc1 sudo.