blob: e43dfae2d7b863a3e70b8f989a281cd9be1b7e91
1 | #ifndef __AUDIO_RESAMPLER_H__ |
2 | #define __AUDIO_RESAMPLER_H__ |
3 | |
4 | struct resample_para { |
5 | unsigned int FractionStep; |
6 | unsigned int SampleFraction; |
7 | short lastsample_left; |
8 | short lastsample_right; |
9 | unsigned int input_sr; |
10 | unsigned int output_sr; |
11 | unsigned int channels; |
12 | }; |
13 | |
14 | int resampler_init(struct resample_para *resample); |
15 | int resample_process(struct resample_para *resample, unsigned int in_frame, |
16 | short* input, short* output); |
17 | |
18 | |
19 | #endif |
20 |