I'm trying to develop a game engine using pike. But there is a big problem that I can't play any sound file using pike and SDL.
I write a simple test script trying to play a .wav sound file, but it exit and nothing happened when I run this program.
Here is my code, where should I check?
int main () { SDL.init( SDL.INIT_AUDIO ); SDL.open_audio ( 22050 , SDL.AUDIO_S16 , 2 , 4096 );
SDL.Music music = SDL.Music ( "test.wav" );
music->pause(); music->play ( 0 );
SDL.quit();
return 0; }