Commit graph

2404 commits

Author SHA1 Message Date
derselbst
83f82ba98d cmake: let clang use correct compile flags 2017-07-08 20:39:43 +02:00
Tom M
533fcb3a44 Merge pull request #173 from FluidSynth/midi_port_type
adjust alsa midi port type
2017-07-07 16:41:39 +02:00
derselbst
54f5f9d2b8 avoid including Win32 headers when build with cygwin 2017-07-07 16:24:30 +02:00
derselbst
5e2694ab1d remove redundant cmake var 2017-07-07 15:45:26 +02:00
derselbst
58558c7517 make inet_ntop check work on non Win32 OS 2017-07-07 15:33:43 +02:00
derselbst
d7d56086d5 cmake: check for inet_ntop
fix build with mingw32, fix #132
2017-07-07 15:14:25 +02:00
Tom M
e53230bb2f Merge pull request #168 from derselbst/alsa
EPIPE and ESTRPIPE may be equal
2017-07-07 08:49:58 +02:00
derselbst
a80793a55b adjust alsa midi port type
fix #139
2017-07-05 18:43:58 +02:00
Tom M
5723aa9241 add warning during compilation
if ESTRPIPE == EPIPE
2017-07-05 08:18:45 +02:00
derselbst
96df3e1660 enable doxygen search 2017-07-03 19:31:02 +02:00
derselbst
245b178a4c update Doxyfiles 2017-07-03 19:19:03 +02:00
Tom M
f0a83e13e3 Merge pull request #170 from FluidSynth/cmake_pthreads
fix build
2017-07-02 09:58:34 +02:00
derselbst
a5c8c9accb fix build with lash support 2017-07-02 09:43:53 +02:00
derselbst
cc9bda442e dont discard const qualifiers 2017-07-02 00:33:11 +02:00
derselbst
11b49cc7c7 use cmakes native Thread module to find pthreads 2017-07-01 23:53:47 +02:00
derselbst
174d8551b9 parser: fix sysex parsing
fixes #148
2017-07-01 18:33:52 +02:00
derselbst
cf1975e35f correctly check length of MIDI_SYSEX_TUNING_NOTE_TUNE_BANK
fixes #127
2017-07-01 18:24:02 +02:00
derselbst
80b46c601a avoid voice_count becomming negative
bug around fluid_voice_off(), fixes issue #151
2017-07-01 17:57:43 +02:00
derselbst
8af2eb4d7c update version and copyright year in devdocs 2017-07-01 14:30:49 +02:00
surabhi.m
666ccb4c83 Logical error resulting dereferencing of NULL
Signed-off-by: Surabhi <surabhi.m@samsung.com>
2017-07-01 08:45:07 +02:00
Tom M
cff965be7e typo 2017-06-30 08:19:29 +02:00
Tom M
3995efca5d EPIPE and ESTRPIPE may be equal
fixes #133
2017-06-30 08:14:09 +02:00
derselbst
0edbe06621 Revert "windows: allow SF2 to be loaded from unicode paths"
This reverts commit d3f4b14e48.

