summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/pcmbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 2ba6b6f154..10304903c7 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -1135,9 +1135,10 @@ static void pcmbuf_fade_tick(void)
1135 } 1135 }
1136} 1136}
1137 1137
1138/* Fade channel in or out in the background - must pause it first */ 1138/* Fade channel in or out in the background */
1139void pcmbuf_fade(bool fade, bool in) 1139void pcmbuf_fade(bool fade, bool in)
1140{ 1140{
1141 /* Must pause any active fade */
1141 pcm_play_lock(); 1142 pcm_play_lock();
1142 1143
1143 if (fade_state != PCM_NOT_FADING) 1144 if (fade_state != PCM_NOT_FADING)