Commit graph

1956 commits

Author SHA1 Message Date
jjceresa
4744e68082 remove comments 2019-07-14 02:15:33 +02:00
jjceresa
8ef7e53692 complete comments 2019-07-14 02:13:20 +02:00
jjceresa
15dfc4fdc6 change name of modulators in sources
- the variable names are using zero-based indices (eg, mod0,mod1,..)
  (instead of 1 based indices).
- this naming is coherent with indices displayed on output which are
  zero-based:
  Example of output message:
  fluidsynth: warning: invalid destination test zone with linked modulators/mod1

  This message says that mod1 (i.e modulator at index 1 in the list) is
  an invalid destination.
2019-07-13 00:23:52 +02:00
jjceresa
ee12acc37e separate each test by a blank line 2019-07-12 23:51:50 +02:00
jjceresa
80bc911b05 fix missing/misplaced comments 2019-07-12 23:17:54 +02:00
jjceresa
dae722fecc fix modulator numbers typos error in printf 2019-07-12 20:26:05 +02:00
jjceresa
4be60e6fc0 fix overrun of path in fluid_is_mod_in_path() 2019-07-12 20:01:53 +02:00
jjceresa
2153c6f86c add comment in new_fluid_mod() 2019-07-12 14:28:46 +02:00
jjceresa
967d8e237c fix grammar 2019-07-12 01:49:23 +02:00
jjceresa
505be55ffb remove redundant pointer initialisation 2019-07-12 01:42:51 +02:00
jjceresa
b74efca283 ignore complex modulator in mode FLUID_VOICE_OVERWRITE 2019-07-12 01:30:57 +02:00
derselbst
0b60f3d94a fix dereference of undefined pointer value 2019-07-11 10:46:33 +02:00
derselbst
36c4c32bad remove unused var 2019-07-11 10:12:42 +02:00
derselbst
0362c6c646 fix left operand of '>>' being a garbage value 2019-07-11 10:11:55 +02:00
jjceresa
aa0217826c add printf to test_modulator_links.c 2019-07-11 05:33:20 +02:00
jjceresa
07a971e663 remove unwanted tabs or space 2019-07-11 03:05:51 +02:00
jjceresa
259867eac7 Clang-tidy warning 4:
- fluid_voice.c:1856:37: warning: Assigned value is garbage or undefined
        min_val *= link_min_max[j].min;
- Add a comment to explain that link_min_max[j].min is still a valid value.
- Clang-tidy complaint should be ignored here.
2019-07-11 02:17:53 +02:00
jjceresa
453c3820cc lang-tidy warning 3:
- fluid_mod.c:867:26: warning: The right operand of '<' is a garbage value
      while(r < branch_level[is].dest0_idx)
- rename is to state_idx for clarity.
- Add a comment to explain that  branch_level[state_idx].dest0_idx is still
a valid value. Clang-tidy complaint should be ignored here.
2019-07-11 01:23:11 +02:00
jjceresa
b51378a5d2 Clang-tidy warning 2:
- fluid_voice.c:1634:29: warning: Dereference of undefined pointer value
            voice_mod->next = NULL;
- Add a comment to explain that voice_mod is still a valid pointer.
  Clang-tidy complaint should be ignored here.
2019-07-11 00:14:26 +02:00
jjceresa
0fe40999a7 clang-tidy warning 1
- fluid_voice.c:1228:17: warning: The left operand of '>>' is a garbage
  value   if(!is_gen_updated(updated_gen_bit, gen)).
- Add a comment to explain that gen is always initialized. clang-tidy
  complaint should be ignored here.
