View Single Post
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#3
Hey Aapo,

Thanks for a very cool game. I have a question, though. Just compiled it from latest svn and seems to work ok with the stock mixer. What problems did you face?

Placing right after Mix_PlayMusic (line 81, the if needs {} and probably sdl_mixer.h has to be included) in main.cpp:

Mix_Chunk *sound = Mix_LoadWAV("pathtowhereyouinstallsounds.wav");
Mix_PlayChannel(-1, sound, 0);

is a very dirty hack but starts the game with chosen sound (maybe include 0 byte .wav just for initialisation?) and music plays as soon as menu shows up, so maybe worth including.
 

The Following 3 Users Say Thank You to szopin For This Useful Post: