derselbst
34b4db10b7
Fix broken #ifdef
2019-10-27 17:07:43 +01:00
derselbst
68c7989d0d
Ensure NDEBUG disables assertions
2019-10-27 09:40:37 +01:00
derselbst
a94bc82a3c
Initialize allocated memory to garbage
...
for debug builds.
2019-10-05 16:43:53 +02:00
Tom M
17042f4dc1
Add a public wrapper function for free() ( #562 )
...
to allow proper deallocation for programming languages other than C.
2019-09-24 16:14:34 +02:00
derselbst
7f11a9bf5c
use a common function for opening regular files
...
Fixes #514
2019-04-18 19:43:39 +02:00
derselbst
89ffe5881d
fix a memory leak in new_fluid_thread()
2019-03-15 20:30:02 +01:00
derselbst
8f3af98a94
prevent fluidsynth_priv.h from being listed by doxygen
2019-03-15 15:59:05 +01:00
derselbst
9671e412fe
fix build with MinGW
2019-02-22 10:15:18 +01:00
derselbst
bfc03136bb
remove duplicate delcarations of fluid_get_std[in|out]
2019-02-17 12:44:06 +01:00
derselbst
cae9e5fdf2
remove orphaned Max/MSP include
2019-02-15 18:06:18 +01:00
derselbst
9ef169cb00
fix building CoreAudio on OSX 10.4
...
by cleaning up fluidsynth's private includes
2019-02-15 17:55:02 +01:00
derselbst
e4d30ac61e
suppress a few narrowing conversion warnings on windows
2019-02-08 17:28:57 +01:00
derselbst
b6a5c5f570
avoid using g_stat on windows if glib < 2.26
...
Closes #452 .
2019-02-03 19:45:51 +01:00
derselbst
64c90a6c49
restrict soundfont loading to regular files only
...
i.e. forbid to load directories, block devices, dangling symlinks, etc.
2019-02-01 11:22:14 +01:00
Marcus Weseloh
caf61baa04
Increase verbosity for fluid_settings_* functions
2019-01-12 14:37:27 +01:00
derselbst
0f6c40c15e
stop adding empty strings to readline's history
2018-12-29 19:58:10 +01:00
derselbst
d2078e63b4
clarify need for io.h
2018-12-22 16:05:22 +01:00
derselbst
06ec2d4e67
Revert "remove unused io.h include"
...
This reverts commit cb485806c3
. Fixes #491 .
2018-12-22 16:04:49 +01:00
carlo-bramini
c9b8d40fc2
Fourcc support ( #482 )
...
Have a direct comparison to the fourcc code rather than searching through chunk ids all the time with chunkid()
2018-12-19 14:09:29 +01:00
derselbst
a9662bf331
fix gcc8 complaining about stringop-truncation
2018-12-14 19:42:08 +01:00
derselbst
cb485806c3
remove unused io.h include
2018-12-14 17:50:03 +01:00
carlo-bramini
bd41795263
Remove redundant dependency to readline in fluid_cmd.c
...
Libreadline is already used into fluid_istream_readline().
In my opinion, there is no need to have this duplicated code, so I would suggest to move the call to add_history() into fluid_sys.h
Closes #460 .
2018-11-10 08:25:55 +01:00
Tom M
edc59ee3b5
Merge pull request #458 from FluidSynth/clang-tidying
...
Fix clang-tidy warnings
2018-11-10 08:01:10 +01:00
Tom M
0160543cdd
Compile time constant lookup tables with cmake ( #438 )
...
Autogenerate lookup tables with a C helper tool, allowing them to be compile time constant and reduce memory requirements esp. on embedded systems.
2018-11-03 14:38:54 +01:00
derselbst
28edbbfe83
fluid_settings_option_concat: dont count NULL options
...
should never happen though
2018-11-03 14:17:40 +01:00
derselbst
16d81d50ea
remove unused fluid_hz2ct()
...
Closes #455 .
2018-11-03 09:13:56 +01:00
derselbst
e4ab5067f1
fix linker error on win32 without network support
...
by adding missing #ifdefs
2018-10-27 16:32:54 +02:00
carlo-bramini
30886a3d78
Remove handwritten macros
2018-10-26 19:44:27 +02:00
carlo-bramini
ebc177f48f
Consistently use FLUID_LOG macro ( #443 )
2018-10-16 18:02:27 +02:00
derselbst
7517c17524
Revert "make fluid_log() thread safe"
...
This reverts commit d25cdae17c
.
Mistakenly committed too early on the wrong branch.
2018-10-12 09:24:07 +02:00
derselbst
2b563071f6
initialize logging at compile time
2018-10-09 18:11:37 +02:00
derselbst
d25cdae17c
make fluid_log() thread safe
...
by using a local buffer rather than global one, intentionally breaks
fluid_synth_error()
2018-10-09 18:00:19 +02:00
derselbst
b31afd65a5
fix NULL deref in new_fluid_hashtable_full()
2018-10-02 19:33:50 +02:00
derselbst
eb132d8196
correctly typedef fluid_stat_buf_t for glib < 2.26
2018-08-30 22:14:27 +02:00
derselbst
b9dd426046
correctly typedef fluid_stat_buf_t
...
fixing copy'n paste mistake... excuse me
2018-08-30 19:53:40 +02:00
derselbst
7d9a02d836
replace strlen with FLUID_STRLEN
2018-08-30 18:40:49 +02:00
derselbst
cdc8d38f4e
silence MSVC type narrowing warnings in fluid_settings.c
2018-08-30 18:33:05 +02:00
derselbst
70fbabf97c
fix incompatible types warning: 'fluid_stat_buf_t *' to '_stat64i32 *'
...
only occurs on Win64 with glib < 2.26
2018-08-30 17:38:19 +02:00
derselbst
4d8574d38a
change fluid_log_* prototypes to const char*
2018-08-23 16:56:22 +02:00
derselbst
500959701e
move fluid_file_renderer_settings() declaration to fluid_adriver.h
2018-08-08 20:55:32 +02:00
derselbst
9382edabd5
enforce coding style guide
...
using astyle
2018-06-24 13:13:18 +02:00
derselbst
9e2ea65618
document FLUID_MIXER_MAX_BUFFERS_DEFAULT
2018-06-17 15:58:22 +02:00
jjceresa
0921ccc4c0
introducing FLUID_PEAK_ATTENUATION macro. ( #397 )
...
avoids hard-coding the magic 96 dB everywhere in the code
2018-06-15 18:42:15 +02:00
derselbst
b3cb079b60
avoid exporting conversion tables to public
2018-06-10 13:16:43 +02:00
derselbst
e50042744b
avoid unnecessarily exporting functions to public
...
mark them static
2018-06-10 08:51:15 +02:00
derselbst
734e5db849
prefer using DEBUG rather than NDEBUG
2018-06-02 13:23:50 +02:00
KO Myung-Hun
85356d2732
fix compilation below GLib v2.26.0
...
GStatBuf was introduced in GLib v2.26.0, fixes #389
2018-05-28 21:32:48 +02:00
Tom M
7aea42c96f
Merge pull request #374 from FluidSynth/rvoice-align
...
Enable / Improve vectorizion in rvoice_mixer
2018-05-18 10:14:14 +02:00
carlo-bramini
04930d62d1
__restrict supported from VS 2005 and newer ( #383 )
...
Check if the MS compiler really supports this keyword.
2018-05-14 13:52:28 +02:00
derselbst
5280aae7ac
optimize fluid_align_ptr() for alignment powers of two
2018-05-04 16:40:45 +02:00