diff options
Diffstat (limited to 'apps/dsp.c')
-rw-r--r-- | apps/dsp.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/apps/dsp.c b/apps/dsp.c index d9c097af66..00de511dd0 100644 --- a/apps/dsp.c +++ b/apps/dsp.c | |||
@@ -19,15 +19,12 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #include "config.h" | 21 | #include "config.h" |
22 | 22 | #include "system.h" | |
23 | #include <stdbool.h> | ||
24 | #include <inttypes.h> | ||
25 | #include <string.h> | ||
26 | #include <sound.h> | 23 | #include <sound.h> |
27 | #include "dsp.h" | 24 | #include "dsp.h" |
25 | #include "dsp-util.h" | ||
28 | #include "eq.h" | 26 | #include "eq.h" |
29 | #include "kernel.h" | 27 | #include "kernel.h" |
30 | #include "system.h" | ||
31 | #include "settings.h" | 28 | #include "settings.h" |
32 | #include "replaygain.h" | 29 | #include "replaygain.h" |
33 | #include "tdspeed.h" | 30 | #include "tdspeed.h" |
@@ -261,14 +258,6 @@ static int32_t release_gain IBSS_ATTR; /* S7.24 format */ | |||
261 | static void compressor_process(int count, int32_t *buf[]); | 258 | static void compressor_process(int count, int32_t *buf[]); |
262 | 259 | ||
263 | 260 | ||
264 | /* Clip sample to signed 16 bit range */ | ||
265 | static inline int32_t clip_sample_16(int32_t sample) | ||
266 | { | ||
267 | if ((int16_t)sample != sample) | ||
268 | sample = 0x7fff ^ (sample >> 31); | ||
269 | return sample; | ||
270 | } | ||
271 | |||
272 | #ifdef HAVE_PITCHSCREEN | 261 | #ifdef HAVE_PITCHSCREEN |
273 | int32_t sound_get_pitch(void) | 262 | int32_t sound_get_pitch(void) |
274 | { | 263 | { |