|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Setting multiple effects on an Open AL SourceGreetings to you,
I have a doubt in applying effects on a source in openAL. How do I set multiple effects on a single source. If multiple effects can be set through Source's Auxiliary Sends, then only two effects can be set.Is there any other way to set multiple effects on a Source.Can you give sample code. Thanks and regards Richard _______________________________________________ Openal-devel mailing list Openal-devel@... http://opensource.creative.com/mailman/listinfo/openal-devel |
|
|
Re: Setting multiple effects on an Open AL SourceHi Richard, Firstly you need to determine if the playback device supports more than one effect send (not all implementations do). You can request a particular number of effect sends per Source at context creation time using the attributes parameter of alcCreateContext, but you need to ask how many you got after the context has been created and made current using alcGetIntegerv(pDeviceHandle, ALC_MAX_AUXILIARY_SENDS, 1, &iSends). This is explained in more detail in "Tutorial 1" of the Effects Extension Guide.pdf in the OpenAL SDK. Assuming the underlying device supports more than one effect send per source then ... Tutorial 4 of the same document shows how to configure the effect sends of a Source: - // Assume uiEffectSlot[0] and uiEffectSlot[1] are Auxiliary Effect Slot IDs loaded with some effects // uiFilter[0] is a Filter ID // uiSource is a Source ID // Set Source Send 0 to feed uiEffectSlot[0] without filtering alSource3i(uiSource,AL_AUXILIARY_SEND_FILTER, uiEffectSlot[0], 0, NULL); if (alGetError() != AL_NO_ERROR) printf("Failed to configure Source Send 0\n"); // Set Source Send 1 to feed uiEffectSlot[1] with filter uiFilter[0] alSource3i(uiSource,AL_AUXILIARY_SEND_FILTER, uiEffectSlot[1], 1, uiFilter[0]); if (alGetError() != AL_NO_ERROR) printf("Failed to configure Source Send 1\n"); Hope that helps, 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 Belmont Road, Belmont Place, Maidenhead, Berkshire, SL6 6TB Richard Rosario <richardrosario@g mail.com> To Sent by: openal-devel@... openal-devel-boun m ces@... cc eative.com Subject [Openal-devel] Setting multiple 03/27/2009 01:29 effects on an Open AL Source PM Greetings to you, effects on a source in openAL. How do I set multiple effects on a single source. If multiple effects can be set through Source's Auxiliary Sends, then only two effects can be set.Is there any other way to set multiple effects on a Source.Can you give sample code. Thanks and regards Richard _______________________________________________ Openal-devel mailing list Openal-devel@... http://opensource.creative.com/mailman/listinfo/openal-devel ForwardSourceID:NT0006AAD2 _______________________________________________ Openal-devel mailing list Openal-devel@... http://opensource.creative.com/mailman/listinfo/openal-devel |
| Free embeddable forum powered by Nabble | Forum Help |