summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 8135a30a36..32e1157132 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -27,6 +27,7 @@
27#include "pcm.h" 27#include "pcm.h"
28#include "pcm_mixer.h" 28#include "pcm_mixer.h"
29#include "pcmbuf.h" 29#include "pcmbuf.h"
30#include "dsp-util.h"
30#include "playback.h" 31#include "playback.h"
31#include "codec_thread.h" 32#include "codec_thread.h"
32 33
@@ -828,14 +829,6 @@ static size_t crossfade_find_buftail(size_t buffer_rem, size_t buffer_need)
828 return buffer_rem; 829 return buffer_rem;
829} 830}
830 831
831/* Clip sample to signed 16 bit range */
832static FORCE_INLINE int32_t clip_sample_16(int32_t sample)
833{
834 if ((int16_t)sample != sample)
835 sample = 0x7fff ^ (sample >> 31);
836 return sample;
837}
838
839/* Returns the number of bytes _NOT_ mixed/faded */ 832/* Returns the number of bytes _NOT_ mixed/faded */
840static int crossfade_mix_fade(int factor, size_t size, void *buf, size_t *out_index, 833static int crossfade_mix_fade(int factor, size_t size, void *buf, size_t *out_index,
841 unsigned long elapsed, off_t offset) 834 unsigned long elapsed, off_t offset)