diff options
Diffstat (limited to 'lib/rbcodec/dsp/dsp_misc.h')
-rw-r--r-- | lib/rbcodec/dsp/dsp_misc.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/rbcodec/dsp/dsp_misc.h b/lib/rbcodec/dsp/dsp_misc.h index 74587cbb0e..e0035457f5 100644 --- a/lib/rbcodec/dsp/dsp_misc.h +++ b/lib/rbcodec/dsp/dsp_misc.h | |||
@@ -26,6 +26,22 @@ | |||
26 | /* Set the tri-pdf dithered output */ | 26 | /* Set the tri-pdf dithered output */ |
27 | void dsp_dither_enable(bool enable); /* in dsp_sample_output.c */ | 27 | void dsp_dither_enable(bool enable); /* in dsp_sample_output.c */ |
28 | 28 | ||
29 | enum replaygain_types | ||
30 | { | ||
31 | REPLAYGAIN_TRACK = 0, | ||
32 | REPLAYGAIN_ALBUM, | ||
33 | REPLAYGAIN_SHUFFLE, | ||
34 | REPLAYGAIN_OFF | ||
35 | }; | ||
36 | |||
37 | struct replaygain_settings | ||
38 | { | ||
39 | bool noclip; /* scale to prevent clips */ | ||
40 | int type; /* 0=track gain, 1=album gain, 2=track gain if | ||
41 | shuffle is on, album gain otherwise, 4=off */ | ||
42 | int preamp; /* scale replaygained tracks by this */ | ||
43 | }; | ||
44 | |||
29 | /* Structure used with REPLAYGAIN_SET_GAINS message */ | 45 | /* Structure used with REPLAYGAIN_SET_GAINS message */ |
30 | #define REPLAYGAIN_SET_GAINS (DSP_PROC_SETTING+DSP_PROC_MISC_HANDLER) | 46 | #define REPLAYGAIN_SET_GAINS (DSP_PROC_SETTING+DSP_PROC_MISC_HANDLER) |
31 | struct dsp_replay_gains | 47 | struct dsp_replay_gains |
@@ -36,8 +52,8 @@ struct dsp_replay_gains | |||
36 | long album_peak; | 52 | long album_peak; |
37 | }; | 53 | }; |
38 | 54 | ||
39 | int get_replaygain_mode(bool have_track_gain, bool have_album_gain); | 55 | void dsp_replaygain_set_settings(const struct replaygain_settings *settings); |
40 | void dsp_set_replaygain(void); | 56 | void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains); |
41 | 57 | ||
42 | #ifdef HAVE_PITCHSCREEN | 58 | #ifdef HAVE_PITCHSCREEN |
43 | void sound_set_pitch(int32_t ratio); | 59 | void sound_set_pitch(int32_t ratio); |