iatneH
Still Fresh
Hi, I've just started adding sound effects to my project, and it seems like SFX are severely delayed, like ~0.3 or 0.4 seconds after it is triggered.
I have this
early on, and then play a sound with something like this
e.g. when I press a button to insert a coin. Other things like explosions etc. are way late too.
The samples themselves are 22050 Hz, 16 bit, mono .wav files.
Is there anything I am missing?
Thanks in advance!
I have this
Code:
Mix_OpenAudio(22050, AUDIO_S16, 1, 1024);
Code:
Mix_PlayChannel(-1, coin, 0);
The samples themselves are 22050 Hz, 16 bit, mono .wav files.
Is there anything I am missing?
Thanks in advance!