Skip to content

Commit 7c71747

Browse files
committed
Fix typo in example
1 parent a1bed58 commit 7c71747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/i2s/i2s_loopback/i2s_loopback.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void audio_task(void *param) {
142142
int encoded_size = opus_encode(opus_encoder_, opus_samples_, opus_samples_size_, opus_bits_, opus_bits_size_);
143143
vTaskDelay(1);
144144
int decoded_size = opus_decode(opus_decoder_, opus_bits_, encoded_size, opus_samples_out_, opus_samples_out_size_, 0);
145-
i2s_write(I2S_NUM_0, opus_samples_, sizeof(uint16_t) * decoded_size, &bytes_written, portMAX_DELAY);
145+
i2s_write(I2S_NUM_0, opus_samples_out_, sizeof(uint16_t) * decoded_size, &bytes_written, portMAX_DELAY);
146146
vTaskDelay(1);
147147
}
148148
}

0 commit comments

Comments
 (0)