2019-07-10 23:38:50 +02:00
jjceresa
486b74f251 fix typos in comments 2019-07-10 22:44:24 +02:00
derselbst
9fa56bf340 Merge branch 'master' into linked-modulators 2019-07-10 17:07:41 +02:00
derselbst
eb40b5a550 Compile with address sanitizer on request 2019-07-10 17:01:12 +02:00
derselbst
e5dbe76d1b Fix memory leak in test_seqbind_unregister 2019-07-10 17:01:01 +02:00
derselbst
75fa026a76 use fabs to check for float equality 2019-07-10 16:58:59 +02:00
derselbst
4bfc0d7450 fix dangling pointer in fluid_mod_t
new_fluid_mod() creates a modulator, but leaves the `next` member
uninitialized. Passing this modulator object to fluid_voice_add_mod()
will attempt to iterate the modulators that are linked together by `next`.
2019-07-10 16:26:58 +02:00
derselbst
f441121c2b use unsigned integers when checking bit flags 2019-07-10 16:26:47 +02:00
derselbst
6db83ee5e2 fix test_modulator_amount
by using fluid_voice_add_mod()
2019-07-10 16:11:50 +02:00
derselbst
06d128d698 fix declaration 2019-07-10 14:16:13 +02:00
derselbst
940028a4c8 Merge branch 'master' into linked-modulators 2019-07-10 13:54:41 +02:00
derselbst
3d33a0b7f6 add a unit test for complex modulator amounts 2019-07-10 13:50:28 +02:00
derselbst
392ae1518c add a unit test for fluid_zone_check_linked_mod() 2019-07-10 13:04:19 +02:00
derselbst
344eea00de minor fixes 2019-07-10 13:01:32 +02:00
Carlo Bramini
a02f1379d8 Add support for C99 math functions, if available (#545) 2019-07-07 11:02:31 +02:00
derselbst
2be598b8e9 Amend documentation of fluid_synth_set_gen() 2019-07-02 18:38:19 +02:00
derselbst
db1740b7e9 Avoid conflicts with libinstpatch's default SF2 modulators
By default, libinstpatch silently adds all SF2 default modulators to the
converted DLS voices. Since fluidsynth respects the modulators provided
by libinstpatch, those modulators would conflict with the default
modulator list managed by fluidsynth. This is only noticeable, if the
user used fluidsynth's API to manipulate default modulators.
2019-07-02 14:15:00 +02:00
Tom M
33421922f3
Set up Azure Pipelines for most Windows CI builds (#541) 2019-06-29 10:56:09 +02:00
derselbst
c093b20c31 Fix premature exit of the fluid_shell on WinXP
When compiled with compatibility for WinXP (toolset v141_xp), read() may return 0 (EOF) rather than '\n' which led to an early exit of the shell after a single user input.
2019-06-29 09:10:07 +02:00
Tom M
b6df34cc27
Restructure cmake build summary (#542) 2019-06-28 16:28:41 +02:00
Carlo Bramini
0b17a84ced Cleanup floating-point arithmetics (#543)
* avoid unnecessary floating-point promotion to double when compiled `WITH_FLOAT==1`
* remove redundant calculations and reorder floating-point constants to allow better constant folding
2019-06-27 17:20:13 +02:00
Tom M
ef2c256e9e
fix build with recent libinstpatch 2019-06-22 18:57:13 +02:00
Tom M
030a497aa5
fix build with glib < 2.28 (#540)
g_clear_object() was not yet available
2019-06-22 10:22:23 +02:00
Tom M
adb498f222
Add libsndfile support to Windows CI builds (#539) 2019-06-15 15:21:24 +03:00
Carlo Bramini
580a4d16e0 Make const string really const (#536) 2019-06-09 13:30:43 +03:00
Tom M
484c4680bf
fix build 2019-06-05 20:26:47 +03:00
Tom M
b0d6c01911
enable readline support if header and lib found 2019-06-05 20:04:33 +03:00
Tom M
e49b5ed201
Support Loading DLS Files (#493)
Fixes #320
2019-05-11 05:31:56 +02:00
derselbst
fad964344c make sure appveyor mingw generates fluidsynth binaries 2019-05-01 12:57:54 +02:00
derselbst
8c272360fb remove unused variable 2019-05-01 12:56:53 +02:00
Atsushi Eno
f87f35fe71 [Android] remove extra cmake args with proper use of PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR. (#534) 2019-04-22 09:30:52 +02:00