[solved] Debug ok, but in Release mode no sound is played

Letschki

29-01-2009 21:43:40

Hello,

i have downloaded the version 1.04 from svn. First, i can confirm that the problem (crash) when creating a streamed sound is solved. The problem i have now is that the streamed sound plays in debug mode, but in release mode the sound is not played. I use the OgreOggSoundManager::playSound method to play the sound.

I am using VS 2008 SP1, Ogre 1.6.0 and boost_1_36_0. I have compiled the static vorbis / ogg libraries and the OgreOggSound dll using multithreaded (debug) runtime dlls.

One difference is that my 'debug' tests are executed in windowed mode with vsync enabled and the release mode tests run in fullscreen mode without vsync.

The log file doesn't mentions any problems. This is the OpenAL related part of the log file:

22:21:12: ***********************************
22:21:12: *** --- Initialising OpenAL --- ***
22:21:12: ***********************************
22:21:13: *** --- OpenAL version 1.1
22:21:13: *** --- AVAILABLE DEVICES --- ***
22:21:13: *** --- Generic Software
22:21:13: *** --- Choosing: Generic Software (Default device)
22:21:13: *** --- OpenAL Device successfully created
22:21:13: *** --- OpenAL Context successfully created
22:21:13: *** --- SUPPORTED FORMATS
22:21:13: *** --- AL_FORMAT_MONO16 -- Monophonic Sound
22:21:13: *** --- AL_FORMAT_STEREO16 -- Stereo Sound
22:21:13: *** --- AL_FORMAT_QUAD16 -- 4 Channel Sound
22:21:13: *** --- AL_FORMAT_51CHN16 -- 5.1 Surround Sound
22:21:13: *** --- AL_FORMAT_61CHN16 -- 6.1 Surround Sound
22:21:13: *** --- AL_FORMAT_71CHN16 -- 7.1 Surround Sound
22:21:13: *** --- EFX Detected
22:21:13: *** --- 1 Auxiliary Effect Slot(s)
22:21:13: *** --- 1 Auxiliary Send(s) per Source
22:21:13: *** --- EFFECTS SUPPORTED:
22:21:13: *** --- 'Reverb' Support: YES
22:21:13: *** --- 'EAX Reverb' Support: YES
22:21:13: *** --- 'Chorus' Support: NO
22:21:13: *** --- 'Distortion' Support: NO
22:21:13: *** --- 'Echo' Support: NO
22:21:13: *** --- 'Flanger' Support: NO
22:21:13: *** --- 'Frequency shifter' Support: NO
22:21:13: *** --- 'Vocal Morpher' Support: NO
22:21:13: *** --- 'Pitch shifter' Support: NO
22:21:13: *** --- 'Ring modulator' Support: NO
22:21:13: *** --- 'Autowah' Support: NO
22:21:13: *** --- 'Compressor' Support: NO
22:21:13: *** --- 'Equalizer' Support: NO
22:21:13: *** --- FILTERS SUPPORTED:
22:21:13: *** --- 'Low Pass' Support: YES
22:21:13: *** --- 'High Pass' Support: NO
22:21:13: *** --- 'Band Pass' Support: NO
22:21:13: *** --- XRAM NOT Detected
22:21:13: *** --- EAX 2.0 Detected
22:21:13: *** --- Created 100 sources for simultaneous sounds
22:21:13: *** --- Using BOOST threads for streaming
22:21:13: *** --- Recording devices available:
22:21:13: ***--- 'Mikrofon (3- Logitech EyeToy US'
22:21:13: ***--- 'Eingang (TerraTec Aureon 5.1)'
22:21:13: ***--- 'Mikrofon (Realtek High Definiti'
22:21:13: ***--- 'SPDIF In (TerraTec Aureon 5.1)'
22:21:13: ***--- 'Stereo Mix (TerraTec Aureon 5.1'
22:21:13: ***********************************
22:21:13: *** --- OpenAL Initialised --- ***
22:21:13: ***********************************


Any idea? I hope i haven't missed something obvious :(

stickymango

29-01-2009 22:43:20

Does the demo application work?

I've just tested a windowed, vsync-ed app and a fullscreen, non vsync-ed app in release without problems...

You don't have any sound hardware in the device list, strange :?

I don't really know what might be the problem, I'm using BOOST 1.34 but don't know whether anything has changed with the updated version, maybe try turning Threads off and trying again?

Letschki

02-02-2009 09:39:35

The problem was somewhere in my initialization code. I have searched for uninitialised variables and missing error handling code. Doing this ended in a rewrite of my application initialisation code.

With proper initialization the problem went away :) I cannot say what exactly the problem was, but i am sure it was my application's init code :(

Thanks for your help.

stickymango

02-02-2009 10:45:02

Excellent, great news!

Hope you find the lib useful :D

Letschki

03-02-2009 19:46:08

Hope you find the lib useful :D

Yes, the lib helped me a lot. I don't think that i would have accomplished multithreaded ogg file streaming in less than an hour ;) without your library :)

Again, thanks and keep up the great work!!!