From 3511852f39cd5023ec8e6d0b94cc69f34e9201ed Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 3 Aug 2023 15:32:28 +1000 Subject: Add very limited resampling (it's slow as shit) --- lib/libsamplerate/libsamplerate-0.2.2/include/samplerate.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libsamplerate/libsamplerate-0.2.2/include') diff --git a/lib/libsamplerate/libsamplerate-0.2.2/include/samplerate.h b/lib/libsamplerate/libsamplerate-0.2.2/include/samplerate.h index a3d5ae1a..c06024d2 100755 --- a/lib/libsamplerate/libsamplerate-0.2.2/include/samplerate.h +++ b/lib/libsamplerate/libsamplerate-0.2.2/include/samplerate.h @@ -32,7 +32,7 @@ typedef struct int end_of_input ; - double src_ratio ; + float src_ratio ; } SRC_DATA ; /* @@ -89,7 +89,7 @@ int src_process (SRC_STATE *state, SRC_DATA *data) ; ** Callback based processing function. Read up to frames worth of data from ** the converter int *data and return frames read or -1 on error. */ -long src_callback_read (SRC_STATE *state, double src_ratio, long frames, float *data) ; +long src_callback_read (SRC_STATE *state, float src_ratio, long frames, float *data) ; /* ** Simple interface for performing a single conversion from input buffer to @@ -119,7 +119,7 @@ const char *src_get_version (void) ; ** Returns non zero on error. */ -int src_set_ratio (SRC_STATE *state, double new_ratio) ; +int src_set_ratio (SRC_STATE *state, float new_ratio) ; /* ** Get the current channel count. @@ -142,7 +142,7 @@ int src_reset (SRC_STATE *state) ; ** otherwise. */ -int src_is_valid_ratio (double ratio) ; +int src_is_valid_ratio (float ratio) ; /* ** Return an error number. -- cgit v1.2.3