DimensionT
October 17th, 2007, 03:10
Ok, here's the deal...
I have a menu before my game starts with a song playing. Then I have my game with a different song playing (with gamestates seperating the two).
When you select "Start Game" in the menu, it stops the title song and loads one for the game before changing gamestates. If you're in the game and press start to select "Return To Menu", it stops the game song and reloads the title music... Then changes gamestates again.
My problem is around 50% of the time, it freezes when changing between gamestates that load music. The "Paused" gamestate works perfectly fine because it plays the same music as the game (untill you tell it to return to the menu).
I took out every function that has to do with playing/loading OGG files, and I didn't have any problems what-so-ever. So I know the issue is with playing or loading the music.
Any help would be appreciated!!!
I have a menu before my game starts with a song playing. Then I have my game with a different song playing (with gamestates seperating the two).
When you select "Start Game" in the menu, it stops the title song and loads one for the game before changing gamestates. If you're in the game and press start to select "Return To Menu", it stops the game song and reloads the title music... Then changes gamestates again.
My problem is around 50% of the time, it freezes when changing between gamestates that load music. The "Paused" gamestate works perfectly fine because it plays the same music as the game (untill you tell it to return to the menu).
I took out every function that has to do with playing/loading OGG files, and I didn't have any problems what-so-ever. So I know the issue is with playing or loading the music.
Any help would be appreciated!!!