Skip to content

Commit

Permalink
ASR should respect note-off ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
marchingband committed Dec 25, 2023
1 parent 7bd97f9 commit f238475
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/wav_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,11 +562,12 @@ void IRAM_ATTR wav_player_task(void* pvParameters)
bufs[b].wav_player_event.voice == wav_player_event.voice &&
bufs[b].wav_player_event.note == wav_player_event.note &&
bufs[b].free == 0 &&
(
bufs[b].wav_data.note_off_meaning == HALT ||
bufs[b].wav_data.play_back_mode == ASR_LOOP || // ASR gets stopped either way
bufs[b].wav_data.play_back_mode == LOOP // LOOP gets stopped either way
)
bufs[b].wav_data.note_off_meaning == HALT
// (
// bufs[b].wav_data.note_off_meaning == HALT ||
// bufs[b].wav_data.play_back_mode == ASR_LOOP || // ASR gets stopped either way
// bufs[b].wav_data.play_back_mode == LOOP // LOOP gets stopped either way
// )
)
{
bufs[b].fade = FADE_OUT;
Expand Down

0 comments on commit f238475

Please sign in to comment.