diff --git a/deps/samplerate/include/samplerate.h b/deps/samplerate/include/samplerate.h index ac0f2b08..a3d5ae1a 100644 --- a/deps/samplerate/include/samplerate.h +++ b/deps/samplerate/include/samplerate.h @@ -3,12 +3,12 @@ ** All rights reserved. ** ** This code is released under 2-clause BSD license. Please see the -** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING +** file at : https://github.com/libsndfile/libsamplerate/blob/master/COPYING */ /* ** API documentation is available here: -** http://www.mega-nerd.com/SRC/api.html +** http://libsndfile.github.io/libsamplerate/api.html */ #ifndef SAMPLERATE_H @@ -25,7 +25,7 @@ typedef struct SRC_STATE_tag SRC_STATE ; /* SRC_DATA is used to pass data to src_simple() and src_process(). */ typedef struct { const float *data_in ; - float *data_out ; + float *data_out ; long input_frames, output_frames ; long input_frames_used, output_frames_gen ; @@ -54,6 +54,12 @@ typedef long (*src_callback_t) (void *cb_data, float **data) ; SRC_STATE* src_new (int converter_type, int channels, int *error) ; +/* +** Clone a handle : return an anonymous pointer to a new converter +** containing the same internal state as orig. Error returned in *error. +*/ +SRC_STATE* src_clone (SRC_STATE* orig, int *error) ; + /* ** Initilisation for callback based API : return an anonymous pointer to the ** internal state of the converter. Choose a converter from the enums below. diff --git a/deps/samplerate/lib/libsamplerate.a b/deps/samplerate/lib/libsamplerate.a index 75b1e6d1..d1015882 100644 Binary files a/deps/samplerate/lib/libsamplerate.a and b/deps/samplerate/lib/libsamplerate.a differ diff --git a/deps/samplerate/lib/pkgconfig/samplerate.pc b/deps/samplerate/lib/pkgconfig/samplerate.pc index f15e743d..007b09d3 100644 --- a/deps/samplerate/lib/pkgconfig/samplerate.pc +++ b/deps/samplerate/lib/pkgconfig/samplerate.pc @@ -6,6 +6,7 @@ includedir=${prefix}/include Name: samplerate Description: An audio Sample Rate Conversion library Requires: -Version: 0.1.9 +Version: 0.2.1 Libs: -L${libdir} -lsamplerate +Libs.private: -lm Cflags: -I${includedir}