FS#10406 - split the statusbar setting into one for each display, and allow the bar...
[kugel-rb.git] / apps / dsp.h
blob3d24b2424534ac3d647b17831a969f2b61910a00
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 Miika Pekkarinen
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef _DSP_H
23 #define _DSP_H
25 #include <stdlib.h>
26 #include <stdbool.h>
28 #define NATIVE_FREQUENCY 44100
29 enum
31 STEREO_INTERLEAVED = 0,
32 STEREO_NONINTERLEAVED,
33 STEREO_MONO,
34 STEREO_NUM_MODES,
37 enum
39 CODEC_IDX_AUDIO = 0,
40 CODEC_IDX_VOICE,
43 enum
45 DSP_MYDSP = 1,
46 DSP_SET_FREQUENCY,
47 DSP_SWITCH_FREQUENCY,
48 DSP_SET_SAMPLE_DEPTH,
49 DSP_SET_STEREO_MODE,
50 DSP_RESET,
51 DSP_FLUSH,
52 DSP_SET_TRACK_GAIN,
53 DSP_SET_ALBUM_GAIN,
54 DSP_SET_TRACK_PEAK,
55 DSP_SET_ALBUM_PEAK,
56 DSP_CROSSFEED
59 enum {
60 DSP_CALLBACK_SET_PRESCALE = 0,
61 DSP_CALLBACK_SET_BASS,
62 DSP_CALLBACK_SET_TREBLE,
63 DSP_CALLBACK_SET_CHANNEL_CONFIG,
64 DSP_CALLBACK_SET_STEREO_WIDTH
67 struct dsp_config;
69 int dsp_process(struct dsp_config *dsp, char *dest,
70 const char *src[], int count);
71 int dsp_input_count(struct dsp_config *dsp, int count);
72 int dsp_output_count(struct dsp_config *dsp, int count);
73 intptr_t dsp_configure(struct dsp_config *dsp, int setting,
74 intptr_t value);
75 void dsp_set_replaygain(void);
76 void dsp_set_crossfeed(bool enable);
77 void dsp_set_crossfeed_direct_gain(int gain);
78 void dsp_set_crossfeed_cross_params(long lf_gain, long hf_gain,
79 long cutoff);
80 void dsp_set_eq(bool enable);
81 void dsp_set_eq_precut(int precut);
82 void dsp_set_eq_coefs(int band);
83 void dsp_dither_enable(bool enable);
84 void dsp_timestretch_enable(bool enable);
85 bool dsp_timestretch_available(void);
86 void sound_set_pitch(int r);
87 int sound_get_pitch(void);
88 void dsp_set_timestretch(int percent);
89 int dsp_get_timestretch(void);
90 int dsp_callback(int msg, intptr_t param);
92 #endif