Wont work, since fluidsynth internally only uses char*, but _wfopen requires wchar_t*
2017-06-25 12:01:00 +02:00
derselbst
d3f4b14e48 windows: allow SF2 to be loaded from unicode paths
fix #128
2017-06-25 11:51:32 +02:00
Surabhi Mishra
2526982f9f Removing passing argument 2 of 'show_settings_str_options' discards 'const' qualifier from pointer target type [-Werror] warnngs from code
fix #131
2017-06-25 11:44:55 +02:00
derselbst
905d9e9d26 Dereferencing NULL in fluid_synth_process, fix #143 2017-06-25 10:13:45 +02:00
derselbst
02106b9118 missing FLUID_FAILED check, fix #144 2017-06-25 10:10:01 +02:00
derselbst
813f6243c1 fix memory leak in fluid_alsa.c, fix #147 2017-06-25 10:03:16 +02:00
Surabhi Mishra
f52597be03 Delete preset for err_exit in fluid_defsfont_load
Closes ticket #140
2015-05-19 14:27:02 +02:00
Jai Veer
d08853c685 Check for NULL name in get_fluidsynth_dest
Closes ticket #138
2015-05-19 14:22:03 +02:00
Jai Veer
2cc0d0ea17 Check for NULL sfont in fluid_handle_fonts
Closes ticket #139.
2015-05-12 13:03:03 +02:00
Jean-Jacques Ceresa
048c51c4ab Add sostenuto pedal functionality (ticket #47, #136)
Apart from adding sostenuto pedal functionality, this also changes
the behaviour of dampening currently sounding notes on the same key
to ignore pedals.

Signed-off-by: David Henningsson <diwic@ubuntu.com>
2015-04-07 13:48:04 +02:00
Carlos Olmedo Escobar
f11592a8a4 Same expression on both sides of '||'.
wakeup_threads_m replaced with thread_ready_m. Spotted thanks to cppcheck.

Signed-off-by: Carlos Olmedo Escobar <carlos.olmedo.e@gmail.com>
2015-01-22 01:47:15 +01:00
Element Green
b75c8fdb17 fluid_server_handle_connection() now returns an integer. There was no return value before, which was causing TCP/IP connections to immediately close in an undefined manner. 2015-01-19 10:10:52 -07:00
David Henningsson
d519d93285 file renderer: Add encoding quality API
Based on a patch by willem179@users.sf.net.

Signed-off-by: David Henningsson <diwic@ubuntu.com>
2014-11-05 13:26:19 +01:00
Surabhi
4bbc44d22b Fix resource leak in error path of function sfload_file() 2014-09-25 13:39:55 +02:00
Surabhi
3e08eaea00 Add IPv6 support to socket APIs 2014-07-04 12:48:08 +02:00
Surabhi Mishra
380fd258d7 Fix dereference of voice->sample before NULL check
Signed-off-by: David Henningsson <diwic@ubuntu.com>
2014-07-01 14:40:01 +02:00
David Henningsson
ee54995fab GCC: Stop exporting symbols which should not be exported
Previously, functions that were just used internally in FluidSynth
were still visible to users of the library. No application should
ever use them anyway, as they were only visible at the ABI level,
and not listed in the public API headers.

The big question here is whether this requires a major library bump. I've been
trying to inform myself by looking around the Internet but I haven't come to a
conclusion. E g, the libtool manual just says "interfaces" without specifying
whether they mean API or ABI.

From a pragmatic standpoint, I'm leaning towards *not* bumping the major
library version, because doing so is a major pain for Linux distributions:
they will have to make one "libfluidsynth1" and one "libfluidsynth2"
package, and in turn update everything using that library to depend on
libfluidsynth2 instead of libfluidsynth1.

Sure, there is a risk that some software out there is using one of these hidden
symbols. But I'd say that risk is quite low. And if they are, they're broken
anyway.

In short, I prefer being nice to our downstreams, over being nice to terribly
broken hacky applications that probably don't even exist.

Signed-off-by: David Henningsson <diwic@ubuntu.com>
2014-06-22 05:52:21 +02:00
KO Myung-Hun
f10478b30b Set output name correctly for OS/2
OS/2 has a DLL name length limit up to 8 characters.
2014-03-18 14:18:01 +01:00
KO Myung-Hun
c6b81a4041 Fix header check for DART 2014-03-18 14:17:58 +01:00
David Henningsson
157368662b Fix default soundfont on Windows
Reported by Bernd Casper.
2014-03-09 11:49:58 +00:00
David Henningsson
d09c98dfde Fix compilation under old glib
Reported by Bernd Casper.
2014-03-02 20:27:48 +00:00
Element Green
8ab1a20bc4 Added NEW_GLIB_THREAD_API and OLD_GLIB_THREAD_API macros to test Glib thread API pre or post version 2.32.
Separate thread primative defines in utils/fluid_sys.h for new and old Glib thread API.
g_atomic_int_add is now used in place of depricated g_atomic_int_exchange_and_add if Glib >= 2.30.
Added name field to new_fluid_thread() function for setting the thread name and updated all uses of this function.
new_fluid_thread updated to use new Glib thread API.
Removed notify parameter from fluid_private_set() since it wasn't being used and complicates things with the new Glib thread API.
2013-08-19 23:10:43 +00:00
David Henningsson
b65ae14ccf Fix two more segfaults in error paths
Patch credit: surabhi-mishra
2013-08-09 14:48:46 +00:00
David Henningsson
2f6aa0e9e6 Fix segfault / memory leak in error paths
Patch credit: surabhi-mishra
2013-08-09 14:43:30 +00:00
David Henningsson
d7d7fb1103 midifile loader: Fix memory leaks in error paths (#120)
Patch credit: surabhi-mishra
2013-08-02 13:29:34 +00:00
David Henningsson
aa4d7b06df ramsfont: Fix memory leaks in error paths
patch credit: surabhi-mishra
2013-07-17 11:28:48 +00:00
David Henningsson
ccb2875503 defsfont: Fix memory leaks in error paths
Patch credit: surabhi-mishra
2013-07-17 07:56:21 +00:00
David Henningsson
89898893b1 Fix dereference before NULL check in defsfont/ramsfont (ticket #117)
Patch credit: surabhi-mishra
2013-07-16 10:46:55 +00:00