Re: release version problem

Daniel PEACOCK <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <OF3F594348.566DF4C4-ON802576FF.004AA171-802576FF.004B0F3F@cli.creaf.com>
Hi,

Can you print out the x,y,z co-ordinates that you are passing to alSourcefv
(or alSource3f) and see if the values look sensible?

Is this a test application that you can easily send me to look at?

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 02:28          <[email protected]>         
             PM                                                         cc 
                                       openal mailinglist                  
                                       <[email protected]>    
                                                                   Subject 
                                       Re: [Openal] release version        
                                       problem                             
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




hi,

I have 1 listener, 1 source, the listener is placed at center, while the
source is circling the listener horizontally, in debug mode I heard that
the sound is moving from left of my earphone to the right while the source
is circling the listener, but on release version, both left and right
earphone are equally loud and no fluctuation in volume and I don't feel
sound movement. the source is fixed at 1.0f gain and 1.0f pitch, no speed
value is specified, and looping.

thanks

From: Daniel PEACOCK <[email protected]>
To: uray meiviar <[email protected]>
Cc: openal mailinglist <[email protected]>
Sent: Thu, April 8, 2010 2:20:02 PM
Subject: Re: [Openal] release version problem

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

(Embedded image moved to file: pic00041.gif)Inactive hide details for uray
meiviar <[email protected]>uray meiviar <[email protected]>

                                                                           
                         uray meiviar                                      
                         <uraymeiviar@                                     
                         yahoo.com>                                        
                                       (Embedded image moved to file:      
                                       pic18467.gif)                       
                         04/08/2010                                     To 
                         01:51 PM                   (Embedded image moved  
                                                    to file: pic06334.gif) 
                                                    Daniel PEACOCK         
                                                    <dpeacock@creativelabs 
                                                    .com>                  
                                       (Embedded image moved to file:      
                                       pic26500.gif)                       
                                                                        cc 
                                                    (Embedded image moved  
                                                    to file: pic19169.gif) 
                                                    openal mailinglist     
                                                    <[email protected] 
                                                    ative.com>             
                                       (Embedded image moved to file:      
                                       pic15724.gif)                       
                                                                   Subject 
                                                    (Embedded image moved  
                                                    to file: pic11478.gif) 
                                                    Re: [Openal] release   
                                                    version problem        
                                                                           
                                                                           
                                       (Embedded image moved to file:      
                                       pic29358.gif)                       
                                              (Embedded image moved to     
                                              file: pic26962.gif)          
                                                                           
                                                                           



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

ForwardSourceID:NT0007B126

_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
pic00041.gif (image/gif, 105 B) - not displayed
pic18467.gif (image/gif, 45 B) - not displayed
pic06334.gif (image/gif, 45 B) - not displayed
pic26500.gif (image/gif, 45 B) - not displayed
pic19169.gif (image/gif, 45 B) - not displayed
pic15724.gif (image/gif, 45 B) - not displayed
pic11478.gif (image/gif, 45 B) - not displayed
pic29358.gif (image/gif, 45 B) - not displayed
pic26962.gif (image/gif, 45 B) - not displayed
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.