[Solved] Somes problems in debug mode

Jeanbono

29-12-2008 08:55:38

Hi and thanks for this gread add-ons :)

I use OgreOggSound V1.0 and it works fine with my app in release mode but when I switch in debug mode (all libs and includes are correctly linked), my application don't play any sound and crash at the end.

Debug mode log:
09:20:29: ***********************************
09:20:29: *** --- Initialising OpenAL --- ***
09:20:29: ***********************************
09:20:30: *** --- OpenAL version 1.1
09:20:30: *** --- AVAILABLE DEVICES --- ***
09:20:30: *** --- SB X-Fi Audio [D000]
09:20:30: *** --- Generic Hardware
09:20:30: *** --- Generic Software
09:20:30: *** --- Choosing: SB X-Fi Audio [D000] (Default device)
09:20:30: *** --- OpenAL Device successfully created
09:20:30: *** --- OpenAL Context successfully created
09:20:30: *** --- SUPPORTED FORMATS
09:20:30: *** --- EFX Detected
09:20:30: *** --- 0 Auxiliary Effect Slot(s)
09:20:30: *** --- 1 Auxiliary Send(s) per Source
09:20:30: *** --- EFFECTS SUPPORTED:
09:20:30: *** --- 'Reverb' Support: YES
09:20:30: *** --- 'EAX Reverb' Support: YES
09:20:30: *** --- 'Chorus' Support: YES
09:20:30: *** --- 'Distortion' Support: YES
09:20:30: *** --- 'Echo' Support: YES
09:20:30: *** --- 'Flanger' Support: YES
09:20:30: *** --- 'Frequency shifter' Support: YES
09:20:30: *** --- 'Vocal Morpher' Support: YES
09:20:30: *** --- 'Pitch shifter' Support: YES
09:20:30: *** --- 'Ring modulator' Support: YES
09:20:30: *** --- 'Autowah' Support: YES
09:20:30: *** --- 'Compressor' Support: YES
09:20:30: *** --- 'Equalizer' Support: YES
09:20:30: *** --- FILTERS SUPPORTED:
09:20:30: *** --- 'Low Pass' Support: YES
09:20:30: *** --- 'High Pass' Support: NO
09:20:30: *** --- 'Band Pass' Support: NO
09:20:30: *** --- XRAM NOT Detected
09:20:30: *** --- EAX 3.0 Detected
09:20:30: *** --- Created 63 sources for simultaneous sounds
09:20:30: *** --- Using BOOST threads for streaming
09:20:30: ***********************************
09:20:30: *** --- OpenAL Initialised --- ***
09:20:30: ***********************************

So I put comments to disable OgreOggSound's fonctions and work well in debug mode.
Same thing with compiled applications cames from svn's demo.

(I use vc++2005/ogre 1.6)

I forgot...do you have some examples about using EAX effects with OgreOggSound ?
[edit: I saw the code inside MainApp.cpp from the svn...my problem is half solved;) ]

[edit2: Instead of putting comments to disable OgreOggSound, I made:

#if _DEBUG
#else
mSoundManager = new OgreOggSound::OgreOggSoundManager();
if (mSoundManager->init())
{
newSound = mSoundManager->createSound("Intro", "test.ogg", false, true, false);
newSound->play();
}
#endif

]


Best regards.

stickymango

29-12-2008 23:42:32

Hi jeanbono,

I've just tried a debug test and definitely have no problems, can you try and trace where it crashes and what happens in the update functions for an indication why things aren't working on your system.

Can you also confirm which revision you are using please.

Thanks.

Jeanbono

30-12-2008 08:48:09

Hi stickymango,

I solved the problem by installing the lastest svn sources and all works well!
I don't no why the v1.0 crashed but the last libs works without any bugs.

Thanks for the reply :)

stickymango

30-12-2008 09:55:55

Phew,

Glad its sorted :D

scratchyrice

17-02-2009 18:04:07

Sorry to bring this up, But im having the exact same problem. Im using the latest 1.4.0 ogreoggsound. In release mode, Sound works absolutly fine. However, If i try it in Debug mode, i get an error box containing the message:
The application failed to initilize properly (0xc0150002). Click OK to terminate the application.

If i remove all reference to the OgreOggSound system, But still link to it etc, it runs in debug mode (Without sound obviously), However if i simply add the line:
openAl = new OgreOggSound::OgreOggSoundManager();

Instantly the application crashes with the same error message. Im assuming that this line must be the problem in debug mode. I dont particularly want to have to use the #ifdef _debug directive every time I insert a bit of code todo with the OgreOggSound libary, So any help would be greatly appreciated. Obviously if need be i will use the _debug directive, But its a last resort.

Cheers

Scratchy

stickymango

17-02-2009 20:49:38

That looks like the sp1 issue for visual studio, which IDE are you using?

Have you built OgreOggSound on your system or just linked to the prebuilt libs?

Must be a conflict with the dll's somewhere.. :?