[SDL] Re: win32 sdl_mixer : sound doesn't work if SDL_init
Tomek
tomek.cynacewicz at poczta.fm
Mon Jul 25 08:57:47 PDT 2005
Francois GAUDIN napisał(a):
> I've already searched in archive and found nothing about this problem.
>
> I've noticed that in order to have sound playing under windows I need to not do SDL_init. But to have events working, I need to do SDL_init(SDL_INIT_VIDEO). So is it normal that I must avoid SDL_init for sound playback ? if yes, how can I resolve my problem ?
>
> Everything is working under GNU/Linux...
>
> Thx
>
> Francois
Try:
SDL_Init(SDL_INIT_EVERYTHING);
Check SDL_Mixer:
snd=Mix_LoadWAV("snd.wav");
Mix_PlayChannel(chan,wav,loop);
More information about the SDL
mailing list