[Openal] How can I play mono wav sound in specific channel?

Daniel PEACOCK dpeacock at creativelabs.com
Thu Apr 16 01:43:16 PDT 2009





OpenAL is a 3D positional API, primarily created to virtualize sounds over
different loud speaker systems or headphones.

You have two possible methods of putting a sound effect in a side-left or
side-right speaker.

a) Position the mono sound to the immediate left or right of the listener.
It is best to make the sound head-relative (AL_SOURCE_RELATIVE) and,
assuming you don't want any attenuation, position the sound at distance
less than or equal to the Reference Distance.

b) Manually package the mono data into a 7.1 audio stream in the
appropriate channel.   You can of course package one mono stream in the
Side Left channel and another mono stream into the Side Right channel and
play one 7.1 file.   If the audio changes at run-time then you will need to
dynamically package and stream the 7.1 audio data to OpenAL.

I would favour option (b) if you want to guarantee that no audio "leaks"
from the side channels into any other channels (which might happen as a
result of the 3D positional algorithms used).

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



                                                                           
             Ümit Uzun                                                     
             <umituzun84 at gmail                                             
             .com>                                                      To 
             Sent by:                  OpenAL                              
             openal-bounces at op         <openal at opensource.creative.com>    
             ensource.creative                                          cc 
             .com                                                          
                                                                   Subject 
                                       [Openal] How can I play mono wav    
             04/16/2009 08:41          sound in specific channel?          
             AM                                                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi Folks;

I have an project and in this project I have an SoundServer application. I
have implemented by OpenAL. But as I have realized that, there is no
channel controlling chance indirectly. OpenAL takes all controls about the
sound in its hands.

But I have an 7.1 speaker and 2 of them (Side Left and Side Right) are
different room and the others are different room where each room sound
isolated from each other. I have kind oe sounds and some of them could be
heard from only room1 and some of them could be heard from only room2.
So how can achive play different wav sound from different channel to direct
each related rooms?

Thanks for your helps.
Best Regards.

--
Ümit Uzun_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT0006B2D2




More information about the Openal mailing list