1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 6<TITLE>AXARTSet3DDopplerScale</TITLE> 7<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 8<META http-equiv="Content-Style-Type" content="text/css"> 9</head> 10 11<BODY> 12 13<H1 align="left">AXARTSet3DDopplerScale</H1> 14 15<H2>Syntax</H2> 16<dl><dd><pre class="construction"> 17#include <revolution.h> 18#include <revolution/axart.h> 19 20void AXARTSet3DDopplerScale(f32 scale); 21</pre></dd></dl> 22 23<H2>Arguments</H2> 24<TABLE class="arguments" border="1" > 25 <TBODY> 26 <TR> 27<TH>scale</TH> 28<TD>Closing speed scale. </TD> 29 </TR> 30 </TBODY> 31</TABLE> 32 33<h2>Return Values</h2> 34<p>None.</p> 35 36<H2>Description</H2> 37<P>The <code>AXARTSet3DDopplerScale</code> function sets an arbitrary closing speed scale for the Doppler pitch of 3D sounds. The AXART library finds the pitch for the Doppler Effect using the following formula when a sound source approaches the camera. The scale set by this function is assigned to <code>scale</code> in the formula, while the <code>AXART_3D</code> articulator member <code>closingSpeed</code> is assigned to <code>closingSpeed</code>. Calculation results are saved in the same <code>AXART_3D</code> articulator's member <code>pitch</code>.</P> 38 39<BLOCKQUOTE><CODE>pitch = closingSpeed ÷ scale</CODE></BLOCKQUOTE> 40 41<H2>See Also</H2> 42<P class="reference"> 43<A href="AXARTSet3DDistanceScale.html">AXARTSet3DDistanceScale</A>, <A href="AXART_3D.html">AXART_3D</A> 44</P> 45 46<H2>Revision History</H2> 47<P> 482006/09/01 Added an argument.<br>2006/03/01 Initial version.<BR> 49</P> 50 51<hr><p>CONFIDENTIAL</p></body> 52</HTML> 53