The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Sounds crashing the game
Jack1 Offline
Junior Member

Posts: 25
Threads: 12
Joined: Dec 2011
Reputation: 0
#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


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



Users browsing this thread: 1 Guest(s)