1
0
Fork 0
forked from len0rd/rockbox

Replace limiter with dynamic range compressor

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22832 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jeffrey Goode 2009-09-25 15:46:38 +00:00
parent b9a17dd0ce
commit cf19ba5599
21 changed files with 577 additions and 507 deletions

View file

@ -26,8 +26,7 @@
#include <stdbool.h>
#define NATIVE_FREQUENCY 44100
#define LIMITER_BUFFER_SIZE 288 /* ~6.5 ms */
#define MAX_LIMITER_GAIN 80 /* 8 dB */
enum
{
STEREO_INTERLEAVED = 0,
@ -82,7 +81,7 @@ int32_t sound_get_pitch(void);
void dsp_set_timestretch(int32_t percent);
int32_t dsp_get_timestretch(void);
int dsp_callback(int msg, intptr_t param);
int dsp_flush_limiter_buffer(char *dest);
void dsp_set_limiter(int limiter_level);
void dsp_set_compressor(int c_threshold, int c_ratio, int c_gain,
int c_knee, int c_release);
#endif