sampling rate has to be int32

This commit is contained in:
Jean-Marc Valin 2008-03-08 07:39:47 +11:00
parent 2a6039b3f4
commit d0f57874ef
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ typedef struct CELTMode CELTMode;
@param error Returned error code (if NULL, no error will be returned) @param error Returned error code (if NULL, no error will be returned)
@return A newly created mode @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 /** Destroys a mode struct. Only call this after all encoders and decoders
using this mode are destroyed as well. using this mode are destroyed as well.

View file

@ -213,7 +213,7 @@ static void compute_allocation_table(CELTMode *mode, int res)
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 res;
int N, i; int N, i;