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>AXSetMasterVolume</title> 7<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 8<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 9<META http-equiv="Content-Style-Type" content="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">AXSetMasterVolume</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/ax.h> 19 20void AXSetMasterVolume(u16 volume); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th>volume</th> 27<td>Master volume value.</td> 28 </tr> 29</table> 30 31<h2>Return Values</h2> 32<p>None.</p> 33 34<H2>Description</H2> 35<p>The <code>AXSetMasterVolume</code> function configures the AX master volume. The volume is a 16-bit fixed point number, where the high-order bit represents the integer part and 15 bits the fractional part, and the selectable range is from 0x0000 (= 0.0) to 0x8000 (= 1.0). The default value is 0x8000 (= 1.0).</p> 36 37<p>The master volume value is applied to each sample immediately before sample data synthesized by DSP is output to main memory.</p> 38 39<p>Setting a master volume value that is very different from the current value (such as 0x8000 -> 0x0000) may cause noise. Change the master volume gradually in appropriately timed steps within the application.</p> 40 41<p><strong><B>Note: </B>Master volume is not applied to Wii Remote speaker data.</strong></p> 42 43<H2>See Also</H2> 44<p class="reference"> 45<a href="AXGetMasterVolume.html"><CODE>AXGetMasterVolume</CODE></a> 46</p> 47 48<H2>Revision History</H2> 49<p> 502006/10/23 Initial version.<br> 51</p> 52 53<hr><p>CONFIDENTIAL</p></body> 54</html>