Marcus Weseloh
870fc56d6a
Code cleanup and formatting in fluid_samplecache
2018-04-04 11:11:41 +02:00
Marcus Weseloh
a274a394e0
Clang-format fluid_samplecache
2018-04-04 11:11:41 +02:00
Marcus Weseloh
4ec1cfe73e
Move sample caching code to own file fluid_samplecache.c/h
2018-04-04 11:11:41 +02:00
Marcus Weseloh
76102f2009
Remove unnecessary fluid_sample_t::valid flag
2018-04-04 11:11:41 +02:00
Marcus Weseloh
963a5e98b4
Move sample and loop validation to fluid_sfont
...
Makes it possible to use the same validation logic for both SF2 and SF3
samples.
2018-04-04 11:11:41 +02:00
Marcus Weseloh
987d8a5f17
Move vorbis decompression to fluid_sfont
2018-04-04 11:11:41 +02:00
Marcus Weseloh
0a664e0797
Remove unnecessary conversion of sample pointers to offsets
...
SFSample should provide the sample pointers as specified in the Soundfont
file. If any mangling of the pointers is required, it should happen in the
defsfont loader.
2018-04-04 11:11:34 +02:00
Marcus Weseloh
9341059b24
Remove underscore functions for log messages
...
They were only used in soundfont loading code, so are probably a remnant
from Smurf. The rest of the FluidSynth code doesn't use underscore
functions, so remove them here as well for consistency.
Also use single quotes in double quoted string, to remove the need for
escaping chars.
2018-04-04 11:08:45 +02:00
Marcus Weseloh
1bc69be41b
Rename fluid_sf2_* functions to fluid_sffile_*
2018-04-04 11:08:45 +02:00
Marcus Weseloh
b6bdb6b059
Cleanup delete_* functions
2018-04-04 11:08:45 +02:00
Marcus Weseloh
7f09321714
Make size macro names easier to read
2018-04-04 11:08:45 +02:00
Marcus Weseloh
10b87e9d54
Rename fluid_sf2 to fluid_sffile
2018-04-04 11:08:45 +02:00
Marcus Weseloh
5dc64d1544
Cleanup function signatures, passing SFData to every function
...
Makes the whole file easier to read and gives the implementation a little
more "object-oriented" feel.
2018-04-04 11:08:38 +02:00
Marcus Weseloh
74e2a4b933
More expressive variable names in load_phdr
2018-04-04 11:08:38 +02:00
Marcus Weseloh
9c31e96c60
Store file_callbacks in SFData structure
2018-04-04 11:08:38 +02:00
Marcus Weseloh
181b9727e8
Cleanup error handling in fluid_sf2_load
2018-04-04 11:08:38 +02:00
Marcus Weseloh
fb374814c3
Move public functions to top of file and document them properly
2018-04-04 11:08:38 +02:00
Marcus Weseloh
78be6f7fe1
Use FLUID_FREE instead of free
2018-04-04 11:08:38 +02:00
Marcus Weseloh
500931bd33
Separate typedefs and struct definitons
2018-04-04 11:08:38 +02:00
Marcus Weseloh
e7109a91aa
Rename public and static methods to naming conventions
...
# Conflicts:
# src/sfloader/fluid_sf2.h
2018-04-04 11:08:38 +02:00
Marcus Weseloh
6fc816c3cb
Clarify some function names and comments
...
# Conflicts:
# src/sfloader/fluid_sf2.c
2018-04-04 11:08:38 +02:00
Marcus Weseloh
af3e6bba01
Cleanup return values
2018-04-04 11:08:34 +02:00
Marcus Weseloh
f83c49d6fa
Remove sfont_zone_delete, replace with direct invocations instead
2018-04-04 11:08:25 +02:00
Marcus Weseloh
4dbc31215f
Make all private functions static
2018-04-04 11:08:25 +02:00
Marcus Weseloh
d538d7f52c
Cleanup error handling, remove gerr function
2018-04-04 11:08:25 +02:00
Marcus Weseloh
79c3bebaea
Source formatting (clang-format)
2018-04-04 11:08:25 +02:00
Marcus Weseloh
333e8a1295
Move private defines from fluid_sf2.h to fluid_sf2.c
2018-04-04 11:08:25 +02:00
Marcus Weseloh
5c58c304b9
Move declarations to top of file
2018-04-04 11:08:25 +02:00
Marcus Weseloh
12902f7454
Remove unused defines and declarations
2018-04-04 11:08:25 +02:00
Marcus Weseloh
167048f5a3
Remove reference to defsfont from low-level function
2018-04-04 11:08:18 +02:00
Marcus Weseloh
879a14163a
Move low-level soundfont loading functions to separate files
2018-04-04 11:03:47 +02:00
Marcus Weseloh
adff5e98d8
Use goto to move to next sample
2018-03-25 13:27:14 +02:00
Marcus Weseloh
13fb940262
Avoid uninitialized use of max_end
2018-03-25 13:24:24 +02:00
Marcus Weseloh
f5f85a1dfe
Fix SF3 soundfont loading (uses byte positions for sample start/end, not sample word positions)
2018-03-24 18:31:33 +01:00
Marcus Weseloh
945214b582
Do explicit check for ROM sample during fixup and check sample end before loop points
2018-03-24 18:23:42 +01:00
Marcus Weseloh
1ec9d85225
Fix sample->valid logic in fluid_sample_import_sfont
2018-03-24 16:02:04 +01:00
Marcus Weseloh
2dc35832fc
Remove code that has been commented out since initial commit
2018-03-24 15:56:02 +01:00
Marcus Weseloh
6bd326dcf8
Move Ogg Vorbis uncompression into separate function
2018-03-23 18:22:56 +01:00
Marcus Weseloh
b1f7e6d9a0
Bugfix: don't bail out early if single sample has invalid start or end
2018-03-18 14:48:32 +01:00
derselbst
6c2b8e2d88
clarify API docs about fluid_synth_set_midi_router()
2018-03-17 17:55:31 +01:00
derselbst
7238db3615
avoid bad function cast warning
2018-03-17 16:43:45 +01:00
derselbst
94316addcf
fix build
...
midishare complaining libs not found
2018-03-17 16:40:51 +01:00
derselbst
57c7e3d3a6
cmake: fix enable-midishare option
2018-03-17 13:08:19 +01:00
Sayfulin Aleksandr
98e976a9cc
cmake: enable/disable OSS support ( #350 )
...
Add a cmake option for OSS support and sort options alphabetically.
2018-03-17 12:48:14 +01:00
jjceresa
182e593665
Add profiling command interface ( #345 )
...
This patch adds "profiling" commands interface for performance measurement.
Fixes #152
2018-03-12 18:25:16 +01:00
derselbst
1183fbf416
clarify docs of fluid_synth_get_active_voice_count()
2018-03-10 16:44:39 +01:00
derselbst
8ec580f259
remove unused fluid_voice_t::volenv
2018-03-10 16:19:36 +01:00
Tom M
a58bad1ae4
Update CONTRIBUTING.md
2018-03-08 14:01:40 +01:00
Christophe Giboudeaux
ce00c35012
Fix pkgconfig file for absolute paths ( #347 )
...
When building fluidsynth, we can use relative or absolute paths for LIB_INSTALL_DIR and INCLUDE_INSTALL_DIR. Check whether the two vars were defined absolute before writing fluidsynth.pc.
Fixes https://bugzilla.opensuse.org/1084081
2018-03-06 17:21:15 +01:00
Tom M
657c784dc9
Merge pull request #346 from FluidSynth/ci-build
...
Additional build tests for CI
2018-03-05 15:37:06 +01:00