[Linux] No sound under sudo after AudioDeviceManager.audioDeviceManager.deviceNames
call
#3452
Labels
AudioDeviceManager.audioDeviceManager.deviceNames
call
#3452
Problem Description
No sound can be played after
AudioDeviceManager.audioDeviceManager.deviceNames
call when AIR application run under sudo with Linux.Sometimes multimedia applications should be run with root privileges (for example when autostart enabled). That's why it is crucial.
Same issues with
Video
with audio playback too, withNetStream::appendBytes()
and with M4A audio playback viaNetStream
.Tested with multiple AIR versions, even with latest AIR 51.1.1.3 with multiple different Linux x86_64 devices (VM and real), different OS versions and different applications.
There is no such issue without sudo.
There is no such issue using
aplay
.There is no such issue with other platforms.
Related issues:
#3450
#1984
#365
#224
#15
Steps to Reproduce
Launch application with code below with any Linux under sudo:
sudo -E ./linux_audiodevicemanager_sound_root_bug
Note: parameter
-E
mandatory cause #3450It should generate audio via
Sound
.Application example with sources sample attached.
linux_audiodevicemanager_sound_root_bug.zip
Actual Result:
No audio played. No exceptions or errors in Scout.
In terminal you will see:
Expected Result:
Audio will be played.
Known Workarounds
Don't use
AudioDeviceManager.audioDeviceManager.deviceNames
.The text was updated successfully, but these errors were encountered: