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>C Specification</h2> 16 17<dl> 18<dd><pre><CODE>#include <revolution.h> 19#include <revolution/syn.h></CODE></pre> 20 </dd> 21<dd><pre><CODE>typedef void (*SYNCallback)(AXVPB *axvpb, SYNSYNTH *synth, u8 midiChannel);</CODE></pre> 22 </dd> 23<dd><pre><CODE>SYNCallback SYNSetInitCallback(SYNSYNTH *synth, SYNCallback callback);</CODE></pre> 24 </dd> 25</dl> 26 27<h2>Arguments</h2> 28 29<table border="1" cellpadding="3" cellspacing="0.1"> 30 <tr> 31<td width="120" bgcolor="#ffffe8"><em><strong><font face="Courier New">synth</font></strong></em></td> 32<td width="520">pointer to the user-initialized <font face="Courier New">SYNSYNTH</font> data structure</td> 33 </tr> 34 <tr> 35<td width="120" bgcolor="#ffffe8"><em><strong><font face="Courier New">callback</font></strong></em></td> 36<td width="520">Callback to be registered.</td> 37 </tr> 38</table> 39 40<h2>Return Values</h2> 41 42<p>Pointer to the previous callback function.</p> 43 44<h2>Description</h2> 45 46<p>The <code>SYNSetInitCallback</code> function registers a callback function to be called at note on for the specified synthesizer.</p> 47 48<p>Use this callback function when outputing a voice from the controller speaker via a synthesizer.</p> 49 50<h2>See Also</h2> 51 52<h2>Revision History</h2> 53 54<P>2006/08/03 Initial version.</P> 55 56<hr> 57<P>CONFIDENTIAL</p> 58</BODY> 59</HTML> 60