Re[Openal] garding Doppler Effect
Daniel PEACOCK
dpeacock at creativelabs.com
Thu Sep 11 01:48:25 PDT 2008
The OpenAL1.1 Specification includes some information about Doppler (
http://connect.creativelabs.com/openal/Documentation/OpenAL%201.1%20Specification.htm#_Toc199835873
).
To use Doppler properly you must know how your units relate to real world
units. This is because Doppler is modelling how the pitch of a sound
varies based on how fast the sound is travelling and whether it is moving
towards the Listener or moving away from it.
By default, units are assumed to be in meters (and velocities in meters per
second). The AL_SPEED_OF_SOUND property therefore defaults to 343.3
(speed of sound travelling through the air in meters per second).
Assuming you are using meters for your units then all you need to do is
update each moving AL Source with a Velocity vector (note velocity is *not*
generated automatically based on changes in Source position) and if the
Listener is also moving you can also set a Listener Velocity parameter too.
If you are using Windows, and have the Creative OpenAL SDK, you can use the
included EFX10Show application to play with the Doppler related parameters
to see how things interact.
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.
OpenGeek
<abhishek.s.dey at l
ive.com> To
Sent by: openal at opensource.creative.com
openal-bounces at op cc
ensource.creative
.com Subject
Re[Openal] garding Doppler Effect
09/11/2008 05:21
AM
Can anyone explain me the OpenAL Doppler effect and its usage??
--
View this message in context:
http://www.nabble.com/Regarding-Doppler-Effect-tp19337740p19337740.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal
ForwardSourceID:NT00064CB2
More information about the Openal
mailing list