Move su_load_gmdls into the responsibility of the intro to call, anticipating multicore rendering so it is called once before all the cores are spun up.

This commit is contained in:
Veikko Sariola
2020-05-27 17:08:35 +03:00
parent 200937aa50
commit c5b6e6e28c
7 changed files with 30 additions and 23 deletions

View File

@ -93,7 +93,9 @@ regression_test(test_oscillat_gate ENVELOPE)
regression_test(test_oscillat_stereo ENVELOPE)
if(WIN32) # The samples are currently only GMDLs based, and thus require Windows.
regression_test(test_oscillat_sample ENVELOPE)
target_compile_definitions(test_oscillat_sample PUBLIC INCLUDE_GMDLS)
regression_test(test_oscillat_sample_stereo ENVELOPE)
target_compile_definitions(test_oscillat_sample_stereo PUBLIC INCLUDE_GMDLS)
endif()
regression_test(test_oscillat_unison ENVELOPE)
regression_test(test_oscillat_unison_stereo ENVELOPE)

View File

@ -1,5 +1,4 @@
%define BPM 100
%define INCLUDE_GMDLS
%include "../src/sointu.inc"

View File

@ -1,5 +1,4 @@
%define BPM 100
%define INCLUDE_GMDLS
%include "../src/sointu.inc"

View File

@ -26,6 +26,10 @@
#endif
extern void CALLCONV su_render(void *);
#ifdef INCLUDE_GMDLS
extern void CALLCONV su_load_gmdls(void);
#endif
extern int su_max_samples;
int main(int argc, char* argv[]) {
@ -59,6 +63,10 @@ int main(int argc, char* argv[]) {
return 1;
}
#ifdef INCLUDE_GMDLS
su_load_gmdls();
#endif
su_render(buf);
snprintf(filename, sizeof filename, "%s%s%s", expected_output_folder, test_name, ".raw");