mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-25 21:31:49 +00:00
fix inverse logic in fluid_sample_set_sound_data()
This commit is contained in:
parent
4d612c22f4
commit
15d27b7145
2 changed files with 2 additions and 1 deletions
|
@ -64,6 +64,7 @@ What is FluidSynth?
|
|||
|
||||
\section NewIn2_0_3 Whats new in 2.0.3?
|
||||
|
||||
- fix incorrect behaviour of fluid_sample_set_sound_data()
|
||||
- add missing getters for midi events:
|
||||
- fluid_midi_event_get_text()
|
||||
- fluid_midi_event_get_lyrics()
|
||||
|
|
|
@ -565,7 +565,7 @@ fluid_sample_set_sound_data(fluid_sample_t *sample,
|
|||
|
||||
fluid_return_val_if_fail(sample != NULL, FLUID_FAILED);
|
||||
fluid_return_val_if_fail(data != NULL, FLUID_FAILED);
|
||||
fluid_return_val_if_fail(nbframes == 0, FLUID_FAILED);
|
||||
fluid_return_val_if_fail(nbframes != 0, FLUID_FAILED);
|
||||
|
||||
/* in case we already have some data */
|
||||
if((sample->data != NULL || sample->data24 != NULL) && sample->auto_free)
|
||||
|
|
Loading…
Reference in a new issue