mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
make test_sample_cache C90 compliant
and fix link in test/README.md
This commit is contained in:
parent
2c3e59f8ee
commit
c58f3eb868
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
This directory contains small executables to verify fluidsynths correct behaviour, i.e. unit tests. Although some tests might serve as educational demonstration of how to use certain parts of fluidsynth, they are **not** intended to do so! It is most likely that those tests will consist of many hacky parts that are necessary to test fluidsynth (e.g. including fluidsynth's private headers to access internal data types and functions). For user applications this programming style is strongly discouraged! Do **not** blindly use the tests as template for your application! Keep referring to the documentation and code examples listed in the [http://www.fluidsynth.org/api/](API documentation).
|
||||
This directory contains small executables to verify fluidsynths correct behaviour, i.e. unit tests. Although some tests might serve as educational demonstration of how to use certain parts of fluidsynth, they are **not** intended to do so! It is most likely that those tests will consist of many hacky parts that are necessary to test fluidsynth (e.g. including fluidsynth's private headers to access internal data types and functions). For user applications this programming style is strongly discouraged! Do **not** blindly use the tests as template for your application! Keep referring to the documentation and code examples listed in the [API documentation](http://www.fluidsynth.org/api/).
|
||||
|
||||
### Developers
|
||||
|
||||
|
|
|
@ -5,10 +5,11 @@
|
|||
|
||||
// this test aims to make sure that sample data used by multiple synths is not freed
|
||||
// once unloaded by its parent synth
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
enum { FRAMES = 1024 };
|
||||
float buf[FRAMES * 2];
|
||||
char *s;
|
||||
|
||||
fluid_settings_t *settings = new_fluid_settings();
|
||||
fluid_synth_t *synth1 = new_fluid_synth(settings),
|
||||
|
@ -18,7 +19,6 @@ int main()
|
|||
TEST_ASSERT_NEQ(synth1, NULL);
|
||||
TEST_ASSERT_NEQ(synth2, NULL);
|
||||
|
||||
char *s;
|
||||
TEST_SUCCESS(fluid_settings_dupstr(settings, "synth.default-soundfont", &s))
|
||||
|
||||
TEST_ASSERT_NEQ(s[0], '\0');
|
||||
|
|
Loading…
Reference in a new issue