FW: [Openal] alGenSources () problem - Number of sources can be generated?

Daniel PEACOCK dpeacock at creativelabs.com
Mon Dec 4 10:51:36 PST 2006





Hi,

The "Generic Hardware" device will only be used if it detects a DS3D driver
that supports at least 16 HW DS3D buffers.   If the device supports EAX
(any version) then one voice is reserved to maintain the EAX Object.
Additionally, one voice is reserved to play a Stereo Buffer.   So you could
end up with a limit of 14 Sources.   You shouldn't see less than that
unless you are requested more stereo sources (via a Context creation hint),
or some of the audio channels are being used by another application.

Dan

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.



                                                                           
             Garin Hiebert                                                 
             <garinh at cheesetoa                                             
             st.net>                                                    To 
             Sent by:                  steve <steve at astrocorp.com.tw>      
             openal-bounces at op                                          cc 
             ensource.creative         openal at opensource.creative.com      
             .com                                                  Subject 
                                       Re: FW: [Openal] alGenSources ()    
                                       problem - Number of sources can     
             12/04/2006 09:08          be    generated?                    
             AM                                                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





> 1. OpenAL reports error after generating 14 sources, Is it a resonable
> number of max sources?
That's a strange result.  If I remember correctly, our wrapper code
should bail on any DS3D driver which provides less than 16 hardware
buffers and fall back to the software mixer, which provides 32 sources
(if memory serves) as currently set up...

You will want to gracefully handle source-generation errors, though --
different implementations max out at different points.  You could wind
up with anything between 16 and 2^32...
>    My game is client / server architecture. The strange thing is my game
> runs ok without network connection.
>    I link all libraries with multi-thread DLL.I wonder which type of
OpenAL
> dll is? Would it be a problem while linking dlls?
>
This probably points towards the real issue...  Dan should be in to work
in a few minutes, and can probably comment on this issue -- I know he
has some experience with stuff like this.

Garin

_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT00039CDE



More information about the Openal mailing list