Commit graph

1945 commits

Author SHA1 Message Date
David Henningsson
41717700a5 Refactor lfos into separate file 2010-06-20 06:53:20 +00:00
David Henningsson
933555f2ce Refactor volume and modulation envelopes into separate file 2010-06-20 06:53:00 +00:00
David Henningsson
cb143c8fdf Refactor resonant filter into separate file 2010-06-20 06:52:37 +00:00
David Henningsson
6c0ef45e0e D-Bus and rtkit support 2010-06-11 08:23:36 +00:00
Pedro Lopez-Cabanillas
a4977b83d6 commit test 2010-05-22 17:43:05 +00:00
Pedro Lopez-Cabanillas
06b672dec6 Updated svn:ignores 2010-05-04 10:26:40 +00:00
Pedro Lopez-Cabanillas
6d3234279a Patch by nshepperd, ticket #78. Segmentation fault in non-interactive mode. 2010-05-04 10:21:54 +00:00
David Henningsson
ae09187308 Build issue with OSS on OpenSolaris, credits to laurent. Fixes ticket #74. 2010-04-18 19:47:12 +00:00
David Henningsson
3bf3818f9b Fix OpenSolaris / Sun Studio build issue, credits to laurent. Fixes ticket #73. 2010-04-18 19:32:15 +00:00
Pedro Lopez-Cabanillas
23778b05d6 Check correctly "mmsystem.h" in Windows 2010-04-10 10:45:44 +00:00
Pedro Lopez-Cabanillas
6624f6f2b7 CMake build system - initial implementation 2010-03-17 20:14:13 +00:00
Pedro Lopez-Cabanillas
079e437330 Fix overflow in fluid_curtime(), reported and diagnosed by Felix Krause. 2010-03-17 15:40:07 +00:00
Pedro Lopez-Cabanillas
420882ce2e Fix for fluid_handle_pitch_bend_range(). In ANSI C/C90, all declarations must precede statements in every block. An example of a C compiler following this rule is MSVC. 2010-03-16 19:42:15 +00:00
David Henningsson
57c78bc23a Bug fix for race condition - player_join exiting between files 2010-02-28 10:07:29 +00:00
David Henningsson
26f3119031 Fix typo, segmentation fault and support multiple instances of audio driver. Patch by KO Myung-Hun. 2010-02-11 18:01:47 +00:00
David Henningsson
8131539ad6 Implement pitch bend and pitch bend range as shell commands, contributed by "monk" 2010-01-17 09:50:53 +00:00
David Henningsson
663bb787bd Add options for auto-adjusting latency and media role. Change stream name to "FluidSynth output". 2010-01-01 09:05:38 +00:00
Josh Green
a66d020aca Reverb and Chorus no longer queuing, to fix performance issues and now set under mutex. 2009-12-16 02:48:07 +00:00
Josh Green
93475f4d4c fluid_synth_program_change() wasn't working properly in regards to unsetting the preset, should be fixed now. 2009-12-14 19:06:59 +00:00
Josh Green
8aa1027115 Reverted bank and SoundFont ID queuing, now executed immediately using atomic instructions as previously.
Program number now uses 8 bits in the SoundFont ID/bank/program integer, where a value of 128 indicates an unset preset.
fluid_synth_unset_program() now causes preset to be unassigned until a program change occurs.
Updated units in documentation for fluid_player_set_midi_tempo().
2009-12-14 03:57:25 +00:00
David Henningsson
b1f76f8b0c Update deltatime on midi file load (closes ticket #59) 2009-12-05 11:19:24 +00:00
Josh Green
39b542ad02 New README-OSX from Ebrahim Mayat for 1.1.1. 2009-11-29 04:12:52 +00:00
Josh Green
9e434ca8e0 Updated versions for 1.1.1 release. 2009-11-27 23:27:54 +00:00
Josh Green
2ee782a6cc Now setting shadow_preset parameter directly in fluid_channel_set_preset() which fixes crash bug where MIDI system reset event would cause shadow_preset and preset to get out of sync.
Reverted return queuing of program changes. Program changes are once again real-time unsafe.
Added public function fluid_synth_unset_program().
Renamed fluid_synth_get_channel_preset_info() to fluid_synth_get_channel_info().
Changed fluid_preset_info_t to fluid_synth_channel_info_t and moved to synth.h header.
Shell 'channels' command now uses thread safe fluid_synth_get_channel_info().
Removed fluid_synth_set_preset_LOCAL(), now just using fluid_channel_set_preset().
Added New In 1.1.1 section to developer docs.
2009-11-27 22:28:23 +00:00
David Henningsson
836a6b45d8 Recommit fix for voice stealing algorithm 2009-11-18 19:14:29 +00:00
Josh Green
35f5a739a2 Added events for bank select and SoundFont ID select and a payload structure for MIDI channel and integer values.
Return queue process is now a thread, instead of a timer, which blocks until signaled by synthesis thread.
fluid_synth_one_block() signals return queue process if any events are pending.
Program change messages are now queued via return event queue if they occur in synthesis context.
Changed fluid_synth_cc() to always queue when in non-synthesis context, no more exceptions.
fluid_synth_bank_select() and fluid_synth_sfont_select() now queue if called out of synthesis context.
Removed checks for synth->state == FLUID_SYNTH_PLAYING, since those functions shouldn't be getting called after state is changed to STOPPED (in delete_fluid_synth).
2009-11-17 08:13:23 +00:00
Josh Green
7758f5a630 Added public fluid_synth_get_channel_preset_info() function and fluid_preset_info_t structure.
Added shadow_preset field to fluid_channel_t which stores the last assigned preset (irrespective of queuing).
Presets now deleted under lock for shadow_preset functionality.
Marked fluid_synth_get_channel_preset() as deprecated.
2009-11-16 07:43:43 +00:00
Josh Green
50c88d392a Moved snd_pcm_nonblock call into new_fluid_alsa_audio_driver2() and out of audio run functions.
Removed unnecessary test of snd_pcm_state and call to snd_pcm_drop.
Removed SETCC macro in fluid_chan.c and replaced with fluid_channel_set_cc() which uses atomic op.
Removed invalid fluid_channel_set_cc() and fluid_channel_get_cc() function declarations (they were replaced with macros).
Added shadow_polyphony field to fluid_synth_t which is accessed via atomic ops by all threads, polyphony field is now only set by synthesis thread.
fluid_synth_cc() now sets cc channel field atomically and queues an update as needed.
synth_thread_id field assigned every call to fluid_synth_one_block().
fluid_synth_alloc_voice() now atomically accesses gain.
Fixed bug in fluid_timer_join() where timer->thread was set to NULL even if auto_destroy was enabled, but was at that point no longer in existence.
2009-11-15 02:34:24 +00:00
Josh Green
8f63cef0aa Actual checkin of -Wno-cast-qual warning inhibitor (wasn't actually checked in in r264).
Added example source files and fluidsynth-v11-devdoc.txt in doc/ to EXTRA_DIST.
Added work around in fluid_coremidi.c for OSX 10.4.
2009-11-07 03:26:19 +00:00
David Henningsson
7eeb88d42f fix unknown macro warning 2009-11-05 22:16:10 +00:00
Josh Green
5040b4bcb0 Reverted char * -> const char * changes to function prototypes: fluid_log_function_t, fluid_default_log_function, fluid_settings_foreach_option_t, fluid_settings_foreach_t, fluid_server_newclient_func_t.
Removed WITHOUT_SERVER from src/config_win32.h.in (the right one this time).
Added atomic value set/get functions for various channel parameters in fluid_chan.h.
Removed shadow parameters in fluid_chorus_t (they weren't needed before).
Merged fluid_chorus_update() into fluid_chorus_set().
Fixed crash bug in Jack driver related to last_client remaining set even if the client was deleted.
fluid_mod_get_value() now uses new fluid_channel_get_* atomic macros.
Synth gain, polyphony, channel pressure, pitch bend and pitch bend sensitivity are now assigned atomically AND querying the value will return the most recent assignment (fixes QSynth knob jumping issues), also changed many _LOCAL functions to update the current assigned value instead of passing the value via the event queue.
Reverb and chorus shadow values set atomically and querying the values will return the most recently assigned ones (fixes QSynth knob jumping issues).
Fixed bug in fluid_synth_process_event_queue_LOCAL() related to chorus parameter order.
Added -Wno-cast-qual to get rid of warning of required cast from (const char *) to (char *).
2009-11-05 04:37:51 +00:00
Josh Green
8b231faab7 Added fluid_synth_get_active_voice_count(). 2009-11-01 22:56:26 +00:00
Josh Green
b46061bfe7 High priority scheduling was not working in alsa, oss and pthread drivers. Converted to using fluid_thread_t.
Removed prio parameter from new_fluid_thread (now just using prio_level of 0 to disable).
Fixed non-blocking in alsa_raw and alsa_seq drivers.
Added polling and non-blocking to OSS MIDI driver.
2009-10-30 21:49:54 +00:00
David Henningsson
997b660805 Fix possibility to set string parameters 2009-10-30 20:27:17 +00:00
Josh Green
c389878c5d Updated libtool library versions for release. 2009-10-30 19:19:35 +00:00
Josh Green
f746e8d1ec Removed audio.realtime and midi.realtime boolean settings as suggested by David Henningsson. audio.realtime-prio and midi.realtime-prio now take 0 to disable high priority scheduling.
Updated docs and drivers relating to high priority settings.
Adjusted default values of audio and MIDI high priority to 60 and 50 respectively.
Changed doc/example.c to enable reset_presets option to fluid_synth_sfload().
Updated README-OSX from Ebrahim Mayat.
2009-10-30 19:13:45 +00:00
Josh Green
e49ccb7373 Updated help command related output to reflect change to 'help' listing help topics.
Added fluid_player_get_status() to the new API list in the developers doc.
2009-10-28 19:54:15 +00:00
Josh Green
b3fb606bde Changed relevant char * arguments to const char * as per request by Louis B.
Some callback prototypes also changed from char * to const char *, including: fluid_log_function_t, fluid_settings_foreach_option_t, fluid_settings_foreach_t and fluid_server_newclient_func_t.
Fixed fluid_event_note() prototype in event.h (looks like an accidental paste in a text editor).
Added @since 1.1.0 to some enums in public headers.
Provided documentation for missing modulator functions in mod.h and other doc updates.
Added missing docs for fluid_event_callback_t.
Added missing docs for fluid_player_add and fluid_player_get_status.
Added missing docs for fluid_version and fluid_version_str.
Fixed missing docs for fluid_synth_program_reset and fluid_synth_sfcount.
Added missing docs for fluid_get_stdin and fluid_get_stdout.
2009-10-28 19:38:10 +00:00
David Henningsson
c09f52f50a Small additions and corrections 2009-10-28 18:13:50 +00:00
David Henningsson
c557766f74 Fix compiler warning 2009-10-28 17:10:15 +00:00
Josh Green
6b92375195 Reverted r245 changeset which added audio driver2 support to DirectSound driver, since it wasn't implemented properly (fluid_audio_callback_t != fluid_audio_func_t). 2009-10-28 06:16:12 +00:00
Josh Green
50f185a143 Updates for VC++ 2008:
Updated vcproj files for glib/gthread and new .c/.h files.
Moved inline functions in fluid_event_queue.c to .h header.
Moved inclusion of winsock2.h and ws2tcpip.h to fluidsynth_priv.h and before windows.h (fixes redefinition errors).
Fixed some other minor build errors and warnings.
2009-10-26 06:43:18 +00:00
Josh Green
2a367ab6a0 Jack driver will now pair up audio and MIDI driver instances, so that audio and MIDI is synchronous.
Fixed bug in delete_fluid_timer() where timer instance was being accessed after it was possibly destroyed (if auto_destroy enabled).
2009-10-26 03:17:01 +00:00
Pedro Lopez-Cabanillas
08d1dea6b8 * missing comma, compile error. 2009-10-23 20:43:05 +00:00
Josh Green
ab517db31f Updated man page to include additional command line options and all settings.
Removed system specific fluid_timer_t code in fluid_sys.c and created a unified system.
Added checks and calls to g_thread_init() in key thread functions.
Removed g_thread_init() from fluidsynth.c.
2009-10-23 06:52:29 +00:00
Josh Green
bcec3dc993 Added a "Whats new in 1.1.0?" section to the developer doc.
Added fluid_settings_option_concat() to concatenate string setting options.
Removed fluid_audio_driver_get_names() and fluid_midi_driver_get_names(), since fluid_settings_option_concat() can be used in their place.
Renamed fluid_synth_program_select2() to fluid_synth_program_select_by_sfont_name().
Added fluid_synth_program_select_by_sfont_name(), fluid_synth_get_sfont_by_name() and fluid_synth_set_gen2() to public API.
Re-organized fluid_file_renderer_process_block() since it wasn't being picked up by Doxygen due to #if preprocessor stuff.
All integer and number settings now have FLUID_HINT_BOUNDED_BELOW and FLUID_HINT_BOUNDED_ABOVE hints set.
2009-10-23 02:18:26 +00:00
Josh Green
93ddc1fc5f Converted all yes/no string boolean parameters to FLUID_HINT_TOGGLED integers.
Added FLUID_HINT_FILENAME to audio.file.name setting.
Added backwards compatibility for yes/no string booleans to fluid_settings_setstr, fluid_settings_copystr, fluid_settings_dupstr, fluid_settings_getstr, fluid_settings_str_equal and fluid_settings_getstr_default.
Added support for integer type to fluid_settings_get_hints and fluid_settings_is_realtime.
fluid_settings_add_option now automatically enables FLUID_HINT_OPTIONLIST.
Replaced fluid_settings_foreach_option() with fluid_settings_foreach_option_alpha().
Replaced fluid_settings_foreach() with fluid_settings_foreach_alpha().
Added backwards compatibility to fluidsynth -o switch for yes/no booleans and improved error handling.
Added support for boolean strings to 'set' shell command and improved type handling and errors.
Added boolean support to 'settings' and 'info' commands.
Added boolean type output to -o help.
Welcome message is now always displayed in fluidsynth.
Changed 'help' command to list topics (help help), instead of general help.
Marked FLUID_HINT_INTEGER as deprecated (since there is a FLUID_INT_TYPE).
2009-10-22 18:41:01 +00:00
Josh Green
f3b62ad39a Overhauled MIDI router and added public API for creating and adding rules.
Updated synth.audio-channels and synth.audio-groups to reflect actual maximum value of 128.
Re-enabled aufile-support argument in configure.ac to make it possible to disable audio output driver.
Updates to doc/Doxyfile to exclude private header files.
Lots of updates to doc/fluidsynth-v11-devdoc.txt: Removed some information that seemed irrelavent to the topic at hand, added descriptions of all FluidSynth settings and sorted, re-wrote MIDI router information and added example code, and more.
Removed src/config.h.in from svn.
2009-10-22 07:06:26 +00:00
Josh Green
9ea9f60494 Merged support for new_fluid_audio_driver2 to DirectSound driver from Z-Maestro. 2009-10-20 22:51:17 +00:00
Josh Green
c7a865ff24 Removed fluid_file_renderer_get_(type_names/format_names/endian_names) from API, now just using settings subsystem.
Removed explicity enable of AUFILE_SUPPORT in fluid_adriver.c.
Warning about failure to set high priority scheduling, now only printed if actually attempted high priority scheduling.
Removed unused fluid_alsa2.c.
Moved fluid_file_audio_driver_settings() from fluid_aufile.c to fluid_filerenderer.c and renamed to fluid_file_renderer_settings().
Added fluid_file_renderer_find_valid_format() to search for valid audio formats for a given file type (to fix Ogg/Vorbis output).
Added audio.jack.server and midi.jack.server settings.
Now using jack_client_open() instead of deprecated jack_client_new().
Fixed declaration of new_fluid_midishare_midi_driver() in fluid_mdriver.c.
Added support for realtime settings to fluid_oss.c and fluid_pulse.c.
Added call to Pa_Terminate() in fluid_portaudio_driver_settings() to free unused resources (such as Jack connections).
Removed synth.midi-mode and preset note-off ignore code for now, until its properly supported.
Added/improved command line "help" output for -a, -E, -m, -O and -T.
Welcome message and "Rendering audio to file .." message now displayed on fast render (-F).
2009-10-19 05:41:07 +00:00