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>C Specification</h2>
16
17<dl>
18<dd><pre><CODE>#include &lt;revolution.h&gt;
19#include &lt;revolution/syn.h&gt;</CODE></pre>
20  </dd>
21  <dd><pre><CODE>#define SYNGetMemorySize(num) (sizeof(SYNVOICE) * num)</CODE></pre>
22  </dd>
23</dl>
24
25<h2>Arguments</h2>
26
27<table border="1" cellpadding="3" cellspacing="0.1">
28  <tr>
29<td width="120" bgcolor="#ffffe8"><em><strong><code>num</code></strong></em></td>
30    <td width="520">Number of voices specified when the AX library is initialized.</td>
31  </tr>
32</table>
33
34<h2>Return Values</h2>
35
36<p>Size (in bytes) of the memory buffer required by the synthesizer library.</p>
37
38<h2>Description</h2>
39
40<p>This macro returns the size of the memory buffer required by the synthesizer library in units of bytes. If the function <a href="SYNInitSpecifyMem.html"><code>SYNInitSpecifyMem</code></a> 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>
41
42<h2>See Also</h2>
43
44<p><a href="SYNInitSpecifyMem.html"><code>SYNInitSpecifyMem</code></a></p>
45
46<h2>Revision History</h2>
47
48<P>2006/10/23 Initial version.</P>
49
50<hr>
51<P>CONFIDENTIAL</p>
52</BODY>
53</HTML>
54