Update Fluidsynth to v2.0.7

This commit is contained in:
Robin Gareus 2019-09-30 23:10:33 +02:00
parent 549b2447f8
commit 07905f0776
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
9 changed files with 40 additions and 64 deletions

View file

@ -192,6 +192,17 @@ fluid_log(int level, const char *fmt, ...)
return FLUID_FAILED;
}
/**
* Convenience wrapper for free() that satisfies at least C90 requirements.
* Especially useful when using fluidsynth with programming languages that do not provide malloc() and free().
* @note Only use this function when the API documentation explicitly says so. Otherwise use adequate \c delete_fluid_* functions.
* @since 2.0.7
*/
void fluid_free(void* ptr)
{
free(ptr);
}
/**
* An improved strtok, still trashes the input string, but is portable and
* thread safe. Also skips token chars at beginning of token string and never