summaryrefslogtreecommitdiff
path: root/apps/dsp.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dsp.h')
-rw-r--r--apps/dsp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dsp.h b/apps/dsp.h
index 58a5edb5e2..b2d8493445 100644
--- a/apps/dsp.h
+++ b/apps/dsp.h
@@ -26,6 +26,8 @@
26#include <stdbool.h> 26#include <stdbool.h>
27 27
28#define NATIVE_FREQUENCY 44100 28#define NATIVE_FREQUENCY 44100
29#define LIMITER_BUFFER_SIZE 288 /* ~6.5 ms */
30#define MAX_LIMITER_GAIN 80 /* 8 dB */
29enum 31enum
30{ 32{
31 STEREO_INTERLEAVED = 0, 33 STEREO_INTERLEAVED = 0,
@@ -80,5 +82,7 @@ int32_t sound_get_pitch(void);
80void dsp_set_timestretch(int32_t percent); 82void dsp_set_timestretch(int32_t percent);
81int32_t dsp_get_timestretch(void); 83int32_t dsp_get_timestretch(void);
82int dsp_callback(int msg, intptr_t param); 84int dsp_callback(int msg, intptr_t param);
85int dsp_flush_limiter_buffer(char *dest);
86void dsp_set_limiter(int limiter_level);
83 87
84#endif 88#endif