Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
Sounds crashing the game
Author Message
Jack1 Offline
Junior Member

Posts: 24
Joined: Dec 2011
Reputation: 0
Post: #1
Sounds crashing the game

So, i've successfully compiled and ran the Penumbra Overture inside Visual Studio 2010 after removing the menu music starter in source code. And the major problem is (obviously) related to sounds and music. Everytime a sound should be loaded and played, the game crashes and VS asks me if i want to break or continue with the execution. If i dint remove these lines in MainMenu.cpp, the game wouldnt even load:
mpInit->mpGame->GetSound()->GetMusicHandler()->Play("music_theme.ogg",1,5.0f,false);

            if(pSoundHandler->IsPlaying("gui_rain1")==false)
                pSoundHandler->PlayGui("gui_rain1",true,1);

and when i did remove these lines and i press some button in the main menu, for example the Options button, it should play the button click sound (some kind of thump) the game crashes and the error seems to be in ope.c file. And that file a default windows file and handles some windows file opening functions. I think the error is with the OALWrapper or with other sound system because when i dint remove those lines mentoined above, the game crashes at the Loading... screen and VS says that the error is in MainMenu.cpp at line 2517 (wich is: mpInit->mpGame->GetSound()->GetMusicHandler()->Play("music_theme.ogg",1,5.0f,false); )
Any advice will be appreciated.
(This post was last modified: 05-07-2012 12:54 PM by Jack1.)
04-30-2012 09:38 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Sounds crashing the game - Jack1 - 04-30-2012 09:38 PM
RE: Sounds crashing the game - Urkle - 04-30-2012, 10:07 PM
RE: Sounds crashing the game - Jack1 - 05-01-2012, 08:34 AM
RE: Sounds crashing the game - Jack1 - 05-06-2012, 04:12 PM



User(s) browsing this thread: 1 Guest(s)