update current_sample_freq

This commit is contained in:
Steven Dan
2026-04-17 15:03:07 +08:00
parent c900a7d004
commit 0b2e1ca6a3

View File

@@ -38,7 +38,11 @@ void dsp_main (chanend_t c_data) {
int mic_output[I2S_CHANS_ADC];
int count = 0;
unsigned ch[1] = {2};
#if F1_MUSIC_UAC2 == 1
unsigned current_sample_freq = 0;
#else
unsigned current_sample_freq = 48000;
#endif
while (1) {
unsigned sample_freq = (unsigned)chan_in_word(c_data);
chan_in_buf_word (c_data , play_input, 2);