Light tidy of single thread EP buffer

This commit is contained in:
Ed Clarke
2018-10-29 11:11:06 +00:00
parent 4b73f17997
commit 3f1e612d67
4 changed files with 23 additions and 93 deletions

View File

@@ -16,7 +16,7 @@ void AudioHub(server i2s_frame_callback_if i2s,
int32_t samples_out[NUM_USB_CHAN_OUT] = {0};
int32_t samples_in[NUM_USB_CHAN_IN] = {0};
// Set reset DAC
// Reset DAC
dac_reset.output(0);
delay_milliseconds(1);
dac_reset.output(1);
@@ -43,6 +43,7 @@ void AudioHub(server i2s_frame_callback_if i2s,
restart = I2S_NO_RESTART; // Keep on looping
for (int i = 0; i < NUM_USB_CHAN_IN; i++) c_audio_hub <: samples_in[i];
for (int i = 0; i < NUM_USB_CHAN_OUT; i++) c_audio_hub :> samples_out[i];
delay_microseconds(5); //Test backpressure tolerance
break;
}
}