Re: release version problem

Daniel PEACOCK <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <OFFEA916F4.35A1E81E-ON802576FF.0048CD84-802576FF.00493EE6@cli.creaf.com>
Hi,

I'm not too familiar with those compiler settings to know if that means for
100% certain that no uninitialized variables are being passed to OpenAL.

Can you give some more details about the problem that occurs in Release vs
Debug builds?  e.g When you say that sounds are not spatialized ... does
that mean that the sounds seem to play from the same location as the
listener (resulting in all sounds playing from all speakers)?  Are the
sounds at full volume or is any attenuation happening?

Dan
Creative Labs (UK) Ltd.

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.

Creative Labs UK Ltd company number 2658256 registered in England and Wales
at 79 Knightsbridge, London SW1X 7RB



                                                                           
             uray meiviar                                                  
             <uraymeiviar@yaho                                             
             o.com>                                                     To 
                                       Daniel PEACOCK                      
             04/08/2010 01:51          <[email protected]>         
             PM                                                         cc 
                                       openal mailinglist                  
                                       <[email protected]>    
                                                                   Subject 
                                       Re: [Openal] release version        
                                       problem                             
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi, thanks for quick reply.

I solved it by set compiler (visual studio) settings to /RTCs (Stack
Frames) in "Basic Runtime check" for release build of my application.

but if I turn off /RTCu (uninitialized variables) the program still run ok
as long as /RTCs is set, so it doesn't need /RTCu. in that case I think its
not because of uninitialized var. what's another possibility related to
stack frames?

thanks

From: Daniel PEACOCK <[email protected]>
To: openal mailinglist <[email protected]>
Sent: Thu, April 8, 2010 12:39:32 PM
Subject: Re: [Openal] release version problem

Hi,

Are you sure you are not passing uninitialized variables to OpenAL?  In a
debug build, variables will be set to 0 by default but a release build will
not do this - meaning the values will be completely random (and in the case
of floats and doubles they might not even be valid numbers).  Passing
uninitialized values to OpenAL could definitely mess up the 3D Audio
spatialization.

Which OpenAL device are you requesting in the call to alcOpenDevice?

Dan
Creative Labs, UK

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.

Creative Labs UK Ltd company number 2658256 registered in England and Wales
at 79 Knightsbridge, London SW1X 7RB




            uray meiviar
            <uraymeiviar@yaho
            o.com>                                                    To
            Sent by:                  openal mailinglist
            openal-bounces@op        <[email protected]>
            ensource.creative                                          cc
            .com
                                                                  Subject
                                      [Openal] release version problem
            04/08/2010 11:27
            AM








hi,

I developed openAL App, on Windows 7 x64 using summer 2009 SDK from
creative, and I got problem when running release version of my application,
the sound seems not to be spatialized, but when I run the debug version of
my application, there's no problem sound is spatialized correctly.

both release and debug version are using same openal32.lib and I checked
using dependency walker both dynamically linked to Windows\System32
\OpenAL32.dll. My soundcard is Realtek HD and Creative X-Fi Titanium both
suffer from the same problem.

can anyone give me clue where should i fix this?

thank you
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT0007B0FE

_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT0007B11A

_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.