mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 13:21:03 +00:00
30 lines
597 B
Text
30 lines
597 B
Text
|
/*!
|
||
|
|
||
|
\page CreatingSynth Creating the synthesizer
|
||
|
|
||
|
To create the synthesizer, you pass it the settings object, as in the
|
||
|
following example:
|
||
|
|
||
|
\code
|
||
|
#include <fluidsynth.h>
|
||
|
|
||
|
int main(int argc, char** argv)
|
||
|
{
|
||
|
fluid_settings_t* settings;
|
||
|
fluid_synth_t* synth;
|
||
|
settings = new_fluid_settings();
|
||
|
synth = new_fluid_synth(settings);
|
||
|
|
||
|
/* Do useful things here */
|
||
|
|
||
|
delete_fluid_synth(synth);
|
||
|
delete_fluid_settings(settings);
|
||
|
return 0;
|
||
|
}
|
||
|
\endcode
|
||
|
|
||
|
For a full list of available <strong>synthesizer settings</strong>, please
|
||
|
refer to the \ref settings_synth documentation.
|
||
|
|
||
|
*/
|