summaryrefslogtreecommitdiff
path: root/lib/libsamplerate/libsamplerate-0.2.2/include/samplerate.h
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-03 15:32:28 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-03 15:32:28 +1000
commit3511852f39cd5023ec8e6d0b94cc69f34e9201ed (patch)
treefa38c2dd0a88d39616540e59f9850b919e20d852 /lib/libsamplerate/libsamplerate-0.2.2/include/samplerate.h
parentfbebc525117f18d5751e6951bc4ffcc51f70dcc4 (diff)
downloadtangara-fw-3511852f39cd5023ec8e6d0b94cc69f34e9201ed.tar.gz
Add very limited resampling (it's slow as shit)
Diffstat (limited to 'lib/libsamplerate/libsamplerate-0.2.2/include/samplerate.h')
-rwxr-xr-xlib/libsamplerate/libsamplerate-0.2.2/include/samplerate.h8
1 files changed, 4 insertions, 4 deletions
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.