Skip to content

Commit 74e2222

Browse files
authored
Update i2s.ino
1 parent 1db4d54 commit 74e2222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/i2s/i2s.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void audio_task(void *param) {
101101
} else {
102102
//codec2_set_lpc_post_filter(c2_, 1, 0, 0.8, 0.2);
103103
c2_samples_per_frame_ = codec2_samples_per_frame(c2_);
104-
c2_bytes_per_frame_ = (codec2_bits_per_frame(c2_) + 7) / 8;
104+
c2_bytes_per_frame_ = codec2_bytes_per_frame(c2_);
105105
c2_samples_ = (int16_t*)malloc(sizeof(int16_t) * c2_samples_per_frame_);
106106
c2_bits_ = (uint8_t*)malloc(sizeof(uint8_t) * c2_bytes_per_frame_);
107107
LOG_INFO("Codec2 constructed", c2_samples_per_frame_, c2_bytes_per_frame_);

0 commit comments

Comments
 (0)