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>MIXGetMemorySize</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">MIXGetMemorySize</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre class="construction"> 17#include <revolution.h> 18#include <revolution/mix.h> 19 20#define MIXGetMemorySize(num) ((sizeof(MIXChannel) + sizeof(MIXRmtChannel)) * num) 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th>num</th> 27<td>Number of voices specified when the AX library is initialized.</td> 28 </tr> 29</table> 30 31<h2>Return Values</h2> 32<p>Byte size of the memory area required by the mixer library.</p> 33 34<h2>Description</h2> 35<p>This macro returns the byte size of the memory area required by the mixer library. If the <a href="MIXInitSpecifyMem.html"><code>MIXInitSpecifyMem</code></a> function is used to initialize the mixer, it is necessary to allocate a memory buffer of the size returned by this macro ahead of time.</p> 36 37<h2>See Also</h2> 38<p class="reference"> 39<a href="MIXInitSpecifyMem.html">MIXInitSpecifyMem</a> 40</p> 41 42<h2>Revision History</h2> 43<P> 442006/10/23 Initial version.<br> 45</P> 46 47<hr><p>CONFIDENTIAL</p></body> 48</html> 49