refactor(templates, tests): rename C-header defines consistently with Score.go

This commit is contained in:
vsariola
2021-02-28 16:07:55 +02:00
parent 048b36324c
commit 3e7064e166
4 changed files with 22 additions and 22 deletions

View File

@ -26,12 +26,12 @@ void SU_CALLCONV su_render_song(float* buffer) {
synth->RandSeed = 1;
// triger first voice
synth->SynthWrk.Voices[0].Note = 64;
samples = SU_MAX_SAMPLES / 2;
samples = SU_LENGTH_IN_SAMPLES / 2;
time = INT32_MAX;
retval = su_render(synth, buffer, &samples, &time);
synth->SynthWrk.Voices[0].Release++;
buffer = buffer + SU_MAX_SAMPLES;
samples = SU_MAX_SAMPLES / 2;
buffer = buffer + SU_LENGTH_IN_SAMPLES;
samples = SU_LENGTH_IN_SAMPLES / 2;
time = INT32_MAX;
retval = su_render(synth, buffer, &samples, &time);
free(synth);