diff options
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r-- | apps/pcmbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c index 7d5d71413b..a75c110694 100644 --- a/apps/pcmbuf.c +++ b/apps/pcmbuf.c | |||
@@ -1196,7 +1196,7 @@ void pcmbuf_beep(unsigned int frequency, size_t duration, int amplitude) | |||
1196 | bufstart = minibuf; | 1196 | bufstart = minibuf; |
1197 | bufend = SKIPBYTES(bufstart, MINIBUF_SIZE); | 1197 | bufend = SKIPBYTES(bufstart, MINIBUF_SIZE); |
1198 | } | 1198 | } |
1199 | else if (audio_buffer_state() != AUDIOBUF_STATE_TRASHED) | 1199 | else if (!audio_buffer_state_trashed()) |
1200 | { | 1200 | { |
1201 | /* Use pcmbuffer */ | 1201 | /* Use pcmbuffer */ |
1202 | bufstart = (int16_t *)pcmbuffer; | 1202 | bufstart = (int16_t *)pcmbuffer; |