Skip to content

Commit

Permalink
fix: Remove audio queue state check for SF 'Play Sound' action (#3567)
Browse files Browse the repository at this point in the history
Was preventing sounds running from startup
  • Loading branch information
philmoz authored May 15, 2023
1 parent 70d02a7 commit 3d6bc63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions radio/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ void evalFunctions(const CustomFunctionData * functions, CustomFunctionsContext
if (isRepeatDelayElapsed(functions, functionsContext, i)) {
if (!IS_PLAYING(PLAY_INDEX)) {
if (CFN_FUNC(cfn) == FUNC_PLAY_SOUND) {
if (audioQueue.isEmpty()) {
AUDIO_PLAY(AU_SPECIAL_SOUND_FIRST + CFN_PARAM(cfn));
}
AUDIO_PLAY(AU_SPECIAL_SOUND_FIRST + CFN_PARAM(cfn));
} else if (CFN_FUNC(cfn) == FUNC_PLAY_VALUE) {
PLAY_VALUE(CFN_PARAM(cfn), PLAY_INDEX);
}
Expand Down

0 comments on commit 3d6bc63

Please sign in to comment.