diff options
Diffstat (limited to 'lib/rbcodec/dsp/dsp_misc.h')
-rw-r--r-- | lib/rbcodec/dsp/dsp_misc.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/lib/rbcodec/dsp/dsp_misc.h b/lib/rbcodec/dsp/dsp_misc.h new file mode 100644 index 0000000000..74587cbb0e --- /dev/null +++ b/lib/rbcodec/dsp/dsp_misc.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2005 Miika Pekkarinen | ||
11 | * Copyright (C) 2005 Magnus Holmgren | ||
12 | * Copyright (C) 2007 Thom Johansen | ||
13 | * | ||
14 | * This program is free software; you can redistribute it and/or | ||
15 | * modify it under the terms of the GNU General Public License | ||
16 | * as published by the Free Software Foundation; either version 2 | ||
17 | * of the License, or (at your option) any later version. | ||
18 | * | ||
19 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
20 | * KIND, either express or implied. | ||
21 | * | ||
22 | ****************************************************************************/ | ||
23 | #ifndef DSP_MISC_H | ||
24 | #define DSP_MISC_H | ||
25 | |||
26 | /* Set the tri-pdf dithered output */ | ||
27 | void dsp_dither_enable(bool enable); /* in dsp_sample_output.c */ | ||
28 | |||
29 | /* Structure used with REPLAYGAIN_SET_GAINS message */ | ||
30 | #define REPLAYGAIN_SET_GAINS (DSP_PROC_SETTING+DSP_PROC_MISC_HANDLER) | ||
31 | struct dsp_replay_gains | ||
32 | { | ||
33 | long track_gain; | ||
34 | long album_gain; | ||
35 | long track_peak; | ||
36 | long album_peak; | ||
37 | }; | ||
38 | |||
39 | int get_replaygain_mode(bool have_track_gain, bool have_album_gain); | ||
40 | void dsp_set_replaygain(void); | ||
41 | |||
42 | #ifdef HAVE_PITCHSCREEN | ||
43 | void sound_set_pitch(int32_t ratio); | ||
44 | int32_t sound_get_pitch(void); | ||
45 | #endif /* HAVE_PITCHSCREEN */ | ||
46 | |||
47 | /* Callback for firmware layers to interface */ | ||
48 | int dsp_callback(int msg, intptr_t param); | ||
49 | |||
50 | #endif /* DSP_MISC_H */ | ||