diff options
| author | Magnus Holmgren <magnushol@gmail.com> | 2005-07-16 12:25:28 +0000 |
|---|---|---|
| committer | Magnus Holmgren <magnushol@gmail.com> | 2005-07-16 12:25:28 +0000 |
| commit | 08761aaa52f62700515903f709eabc2494d01487 (patch) | |
| tree | 4aa53263643921736accee752130327135c30666 /apps/dsp.h | |
| parent | a0266a8bfe2b42baaf917c6f588bce1f1eba66d3 (diff) | |
| download | rockbox-08761aaa52f62700515903f709eabc2494d01487.zip rockbox-08761aaa52f62700515903f709eabc2494d01487.tar.gz rockbox-08761aaa52f62700515903f709eabc2494d01487.tar.bz2 rockbox-08761aaa52f62700515903f709eabc2494d01487.tar.xz | |
Restructured DSP code for readability and speed. Simplified the API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7174 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.h')
| -rw-r--r-- | apps/dsp.h | 18 |
1 files changed, 4 insertions, 14 deletions
@@ -21,7 +21,6 @@ #define _DSP_H #include <stdlib.h> -#include <ctype.h> #include <stdbool.h> #define NATIVE_FREQUENCY 44100 @@ -29,19 +28,10 @@ #define STEREO_NONINTERLEAVED 1 #define STEREO_MONO 2 -struct dsp_configuration { - long frequency; - long clip_min, clip_max; - int sample_depth; - bool dither_enabled; - int stereo_mode; -}; - -extern struct dsp_configuration dsp_config; - -int dsp_process(char *dest, char *src, int samplecount); +long dsp_process(char *dest, char *src[], long size); +long dsp_input_size(long size); +long dsp_output_size(long size); +int dsp_stereo_mode(void); bool dsp_configure(int setting, void *value); #endif - - |