Skip to content

Commit 34e45b3

Browse files
Update MicroPython to fix silent frames issue
Remove our workaround
1 parent b887f22 commit 34e45b3

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/microbithal_js.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -455,16 +455,7 @@ void microbit_hal_audio_raw_set_rate(uint32_t sample_rate) {
455455
}
456456

457457
void microbit_hal_audio_raw_write_data(const uint8_t *buf, size_t num_samples) {
458-
bool silence = true;
459-
for (const uint8_t *sample = buf; sample < buf + num_samples; ++sample) {
460-
if (*sample != 128) {
461-
silence = false;
462-
break;
463-
}
464-
}
465-
if (!silence) {
466-
mp_js_hal_audio_write_data(buf, num_samples);
467-
}
458+
mp_js_hal_audio_write_data(buf, num_samples);
468459
}
469460

470461
void microbit_hal_audio_speech_init(uint32_t sample_rate) {

0 commit comments

Comments
 (0)