Compare commits
1 Commits
fft-detect
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9dffdce907 |
@ -26,14 +26,15 @@ Synth::Synth() {
|
||||
throw new std::runtime_error("Unable to create fluid synth");
|
||||
}
|
||||
|
||||
#ifdef OUPUT_TO_FILE
|
||||
fluid_settings_setstr(settings, "audio.driver", "file");
|
||||
fluid_settings_setstr(settings, "audio.file.name", "output.raw");
|
||||
fluid_settings_setstr(settings, "audio.file.format", "s16");
|
||||
fluid_settings_setstr(settings, "audio.file.type", "raw");
|
||||
#endif
|
||||
|
||||
fluid_settings_setnum(settings, "synth.sample-rate", 44100);
|
||||
fluid_settings_setnum(settings, "synth.gain", 1.0);
|
||||
//fluid_settings_setint(settings, "synth.chorus.active", 0);
|
||||
//fluid_settings_setint(settings, "synth.reverb.active", 0);
|
||||
|
||||
adriver = new_fluid_audio_driver(settings, synth);
|
||||
if (adriver == nullptr) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user