Hi,
I am doing some testing of my game and some players have problem with audio. I was able to discover that the problem is function al_attach_mixer_to_voice which fails. But it only happen to only a small portion of testers.
I of course read the documentation but I am not exactly "drivers guy" so I do not know where the underlying problem could be and how to solve it. Do you have any idea? Thanks for the answers.
Code snipped of my audio initialization. It failed on line 33.
First of all, what OS are you using, and what version of Allegro, and also the compiler version used to produce it.
The call to start_voice may be failing for some.
https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_voice.c#L298
It depends on the audio driver in use.
Can you do some debugging? Are you proficient with gdb or another debugger?
Hi, I can debug. Problem is that on all of my PCs it's working fine. But some others have problems.
The user who has this problem uses Windows 10. I am using msvc (don't know version because I am not at work) and Allegro version is 5.2.6 from NuGet package.
You'll probably need your players to debug for you, with MSVS or gdb.
I don't know much about the audio drivers, maybe @Peter Hull could help?
EDIT
It can also fail if already attached to a stream.