libresample  0.1.3
libresample.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  resample.h
4 
5  Real-time library interface by Dominic Mazzoni
6 
7  Based on resample-1.7:
8  http://www-ccrma.stanford.edu/~jos/resample/
9 
10  License: LGPL - see the file LICENSE.txt for more information
11 
12 **********************************************************************/
13 
20 #ifndef LIBRESAMPLE_INCLUDED
21 #define LIBRESAMPLE_INCLUDED
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif /* __cplusplus */
26 
43 void *resample_open(int highQuality,
44  double minFactor,
45  double maxFactor);
46 
55 void *resample_dup(const void *handle);
56 
64 int resample_get_filter_width(const void *handle);
65 
95 int resample_process(void *handle,
96  double factor,
97  float *inBuffer,
98  int inBufferLen,
99  int lastFlag,
100  int *inBufferUsed,
101  float *outBuffer,
102  int outBufferLen);
103 
114 void resample_close(void *handle);
115 
116 #ifdef __cplusplus
117 } /* extern "C" */
118 #endif /* __cplusplus */
119 
120 #endif /* LIBRESAMPLE_INCLUDED */
void * resample_open(int highQuality, double minFactor, double maxFactor)
Create a resampler.
Definition: resample.c:80
int resample_process(void *handle, double factor, float *inBuffer, int inBufferLen, int lastFlag, int *inBufferUsed, float *outBuffer, int outBufferLen)
Resample a chunk of audio.
Definition: resample.c:170
void * resample_dup(const void *handle)
Duplicate a resampler.
Definition: resample.c:49
void resample_close(void *handle)
Close a resampler.
Definition: resample.c:338
int resample_get_filter_width(const void *handle)
Get filter width for resampler.
Definition: resample.c:164