[openal] OpenAL fails with OSS on FreeBSD

Chris Robinson chris.kcat at gmail.com
Thu Dec 1 07:04:38 EST 2016


On 11/30/2016 10:03 PM, Yuri wrote:
> AL lib: (II) ALCossListAppend: Got device "pcm0:play:dsp0", "/dev/dsp0"
> AL lib: (II) ALCossListAppend: Got device "pcm1:play:dsp1", "/dev/dsp1"
> AL lib: (II) ALCossListAppend: Got device "pcm2:play:dsp2", "/dev/dsp2"
> AL lib: (II) ALCossListAppend: Got device "pcm3:play:dsp3", "/dev/dsp3"
> AL lib: (II) ALCossListAppend: Got device "pcm4:play:dsp4", "/dev/dsp4"
> AL lib: (II) ALCossListAppend: Got device "pcm5:play:dsp5", "/dev/dsp5"
> [06:00:45.404 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output
> "OSS Default"
> AL lib: (II) GetConfigValue: Key channels not found
> AL lib: (II) GetConfigValue: Key sample-type not found
> AL lib: (II) GetConfigValue: Key frequency not found
> AL lib: (II) GetConfigValue: Key periods not found
> AL lib: (II) GetConfigValue: Key period_size not found
> AL lib: (II) GetConfigValue: Key sources not found
> AL lib: (II) GetConfigValue: Key slots not found
> AL lib: (II) GetConfigValue: Key sends not found
> [06:00:45.404 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output
> audio device "OSS Default"

Hmm, this is a bit odd. The only reason it should fail to open an OSS 
device without an (EE) error being printed is if the provided device 
name isn't recognized. "OSS Default" should certainly be recognized. 
Otherwise, if no name is specified (indicating the default device) or a 
recognized name is given, it can only fail if open() fails, and in that 
case it should print something like

AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: No such file 
or directory

which I don't see here. Are you sure the correct name is being passed 
into alcOpenDevice? What if you pass in NULL instead?


More information about the openal mailing list