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>C Specification</H2> 16<DL> 17<dd><pre><CODE>#include <revolution.h> 18#include <revolution/axart.h></CODE></pre> 19 </dd> 20<dd><PRE><CODE>void AXARTSet3DDopplerScale(f32 scale);</CODE></PRE> 21 </dd> 22</DL> 23 24<H2>Arguments</H2> 25<TABLE border="1" cellpadding="3" cellspacing="0.1"> 26 <TBODY> 27 <TR> 28<TD width="120" bgcolor="#ffffe8"><FONT face="Courier New"><EM><STRONG>scale</STRONG></EM></FONT></TD> 29<TD width="520">Closing speed scale. </TD> 30 </TR> 31 </TBODY> 32</TABLE> 33 34<h2>Return Values</h2> 35<p>None.</p> 36 37<H2>Description</H2> 38<P><font face="Courier New">AXARTSet3DDopplerScale()</font> 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 <A href="AXART_3D.html"><code>AXART_3D</code></A> articulator member <code>closingSpeed</code> is assigned to <code>closingSpeed</code>. Calculation results are similarly saved in the <A href="AXART_3D.html"><code>AXART_3D</code></A> articulator member <code>pitch</code>. </P> 39 40<BLOCKQUOTE><CODE>pitch = closingSpeed ÷ scale</CODE></BLOCKQUOTE> 41 42<H2>See Also</H2> 43<P><FONT face="Courier New"><A href="AXARTSet3DDistanceScale.html">AXARTSet3DDistanceScale</A><BR> <A href="AXART_3D.html">AXART_3D</A></FONT></P> 44 45<H2>Revision History</H2> 46<P> 472006/03/01 Initial version. <br>2006/09/01 Added arguments. 48</P> 49 50<hr> 51<P>CONFIDENTIAL</p> 52</BODY> 53</HTML> 54