Hi!
I’m writing a simple game using SDL on Windows and have just strarted to
implement sound support. However, i’m having a quite annoying problem with
SDL_mixer. When I call Mix_PlayChannel() to play some wav, there is a delay
(lasting for about one second) before sound really starts to play. I’ve tried
passing several different parameters to Mix_OpenAudio (chunksize 2048, 1024
and 512) with no luck. What is more, playing an mp3 is even worse: it sounds
slower and generally much different than it should (like only parts of it are
being played). Under Linux everything seems fine, there are no delays, and
the mp3 sounds OK. What can be wrong?–
Tomasz Olszewski
Tomasz Olszewski wrote:
I’m writing a simple game using SDL on Windows and have just strarted to
implement sound support.
Which complier are you using?
Do you use SDL .dlls from website, or you built your own?
Have you tried some other game the uses SDL? Does it have the same problem?–
Milan Babuskov
http://njam.sourceforge.net
Dnia czwartek 20 maj 2004 16:16, Milan Babuskov napisa?:
Which complier are you using?
MinGW 3.3.1 (comes with MinGW Developer Studio).
Do you use SDL .dlls from website, or you built your own?
I use dll’s from Dev-C++'s DevPaks (found on www.devpaks.org). Those were
built using MinGW so everything should be fine. Maybe it’s a good idea to try
building them from sources… As far as I know, I can’t directly use dll’s
from the SDL website (compiled with MS VC?). I’ve tried, that doesn’t work.
Have you tried some other game the uses SDL? Does it have the same problem?
Well, I’ve checked gltron. Works fine, but it uses sdl_sound. I’ve also tried
test programs that come with sdl_mixer sources – they give the same effect
as my game. I think I’ll now look for some other sdl_mixer-based app and
check it out.–
Tomasz Olszewski