[openal] OpenAL soft on win32: AL lib: (EE) ALCmmdevPlayback_open: Device init failed: 0x80004005
Lex
lex at progger.ru
Sun Oct 12 08:26:36 EDT 2014
You're right:
AL lib: (WW) ALCmmdevPlayback_open: Failed to find device name matching "R"
Full output goes bellow my signature just in case. There you can see
device names as OpenAl Soft sees them.
So, I have Russian localization of Windows and therefore device names
come with Cyrillic in them, which goes out as a garbage. So that nails
down the problem to be either OpenAL not returning the names correctly
or CAudio (openal c++ wrapper library) not handling them appropriately.
Excert from CAudio sources getting device names:
if (specifier != 0 && defaultDevice != 0)
{
const char* deviceList = alcGetString(NULL, specifier);
if (deviceList)
{
while(*deviceList)
{
cAudioString device(fromUTF8(deviceList));
AvailableDevices.push_back(device);
deviceList += strlen(deviceList) + 1;
}
}
The question why the problem is not permanent is still open.
Lex
cAudio 2.3.0 Tutorial 2: Basic 3D Audio.
[Information] Audio Decoder for extension .ogg registered.
[Information] Audio Decoder for extension .wav registered.
[Information] Audio Decoder for extension .raw registered.
[Information] Data Source named FileSystem registered (Priority 0).
Available Playback Devices:
AL lib: (II) alc_initconfig: Supported backends: mmdevapi, dsound,
winmm, null, wave
AL lib: (II) ReadALConfig: Loading config
C:\Users\lex\AppData\Roaming\alsoft.ini...
AL lib: (II) GetConfigValue: Key disable-cpu-exts not found
AL lib: (II) FillCPUCaps: Detected max CPUID function: 0xd (ext. 0x80000008)
AL lib: (II) FillCPUCaps: Vendor ID: ""
AL lib: (II) FillCPUCaps: Name: " Intel(R) Core(TM) i3-3110M CPU @
2.40GHz"
AL lib: (II) FillCPUCaps: Extensions: +SSE +SSE2 +SSE4.1
AL lib: (II) GetConfigValue: Key rt-prio not found
AL lib: (II) GetConfigValue: Key resampler not found
AL lib: (II) GetConfigValue: Key trap-al-error not found
AL lib: (II) GetConfigValue: Key trap-alc-error not found
AL lib: (II) GetConfigValue: Key reverb/boost not found
AL lib: (II) GetConfigValue: Key reverb/emulate-eax not found
AL lib: (II) GetConfigValue: Key drivers not found
AL lib: (II) ALCmmdevProxy_messageHandler: Starting message thread
AL lib: (II) ALCmmdevProxy_messageHandler: Message thread initialization
complete
AL lib: (II) ALCmmdevProxy_messageHandler: Starting message loop
AL lib: (II) alc_initconfig: Initialized backend "mmdevapi"
AL lib: (II) alc_initconfig: Added "mmdevapi" for playback
AL lib: (II) alc_initconfig: Initialized backend "dsound"
AL lib: (II) alc_initconfig: Added "dsound" for capture
AL lib: (II) GetConfigValue: Key excludefx not found
AL lib: (II) GetConfigValue: Key default-reverb not found
AL lib: (II) ALCmmdevProxy_messageHandler: Got message 1029
AL lib: (II) add_device: Got device "╨У╤А╨╛╨╝╨║╨╛╨│╨╛╨▓╨╛╤А╨╕╤В╨╡╨╗╤М ╨╕
╨╜╨░╤Г╤И╨╜╨╕╨║╨╕ (Realtek High Definition Audio)",
"{0.0.0.00000000}.{da0a9351-2335-48dd-b7b8-6937bd568163}"
AL lib: (II) add_device: Got device "╨У╤А╨╛╨╝╨║╨╛╨│╨╛╨▓╨╛╤А╨╕╤В╨╡╨╗╤М ╨╕
╨╜╨░╤Г╤И╨╜╨╕╨║╨╕ (Realtek High Definition Audio)",
"{0.0.0.00000000}.{da0a9351-2335-48dd-b7b8-6937bd568163}"
0): R
1): R
Choose a device by number: 0
AL lib: (II) GetConfigValue: Key channels not found
AL lib: (II) GetConfigValue: Key sample-type not found
AL lib: (II) GetConfigValue: Key format 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
AL lib: (II) GetConfigValue: Key cf_level not found
AL lib: (II) GetConfigValue: Key midi/internal-synth not found
AL lib: (II) SSynth_create: Not using internal MIDI synth
AL lib: (WW) ALCmmdevPlayback_open: Failed to find device name matching "R"
AL lib: (EE) ALCmmdevPlayback_open: Device init failed: 0x80004005
[Error] Failed to Create OpenAL Device.
[Error] OpenAL Error: (null).
Press any key to quit
12.10.2014 14:58, Chris Robinson пишет:
> On 10/12/2014 04:01 AM, Lex wrote:
>> hi all,
>>
>> I am trying to use openal soft 1.16.0 with CAudio
>> (https://github.com/R4stl1n/cAudio) on windows 8.1.
>> I compiled OpenAL soft with visual studio 2012 and tried to run CAudio
>> provided samples. Occasionally, but quite often, I get the following
>> error message after chosing a playback device:
>>
>> Available Playback Devices:
>> 0): R
>> 1): R
>
> It's possibly a problem with enumerating devices, as these names
> certainly don't look right. Though it's odd that the default device
> doesn't match either of these, since that name comes right from the
> same internal list.
>
> If you can, try setting the environment variable ALSOFT_LOGLEVEL to 3,
> and see what the app prints to stderr.
> _______________________________________________
> openal mailing list
> openal at openal.org
> http://openal.org/mailman/listinfo/openal
More information about the openal
mailing list