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) bufstart = minibuf; bufend = SKIPBYTES(bufstart, MINIBUF_SIZE); } - else if (audio_buffer_state() != AUDIOBUF_STATE_TRASHED) + else if (!audio_buffer_state_trashed()) { /* Use pcmbuffer */ bufstart = (int16_t *)pcmbuffer; |