fix: initialize passthrough globals in test_looper_looping
Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
@@ -320,6 +320,15 @@ static int test_looper_looping(void) {
|
|||||||
bursts = 0;
|
bursts = 0;
|
||||||
prev_above = 0;
|
prev_above = 0;
|
||||||
|
|
||||||
|
passthrough_output_port = audio_out;
|
||||||
|
passthrough_input_port = audio_in;
|
||||||
|
passthrough_phase = 0.0f;
|
||||||
|
passthrough_freq = 440.0f;
|
||||||
|
passthrough_sample_rate = sr;
|
||||||
|
passthrough_total_samples = 0;
|
||||||
|
passthrough_sum_sq = 0.0;
|
||||||
|
passthrough_done = 0;
|
||||||
|
|
||||||
jack_set_process_callback(client, passthrough_process, NULL);
|
jack_set_process_callback(client, passthrough_process, NULL);
|
||||||
if (jack_activate(client)) {
|
if (jack_activate(client)) {
|
||||||
jack_client_close(client);
|
jack_client_close(client);
|
||||||
|
|||||||
Reference in New Issue
Block a user