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

Daniel PEACOCK dpeacock at creativelabs.com
Tue Dec 5 09:13:08 PST 2006





Hi Steve,

That is correct, when using the "Generic Hardware" device on your audio
device you will be limited to 14 Sources (one is reserved because the
device supports EAX whether you use EAX features or not).   If that is not
enough for your application then I would recommend adding code that
enumerates all the OpenAL devices on the user's machine and filtering out
any devices that don't support your minimum number of Sources (e.g 32).
Note : The "Generic Software" device will give you 256 Sources so you
should always have that to fallback on.

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.



                                                                           
             "steve"                                                       
             <steve at astrocorp.                                             
             com.tw>                                                    To 
             Sent by:                  <openal at opensource.creative.com>    
             openal-bounces at op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       RE: FW: [Openal] alGenSources ()    
                                       problem - Number of sources   can   
             12/04/2006 06:08          begenerated?                        
             PM                                                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Thank you, Daniel.

I checked my DxCap Viewer, dwMaxHw3DAllBuffers are 17, dwFreeHw3DAllBuffers
are 16.
I didn't use EAX. No application use audio channel.
My application is still limited of 14 sources?

Steve


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

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



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

ForwardSourceID:NT00039D96



More information about the Openal mailing list