I’m trying to use SDL_mixer with SDL 1.3, and i’m having very strange problems.
it seems that sometimes, i got no sound, while all data is good and averything
is well initiated.
It differs also from one project to another : one project works well (i got
sound 8/10 times), another has worked only ONCE.
as you can see, i (correctly?) init AUDIO.
Everything works well. It passes correctly in mix_channel, and the Uint* stream
is well filled with wav data. But i have no sound.
If i comment CommonInit(), it SOMETIMES works! I think directsound has some
problems with init…
I’ve also tried without SDL_mixer, but it does exactly the same. The problem
must be in a lower part, because the mix_channel function works well.
I’m very surprised i’m the only one with this problem! Maybe the problem occurs
only with VC++9 ? Or i do something very wrong? Or nobody tried sound with SDL
1.3 ?
But it still works about once for 3 or 4 tries. I just have to relauch the app
4 times to get sound working…
and I had to desactivate music in SDL_mixer (open_music is not called anymore)