diff --git a/libcelt/celt.h b/libcelt/celt.h index c77f0583..d731d1a7 100644 --- a/libcelt/celt.h +++ b/libcelt/celt.h @@ -109,7 +109,7 @@ typedef struct CELTMode CELTMode; /** Creates a new mode struct. This will be passed to an encoder or decoder. The mode MUST NOT BE DESTROYED until the encoders and decoders that use it are destroyed as well. - @param Fs Sampling rate (32000 to 64000 Hz) + @param Fs Sampling rate (32000 to 96000 Hz) @param channels Number of channels @param frame_size Number of samples (per channel) to encode in each packet (64 - 256) @param lookahead Extra latency (in samples per channel) in addition to the frame size (between 32 and frame_size). The larger that value, the better the quality (at the expense of latency) diff --git a/libcelt/modes.c b/libcelt/modes.c index 292990fc..624210ef 100644 --- a/libcelt/modes.c +++ b/libcelt/modes.c @@ -317,9 +317,9 @@ CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_size, int *e /* The good thing here is that permutation of the arguments will automatically be invalid */ - if (Fs < 32000 || Fs > 64000) + if (Fs < 32000 || Fs > 96000) { - celt_warning("Sampling rate must be between 32 kHz and 64 kHz"); + celt_warning("Sampling rate must be between 32 kHz and 96 kHz"); if (error) *error = CELT_BAD_ARG; return NULL;