1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libfluidsynth: voice.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6-20040222 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<h1>voice.h</h1><a href="voice_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/* FluidSynth - A Software Synthesizer</span>
00002 <span class="comment"> *</span>
00003 <span class="comment"> * Copyright (C) 2003 Peter Hanappe and others.</span>
00004 <span class="comment"> *</span>
00005 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00006 <span class="comment"> * modify it under the terms of the GNU Library General Public License</span>
00007 <span class="comment"> * as published by the Free Software Foundation; either version 2 of</span>
00008 <span class="comment"> * the License, or (at your option) any later version.</span>
00009 <span class="comment"> *</span>
00010 <span class="comment"> * This library is distributed in the hope that it will be useful, but</span>
00011 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
00013 <span class="comment"> * Library General Public License for more details.</span>
00014 <span class="comment"> * </span>
00015 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
00016 <span class="comment"> * License along with this library; if not, write to the Free</span>
00017 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA</span>
00018 <span class="comment"> * 02111-1307, USA</span>
00019 <span class="comment"> */</span>
00020
00021 <span class="preprocessor">#ifndef _FLUIDSYNTH_VOICE_H</span>
00022 <span class="preprocessor"></span><span class="preprocessor">#define _FLUIDSYNTH_VOICE_H</span>
00023 <span class="preprocessor"></span>
00024 <span class="preprocessor">#ifdef __cplusplus</span>
00025 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00026 <span class="preprocessor">#endif</span>
00027 <span class="preprocessor"></span>
00028
00029 <span class="comment">/*</span>
00030 <span class="comment"> * The interface to the synthesizer's voices</span>
00031 <span class="comment"> * Examples on using them can be found in fluid_defsfont.c</span>
00032 <span class="comment"> */</span>
00033
00038 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">void</span> <a class="code" href="voice_8h.html#a3">fluid_voice_update_param</a>(<a class="code" href="types_8h.html#a2">fluid_voice_t</a>* voice, <span class="keywordtype">int</span> gen);
00039
00040
00041 <span class="comment">/* for fluid_voice_add_mod */</span>
<a name="l00042"></a><a class="code" href="voice_8h.html#a11">00042</a> <span class="keyword">enum</span> <a class="code" href="voice_8h.html#a4">fluid_voice_add_mod</a>{
00043 <a class="code" href="voice_8h.html#a11a0">FLUID_VOICE_OVERWRITE</a>,
00044 <a class="code" href="voice_8h.html#a11a1">FLUID_VOICE_ADD</a>,
00045 <a class="code" href="voice_8h.html#a11a2">FLUID_VOICE_DEFAULT</a>
00046 };
00047
00048 <span class="comment">/* Add a modulator to a voice (SF2.1 only). */</span>
00049 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">void</span> <a class="code" href="voice_8h.html#a11">fluid_voice_add_mod</a>(<a class="code" href="types_8h.html#a2">fluid_voice_t</a>* voice, <a class="code" href="struct__fluid__mod__t.html">fluid_mod_t</a>* mod, <span class="keywordtype">int</span> mode);
00050
00052 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">void</span> <a class="code" href="voice_8h.html#a5">fluid_voice_gen_set</a>(<a class="code" href="types_8h.html#a2">fluid_voice_t</a>* voice, <span class="keywordtype">int</span> gen, <span class="keywordtype">float</span> val);
00053
00055 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">float</span> <a class="code" href="voice_8h.html#a6">fluid_voice_gen_get</a>(<a class="code" href="types_8h.html#a2">fluid_voice_t</a>* voice, <span class="keywordtype">int</span> gen);
00056
00058 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">void</span> <a class="code" href="voice_8h.html#a7">fluid_voice_gen_incr</a>(<a class="code" href="types_8h.html#a2">fluid_voice_t</a>* voice, <span class="keywordtype">int</span> gen, <span class="keywordtype">float</span> val);
00059
00060
00072 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="voice_8h.html#a8">fluid_voice_get_id</a>(<a class="code" href="types_8h.html#a2">fluid_voice_t</a>* voice);
00073
00074
00075 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">int</span> <a class="code" href="voice_8h.html#a9">fluid_voice_is_playing</a>(<a class="code" href="types_8h.html#a2">fluid_voice_t</a>* voice);
00076
00089 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">int</span> <a class="code" href="voice_8h.html#a10">fluid_voice_optimize_sample</a>(<a class="code" href="struct__fluid__sample__t.html">fluid_sample_t</a>* s);
00090
00091
00092
00093 <span class="preprocessor">#ifdef __cplusplus</span>
00094 <span class="preprocessor"></span>}
00095 <span class="preprocessor">#endif</span>
00096 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* _FLUIDSYNTH_VOICE_H */</span>
00097
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Aug 17 14:37:46 2004 for libfluidsynth by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.6-20040222 </small></address>
</body>
</html>
|