ifdef fix

This commit is contained in:
Paolo Marrone 2024-07-09 12:20:18 +02:00 committed by Paolo Marrone
parent 42d03ee749
commit 20727f5f09

View File

@ -301,7 +301,10 @@ char audioStart() {
#endif
plugin_set_sample_rate(&instance, (float)device.sampleRate);
sample_rate = (float)device.sampleRate;
#ifdef PARAM_OUT_CPU_INDEX
sample_rate = (float)device.sampleRate;
#endif
size_t req = plugin_mem_req(&instance);
if (req != 0) {
mem = malloc(req);