Marcus Weseloh
92947586fb
Cross-platform fixes for test utils
...
Use executable suffix to make test work on Windows and
specify explicit output directory for dump_sfont tool.
Uses a generator expression $<0:> to prevent VS and Xcode from
adding per-config subdirectories to the RUNTIME_OUTPUT_DIRECTORY
2021-04-10 15:44:14 +02:00
Marcus Weseloh
703f158c99
Ensure that we only try to dump font loaded by the defsfont loader
...
No the cleanest way to check which loader created the sfont,
but as it is just a test tool, it might be good enough...
2021-04-10 15:44:14 +02:00
Marcus Weseloh
cc186512ed
Add integration tests for defsfont loader
...
Runs the new dump_sfont utility on the test soundfonts and
compares them against the stored representation. Raise an error
if there are any differences.
2021-04-10 15:44:14 +02:00
Marcus Weseloh
736caf9d21
Add ability to get name of generator from gen index
...
Used in dump_sfont test utility.
2021-04-10 15:44:13 +02:00
Marcus Weseloh
522b751f4f
New dump_sfont utility to output a defsfont as YAML
...
Intended to be used in integration tests to compare the output
against a previously generated output.
2021-04-10 15:44:13 +02:00
Marcus Weseloh
1b61e1fbd3
Add fluid_list function to find index of data in list
...
Will be used in the defsfont dump utility.
2021-04-10 15:37:41 +02:00
Tom M
8a39c5aea4
Zone Validation Test ( #826 )
...
This is my implementation of a unit test to verify the preset and instrument zone validation behaviour.
2021-04-10 15:33:12 +02:00
Marcus Weseloh
1eda0ae863
Merge pull request #834 from FluidSynth/fix-gcc-warnings
...
Fix two gcc warnings
2021-04-10 15:27:46 +02:00
Marcus Weseloh
74ccd9cb9d
Fix maybe-uninitialized warning in gcc 9.3
2021-04-10 12:06:32 +02:00
Marcus Weseloh
614fcab9cc
Fix missing initializer warnings on gcc 9.3
2021-04-10 12:04:05 +02:00
Tom M
ebbaff32bf
Fix typo in --help
2021-04-08 13:30:40 +02:00
Vladimir Davidovich
30c899973d
Fix failure to create the audio driver on macOS ( #828 )
...
The deprecated Component Manager for hosting Audio Components is not supported when rebuilding against the 11.00 or later SDK.
Co-authored-by: Vladimir Davidovich <thy.ringo@gmail.com>
2021-04-07 21:32:59 +02:00
Tom M
2173fdcab3
Run GitHub Actions on forked pull requests
2021-04-07 21:30:43 +02:00
Tom M
ddb13e36c5
Collect coverage during test execution ( #825 )
2021-04-03 17:34:48 +02:00
Tom M
8413c35aca
Fix a regression in fluid_player_stop() ( #822 )
...
fluid_player_stop() should not set the STOPPING state, when the player has already finished. Introduced in 676923757c
.
2021-03-27 18:35:00 +01:00
derselbst
3f5394a15d
Bump version to 2.2.0
2021-03-27 17:46:01 +01:00
Marcus Weseloh
661a06b504
Merge pull request #820 from FluidSynth/player-reset-between-songs
...
Reset synth after end, not before start of song
2021-03-27 00:49:29 +01:00
Marcus Weseloh
7dd870f498
Update player.reset-synth doc with new behaviour
2021-03-24 20:41:48 +01:00
Marcus Weseloh
9a4b95a742
Reset the synth after the end, not before the start of a song
...
This change prevents an unnecessary synth reset before the first
MIDI song is played. It allows changing synth parameters via a
config file without having to unset the player.reset-synth setting.
2021-03-24 20:41:18 +01:00
Marcus Weseloh
d13c4965e1
Update api_doc_build.yml
...
Fix ubuntu version to 18.04 to keep doxygen
version stable. Latest ubuntu has a new version
which breaks the current API docs layout
2021-03-19 19:50:40 +01:00
Tom M
a3d0a56996
Update API docs
...
Make breaking changes a bit more obvious.
2021-03-17 20:11:46 +01:00
Tom M
c32faa7b17
Parallelize SF2 loading ( #812 )
...
The loading of SF2 samples can be parallelized as well, at least for bigger soundfonts like the Stgiga 4GB monster.
The following test is performed with hot-caches:
`time src/fluidsynth -i -a alsa Stgiga\'s\ HiDef\ Soundfont\ \(2019-05-25\).sf2`
Serial version:
```
real 0m15,460s
user 0m14,163s
sys 0m1,192s
```
Parallelized version proposed by this PR:
```
real 0m5,851s
user 0m14,089s
sys 0m1,194s
```
2021-03-17 19:41:33 +01:00
Tom M
ea5ebe4813
Merge pull request #815 from FluidSynth/fluid-sffile-variable-renaming
...
Rename variables in fluid_sffile.c for easier readability
2021-03-16 08:47:28 +01:00
Tom M
5ae72f8c74
Merge branch 'master' into fluid-sffile-variable-renaming
2021-03-15 21:40:16 +01:00
derselbst
9ea6c75724
Merge branch '2.1.x' into master
2021-03-15 21:27:42 +01:00
Tom M
005719628a
Invalid generators were not removed from zone list ( #810 )
...
fluid_list_remove() should receive the beginning of a list, so it can adjust the predecessor of the element to be removed. Otherwise the element would remain in the list, which in this case led to a use-after-free afterwards.
2021-03-15 20:12:51 +01:00
Marcus Weseloh
e3d95cb854
Rename p in load_igen to inst_list
2021-03-14 21:33:46 +01:00
Marcus Weseloh
552b1c4aa6
Rename p in load_imod to inst_list
2021-03-14 21:32:08 +01:00
Marcus Weseloh
dd037c725e
Rename p in load_ibag to inst_list
2021-03-14 21:31:27 +01:00
Marcus Weseloh
93a74ff3bd
Rename pr in load_ihdr to prev_inst
2021-03-14 21:29:28 +01:00
Marcus Weseloh
c545766ea6
Rename p in load_ihdr to inst
2021-03-14 21:27:40 +01:00
Marcus Weseloh
8df5abf903
Rename p in load_pgen to preset_list
2021-03-14 21:24:25 +01:00
Marcus Weseloh
9e7c108f4c
Rename p in load_pmod to preset_list
2021-03-14 21:12:04 +01:00
Marcus Weseloh
f1baa556a6
Rename p in load_pbag to preset_list
2021-03-14 21:11:07 +01:00
Marcus Weseloh
edc99ebc24
Rename p2 in fixup_igen to zone_list
2021-03-14 21:03:10 +01:00
Marcus Weseloh
06145d2139
Rename p2 in fixup_pgen to zone_list
2021-03-14 21:02:29 +01:00
Marcus Weseloh
e254c56373
Rename p2 in load_igen to zone_list
2021-03-14 21:00:15 +01:00
Marcus Weseloh
0c363cc574
Rename p2 in load_imod to zone_list
2021-03-14 20:59:32 +01:00
Marcus Weseloh
355c50631d
Rename p2 in load_ibag to zone_list
2021-03-14 20:58:55 +01:00
Marcus Weseloh
b5d80a1248
Rename p2 in load_pgen to zone_list
2021-03-14 20:58:03 +01:00
Marcus Weseloh
a044835cf5
Rename p2 in load_pmod to zone_list
2021-03-14 20:56:58 +01:00
Marcus Weseloh
0e761da102
Rename p2 in load_pbag to zone_list
2021-03-14 20:55:52 +01:00
Marcus Weseloh
f694d41a0e
Rename p3 in fixup_igen to inst_list
2021-03-14 20:54:27 +01:00
Marcus Weseloh
fd3e9bdc21
Rename p3 in fixup_pgen to inst_list
2021-03-14 20:54:14 +01:00
Marcus Weseloh
bc2afb682b
Rename p3 in load_igen to gen_list
2021-03-14 20:51:10 +01:00
Marcus Weseloh
b506304bef
Rename p3 in load_imod to mod_list
2021-03-14 20:50:18 +01:00
Marcus Weseloh
5bf9cf545f
Rename p3 in load_pmod to gen_list
2021-03-14 20:49:45 +01:00
Marcus Weseloh
2c3caafcdf
Rename p3 in load_pmod to mod_list
2021-03-14 20:48:58 +01:00
Tom M
8a778e0c0e
Add warning if soundfont bigger 2GB ( #811 )
...
Advice the user to use fluidsynth 2.2.0 or later when loading soundfonts > 2GB
2021-03-14 17:20:09 +01:00
derselbst
b8fb6c81e1
Change short option for --query-audio-devices to -Q
...
Resolves #802
2021-03-13 20:15:36 +01:00