Commit graph

113 commits

Author SHA1 Message Date
carlo-bramini
15b31be962 Fix macros for alloca/_alloca usage (not a source of problems in current code). 2017-11-12 16:57:11 +01:00
carlo-bramini
48941897b9 No need to increment string pointer at exit. 2017-11-12 16:27:36 +01:00
carlo-bramini
b8766aef67 Use alloca()/_alloca() on C89/C90 compilers without VLA 2017-11-12 16:16:34 +01:00
carlo-bramini
582d316f9f Remove obsolete config_win32.h 2017-11-12 13:24:36 +01:00
Marcus Weseloh
e844b3567c Fix typo in FLUID_STRNCASECMP for Windows 2017-11-12 11:00:20 +01:00
Marcus Weseloh
9509628da1 Use glib dynamic librar loading functions 2017-11-12 00:53:57 +01:00
derselbst
c7a02bd812 make fluid_settings_foreach_t const correct 2017-11-11 11:09:17 +01:00
derselbst
12a9692211 make fluid_settings_foreach_option_t const correct 2017-11-11 11:04:12 +01:00
Tom M
a13cf153d9
Merge pull request #265 from FluidSynth/delete-refactor
refactor destructor functions to return void if possible and make them safe when called with NULL
2017-11-08 15:45:49 +01:00
derselbst
b1d0db7d5c define customized fluid_return_if_fail
unlike glib's g_return_if_fail, dont log to console if condition fails
2017-11-07 21:11:49 +01:00
carlo-bramini
c2eab91ac2 Remove VisualC++ types. 2017-11-05 18:20:51 +01:00
carlo-bramini
137ace8e87 Add also int64_t for completeness. 2017-11-05 17:59:07 +01:00
carlo-bramini
5a2bb5a109 Use GLIB types if stdint.h is not available 2017-11-05 16:08:43 +01:00
carlo-bramini
4ee44a24a5 Use stdint type names instead of sint8, sint16, etc 2017-11-04 12:53:44 +01:00
derselbst
681f62ce4d fix conflicting declarations
fix build
2017-10-30 11:53:02 +01:00
derselbst
bf978e2b6b even more destructor refactor 2017-10-30 11:28:08 +01:00
derselbst
323320e7e4 refactor all destructor functions
to return void if possible and not crash if called with NULL
2017-10-29 13:23:08 +01:00
derselbst
c40c49b331 fix usage of incorrect string format argument
causing segfault
2017-10-28 19:48:29 +02:00
derselbst
d8d5679c8e fix segfault in delete_fluid_ringbuffer() 2017-10-28 19:47:56 +02:00
derselbst
db373f168f Merge branch 'fluid_atomic' of git://github.com/VolcanoMobile/fluidsynth into VolcanoMobile-fluid_atomic 2017-10-27 15:58:54 +02:00
Philippe Simons
cdd9f75112 thread function return type (#254)
typedef the return value of thread starting routines, as suggested by @loki666
2017-10-26 18:08:10 +02:00
derselbst
5235549172 fix build 2017-10-25 16:28:27 +02:00
derselbst
0b8810ace8 wrap glib byteswap functions in custom FLUID macros 2017-10-25 16:11:43 +02:00
loki666
9ebc22d4e1 add typedef for atomics
access atomics via fluid_atomic_X_set/get
2017-10-25 14:38:39 +02:00
derselbst
36d8f95584 avoid accessing uninited memory 2017-10-22 16:19:04 +02:00
derselbst
2623f67865 correctly fix use-after-free 2017-10-22 15:00:51 +02:00
derselbst
a54dfa522a remove G_STMT_[START|END]
for readability
2017-10-22 14:45:16 +02:00
derselbst
77ad959913 remove unused fluid_debug() 2017-10-22 14:43:35 +02:00
derselbst
02bb14243a remove unused debug enum 2017-10-22 14:41:00 +02:00
derselbst
3d7465a01e remove FLUID_STMT_[START|END]
for readability
2017-10-22 14:39:06 +02:00
carlo-bramini
828fdb9744 Completely remove G_STMT_* macros 2017-10-21 19:46:32 +02:00
carlo-bramini
6f7ec3b1fc Added FLUID_STMT_START and FLUID_STMT_END 2017-10-21 18:40:57 +02:00
carlo-bramini
3cea11de7f Replace use of glib types 2017-10-21 18:23:23 +02:00
Tom M
c594bdf466 Merge branch 'master' into fluidsynth-on-mcu-1 2017-10-21 17:38:54 +02:00
Tom M
0600ba7c68 Merge pull request #235 from mawe42/ladspa-cleanup
LADSPA effect unit refactor
2017-10-21 17:36:04 +02:00
Marcus Weseloh
cecf115a38 Replace the fuzzy prefix matching by a simple strncasecmp.
That spaces and underscores are treated as equal is no needed anymore
anyway, as the token parser of the shell understands quoted names.
So searching for "Dry / Wet Mix" is possible.

Adds new FLUID_STRNCASECMP macro to fluid_priv.
2017-10-21 15:55:43 +02:00
derselbst
cd17358b7e FLUID_STRNCPY: always add terminator '\0' 2017-10-21 13:19:21 +02:00
carlo-bramini
be8acf4e27 Replace PI with standard M_PI. 2017-10-21 13:15:57 +02:00
carlo-bramini
94b752f433 Made fluid_libname[] to be const. 2017-10-21 12:54:53 +02:00
carlo-bramini
4293fddc05 Fixes for using standard math constants 2017-10-21 12:54:00 +02:00
derselbst
9e3b01927e fix use after free 2017-10-21 12:48:52 +02:00
derselbst
b4c36b1ba2 fix indentation 2017-10-15 20:17:45 +02:00
derselbst
64b929ced6 replace strcasecmp with FLUID_STRCASECMP 2017-10-15 20:16:04 +02:00
derselbst
458cb94b93 correct conditional define of FLUID_[V]SNPRINTF
fixes build
2017-10-15 20:06:44 +02:00
carlo-bramini
a89c7c5183 Replace remaining vsnprintf with FLUID_VSNPRINTF 2017-10-15 18:57:06 +02:00
carlo-bramini
9321dda281 Use FLUID_SNPRINTF into all remaining files 2017-10-15 18:42:44 +02:00
carlo-bramini
55c682b1b0 Use FLUID_INLINE in all remaining parts of the sources 2017-10-15 17:27:30 +02:00
derselbst
680d4d51a4 fix sizeof's 2017-10-06 21:17:14 +02:00
derselbst
924d4b3e77 prefer snprintf to sprintf 2017-10-06 20:52:07 +02:00
derselbst
3a4385c7f6 settings: avoid silent error hiding
fail if param out of range, addresses #225
2017-10-06 10:28:28 +02:00
derselbst
41310d2e0e fluid_settings: fix alignment warnings
by using a union for fluid_setting_node_t
2017-09-23 19:31:35 +02:00
derselbst
7bef6f8787 fix return value checks 2017-09-22 15:18:32 +02:00
Tom M
2a3ff1d2cf Merge pull request #207 from FluidSynth/cleanup
source code cleanup, API compatibility broken
2017-09-22 14:10:38 +02:00
derselbst
5f3cafbcfd better return a bool for fluid_settings_str_equal() 2017-09-21 21:48:06 +02:00
derselbst
872cedbd69 fix return type of fluid_settings_get_type() 2017-09-21 15:31:49 +02:00
derselbst
e797853b2b refactor fluid_settings API
consistently return either FLUID_OK or FLUID_FAILED for public fluid_settings_* functions
2017-09-20 14:27:36 +02:00
derselbst
9735059946 cleanup fluid_settings.h 2017-09-20 13:14:48 +02:00
derselbst
7bf280cf77 linebreak 2017-09-19 17:12:33 +02:00
derselbst
026d74f125 use doxygen aware "note" 2017-09-16 17:39:53 +02:00
derselbst
53fd1eeac7 remove deprecated fluid_settings_getstr() 2017-09-16 17:30:57 +02:00
derselbst
29f6ac1049 add setting for volume envelope processing
fixes #70
2017-09-07 11:42:01 +02:00
derselbst
16f2005d68 fix build against glib<2.30 2017-09-06 09:36:42 +02:00
derselbst
aac2354f5c remove fop-level "fluidsynth" directory node
cd fluidsynth && git mv * ../
2017-09-03 13:30:26 +02:00