[Openal] I have a problem in using effect

Daniel PEACOCK dpeacock at creativelabs.com
Thu Dec 13 11:23:18 PST 2007





Hi,

The numbers of Auxiliary Effect Slots that can be fed by a single Source is
dependent on the rendering platform.   The "Generic Software" device
supports one Auxiliary Effect Slot, and therefore one "effect slot send"
per Source.    On Audigy class soundcards you can create 2 Auxiliary Effect
Slots and each Source can "send" to both slots if you want to.   On
hardware X-Fi class products you can create 4 Auxiliary Effect Slots and
you can choose between having 128 3D Sources with 2 "sends" each, or 96 3D
Sources with 3 "sends" each, or 76 3D Sources with 4 "sends" each.    You
can request the number of per-Source sends using the Context Creation
attribute ALC_MAX_AUXILIARY_SENDS and query the number of sends *actually*
available using alcGetIntegerv(pDeviceID, ALC_MAX_AUXILIARY_SENDS,
&iNumSendsPerSource).

However, if all you want to do it mute the reverb effect when your
application "pauses" and un-mute it when the application "resumes", you
don't need to use two effect slots.   Create 2 different Effect objects -
one with your desired reverb preset and the other with the same settings
but with the AL_REVERB_GAIN (or AL_EAXREVERB_GAIN) property set to 0.
When the application "pauses" load the muted reverb effect into the
auxiliary effect slot, and on "resume" load the original reverb effect back
in the slot.

NOTE : Where ever possible it is best to avoid changing the effect-type in
an auxiliary effect slot.  It is OK to change the parameters (which is what
I'm suggesting above), but changing the type is a relatively expensive
operation.

Dan
Creative Labs, Inc.

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.




                                                                           
             김성훈                                                        
             <steadyrun at innoac                                             
             e.com>                                                     To 
             Sent by:                  <openal at opensource.creative.com>    
             openal-bounces at op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       [Openal] I have a problem in using  
                                       effect                              
             12/12/2007 08:56                                              
             PM                                                            
                                                                           
                                                                           
                                                                           
                                                                           




HI~

I  have  a problem in Playing with Reverb. I use Two pair of Effect & slot.
The  first  one  is for playing without Reverb, And the Next is for Playing
with Reverb.
I  want  to implement pause & resume function with reverb effect. So if the
pause function is called, Load the effect slot without Reverb effect in the
function.
And  if  the  resume  function  is called, Load the effect slot with Reverb
effect(is already set before) in the function.

But….  I  can’t heard any effect!! I think I did properly. I guess that one
source can’t be used with two Slot, Is it right?

If there is another way to solve this problem, Let me know about that.

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

ForwardSourceID:NT00056316



More information about the Openal mailing list