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>SYNGetMemorySize</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">SYNGetMemorySize</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution.h&gt;
18#include &lt;revolution/syn.h&gt;
19
20#define SYNGetMemorySize(num) (sizeof(SYNVOICE) * 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>Size (in bytes) of the memory buffer required by the synthesizer library.</p>
33
34<h2>Description</h2>
35<p>This macro returns the byte size of the memory buffer required by the synthesizer library. If the <a href="SYNInitSpecifyMem.html"><code>SYNInitSpecifyMem</code></a> function is used to initialize the synthesizer, 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="SYNInitSpecifyMem.html"><CODE>SYNInitSpecifyMem</CODE></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