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>SYNSetInitCallback</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">SYNSetInitCallback</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre class="construction"> 17#include <revolution.h> 18#include <revolution/syn.h> 19 20typedef void (*SYNCallback)(AXVPB *axvpb, SYNSYNTH *synth, u8 midiChannel); 21 22SYNCallback SYNSetInitCallback(SYNSYNTH *synth, SYNCallback callback); 23</pre></dd></dl> 24 25<h2>Arguments</h2> 26<TABLE class="arguments" border="1" > 27 <tr> 28<th>synth</th> 29<td>Pointer to the user-initialized <CODE>SYNSYNTH</CODE> data structure</td> 30 </tr> 31 <tr> 32<th>callback</th> 33<td>Callback to be registered</td> 34 </tr> 35</table> 36 37<h2>Return Values</h2> 38<p>Pointer to the previous callback function.</p> 39 40<h2>Description</h2> 41<p>The <code>SYNSetInitCallback</code> function registers a callback function to be called at note-on for the specified synthesizer.</p> 42 43<p>Use this callback function when outputing a voice from the controller speaker via a synthesizer.</p> 44 45<h2>See Also</h2> 46<p>None.</p> 47 48<h2>Revision History</h2> 49<P> 502006/08/03 Initial version.<BR> 51</P> 52 53<hr><p>CONFIDENTIAL</p></body> 54</html> 55