Implement buzzer methods with AudioContext API

This commit is contained in:
Alexsander Akers
2022-01-27 11:12:01 -05:00
parent 14e4562b7a
commit a0f8e9c8bc
7 changed files with 95 additions and 25 deletions

View File

@@ -115,7 +115,7 @@ bool app_loop(void) {
900,
};
application_state.play = false;
for(size_t i = 0; i < sizeof(rains); i++) {
for(size_t i = 0, count = sizeof(rains) / sizeof(rains[0]); i < count; i++) {
char buf[9] = {0};
if (rains[i] == BUZZER_NOTE_REST) {
printf("rest for %d ms\n", durations[i]);