sound testsound;
testsound=MP3_LOAD("sound.mp3");
while(1) {
// Input and stuff.
if(SOUND_PLAYING(testsound)==0) PLAY_SOUND(testsound);
}
I cannot work with SDL Mixer because it limits me to only so many channels, accepts only WAV files for sound effects, and even though the sound for a buzz that I want to constantly loop has no place in it without audio, it sometimes skips when looping (but sometimes does not; it repeats properly for a few repetitions and then there is a delay and then it repeats well again and it repeats).Should I use OpenAL audio? Can I use it in a commercial game without having to pay the creators or anything? Does it limit me to only a fixed number of channels so I cannot make a (non-music) sound effect repeat if I so please? Can I use MP3 or another non-WAV format for sounds? Is it cross-platform? Will looping be smooth?
Thank you for your time.