update samplerate to 0.2.1

This commit is contained in:
alexey.lysiuk 2021-01-25 11:30:26 +02:00
parent 5c7187bd50
commit a7c6a519e1
3 changed files with 11 additions and 4 deletions

View file

@ -3,12 +3,12 @@
** All rights reserved. ** All rights reserved.
** **
** This code is released under 2-clause BSD license. Please see the ** 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: ** API documentation is available here:
** http://www.mega-nerd.com/SRC/api.html ** http://libsndfile.github.io/libsamplerate/api.html
*/ */
#ifndef SAMPLERATE_H #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(). */ /* SRC_DATA is used to pass data to src_simple() and src_process(). */
typedef struct typedef struct
{ const float *data_in ; { const float *data_in ;
float *data_out ; float *data_out ;
long input_frames, output_frames ; long input_frames, output_frames ;
long input_frames_used, output_frames_gen ; 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) ; 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 ** Initilisation for callback based API : return an anonymous pointer to the
** internal state of the converter. Choose a converter from the enums below. ** internal state of the converter. Choose a converter from the enums below.

Binary file not shown.

View file

@ -6,6 +6,7 @@ includedir=${prefix}/include
Name: samplerate Name: samplerate
Description: An audio Sample Rate Conversion library Description: An audio Sample Rate Conversion library
Requires: Requires:
Version: 0.1.9 Version: 0.2.1
Libs: -L${libdir} -lsamplerate Libs: -L${libdir} -lsamplerate
Libs.private: -lm
Cflags: -I${includedir} Cflags: -I${includedir}