mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
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:
@ -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)
|
||||
|
@ -1,5 +1,4 @@
|
||||
%define BPM 100
|
||||
%define INCLUDE_GMDLS
|
||||
|
||||
%include "../src/sointu.inc"
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
%define BPM 100
|
||||
%define INCLUDE_GMDLS
|
||||
|
||||
%include "../src/sointu.inc"
|
||||
|
||||
|
@ -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");
|
||||
|
Reference in New Issue
Block a user