ref: d0f57874ef3c2ca2d6b5cb2a0e3b557ea2868279
parent: 2a6039b3f48759981138f0e25655212b03e2c160
author: Jean-Marc Valin <[email protected]>
date: Sat Mar 8 02:39:47 EST 2008
sampling rate has to be int32
--- a/libcelt/celt.h
+++ b/libcelt/celt.h
@@ -97,7 +97,7 @@
@param error Returned error code (if NULL, no error will be returned)
@return A newly created mode
*/
-CELTMode *celt_mode_create(int Fs, int channels, int frame_size, int lookahead, int *error);
+CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_size, int lookahead, int *error);
/** Destroys a mode struct. Only call this after all encoders and decoders
using this mode are destroyed as well.
--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -213,7 +213,7 @@
-CELTMode *celt_mode_create(int Fs, int channels, int frame_size, int lookahead, int *error)
+CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_size, int lookahead, int *error)
{
int res;
int N, i;