diff options
author | Jeffrey C. Ollie <jeff@ocjtech.us> | 2008-09-11 00:51:00 -0500 |
---|---|---|
committer | Jeffrey C. Ollie <jeff@ocjtech.us> | 2008-09-11 00:51:00 -0500 |
commit | aa2c396b174fb4bc11af10b9a50ae4c045eeb00d (patch) | |
tree | c020a8248a1a4a0916dd34dc5e3a1865bc210b68 /include/libresample.h | |
download | libresample-aa2c396b174fb4bc11af10b9a50ae4c045eeb00d.tar.gz libresample-aa2c396b174fb4bc11af10b9a50ae4c045eeb00d.tar.xz libresample-aa2c396b174fb4bc11af10b9a50ae4c045eeb00d.zip |
Initial import of libresample 0.1.3libresample-0.1.3vendor
Diffstat (limited to 'include/libresample.h')
-rw-r--r-- | include/libresample.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/include/libresample.h b/include/libresample.h new file mode 100644 index 0000000..ca08e04 --- /dev/null +++ b/include/libresample.h @@ -0,0 +1,44 @@ +/********************************************************************** + + resample.h + + Real-time library interface by Dominic Mazzoni + + Based on resample-1.7: + http://www-ccrma.stanford.edu/~jos/resample/ + + License: LGPL - see the file LICENSE.txt for more information + +**********************************************************************/ + +#ifndef LIBRESAMPLE_INCLUDED +#define LIBRESAMPLE_INCLUDED + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +void *resample_open(int highQuality, + double minFactor, + double maxFactor); + +void *resample_dup(const void *handle); + +int resample_get_filter_width(const void *handle); + +int resample_process(void *handle, + double factor, + float *inBuffer, + int inBufferLen, + int lastFlag, + int *inBufferUsed, + float *outBuffer, + int outBufferLen); + +void resample_close(void *handle); + +#ifdef __cplusplus +} /* extern "C" */ +#endif /* __cplusplus */ + +#endif /* LIBRESAMPLE_INCLUDED */ |