[Linux] Empty AudioDeviceManager.audioDeviceManager.deviceNames
under sudo
#3453
Labels
AudioDeviceManager.audioDeviceManager.deviceNames
under sudo
#3453
Problem Description
AudioDeviceManager.audioDeviceManager.deviceNames
return empty array 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.
In such cases there is no way to use
AudioDeviceManager
right now.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:
#3452
#3450
#1984
#365
Steps to Reproduce
Launch application with code below with any Linux under sudo:
sudo ./linux_audiodevicemanager_devicenames_empty_root_bug
It should trace audio output devices.
Application example with sources attached.
linux_audiodevicemanager_devicenames_empty_root_bug.zip
Actual Result:
AudioDeviceManager.audioDeviceManager.deviceNames
return empty array.Expected Result:
AudioDeviceManager.audioDeviceManager.deviceNames
return audio output devices.Known Workarounds
aplay -l
or other withNativeProcess
to get audio output devices.The text was updated successfully, but these errors were encountered: