SDL_Mixer in windows

i wrote little program that load a sound (wav) and play it… the code works fine in linux. but somehow it doen’t work well in windows.

it does compile ok but no sound is playing from the pc.
when i debugged it that meesage appear: DSOUND: Error: Secondary Buffers don’t support SetFormat

it does compile ok but no sound is playing from the pc. when i
debugged it that meesage appear: DSOUND: Error: Secondary Buffers
don’t support SetFormat

What does your call to Mix_OpenAudio() look like?

–ryan.

What does your call to Mix_OpenAudio() look like?

–ryan.

it looks like exactly like this:

if (Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, 2, 1024) < 0) {
printf (“Error: %s\n”, Mix_GetError());
return 1;
}