summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index e23f6d0fb6..319e3e8044 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -448,7 +448,7 @@ static size_t pcmbuf_get_next_required_pcmbuf_size(void)
448 /* Buffer has to be at least 2s long. */ 448 /* Buffer has to be at least 2s long. */
449 seconds += 2; 449 seconds += 2;
450#endif 450#endif
451 logf("pcmbuf len: %ld", seconds); 451 logf("pcmbuf len: %ld", (long)seconds);
452 return seconds * (NATIVE_FREQUENCY*4); /* 2 channels + 2 bytes/sample */ 452 return seconds * (NATIVE_FREQUENCY*4); /* 2 channels + 2 bytes/sample */
453} 453}
454 454
@@ -1166,6 +1166,8 @@ bool pcmbuf_is_crossfade_enabled(void)
1166 return crossfade_enabled; 1166 return crossfade_enabled;
1167} 1167}
1168 1168
1169/** PLAY LAST REMAINING SAMPLES AT END OF PLAYBACK
1170 * Commit any remaining samples in the PCM buffer for playback. */
1169void pcmbuf_play_remainder(void) 1171void pcmbuf_play_remainder(void)
1170{ 1172{
1171 if (audiobuffer_fillpos) 1173 if (audiobuffer_fillpos)