refactor(templates,tests): make sync an extern instead of parameter to render

This is to be able to use CreateThread with su_render_song; let's worry about multicore rendering sometime in the future.
This commit is contained in:
vsariola
2021-03-16 23:38:45 +02:00
parent 8ef6de7ffd
commit 38c0cea40f
3 changed files with 20 additions and 24 deletions

View File

@ -49,11 +49,10 @@ extern "C" {
#endif
{{- if or .RowSync (.HasOp "sync")}}
void SU_CALLCONV su_render_song(SUsample *buffer,float *syncBuffer);
#define SU_SYNC
{{- else}}
void SU_CALLCONV su_render_song(SUsample *buffer);
{{- end}}
void SU_CALLCONV su_render_song(SUsample *buffer);
{{- if gt (.SampleOffsets | len) 0}}
void SU_CALLCONV su_load_gmdls();
#define SU_LOAD_GMDLS