summaryrefslogtreecommitdiff
path: root/silk/main.h
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-11 21:09:14 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-11 21:09:14 -0400
commitb24e57462724185f8922455a2196607f06b98e41 (patch)
tree5949b3c5f784d4ec8aba4f4c618d30c8537bc63e /silk/main.h
parenta4885a5fd5165d4732929328de613a35a3d3b359 (diff)
downloadopus-b24e57462724185f8922455a2196607f06b98e41.tar.gz
Misc bug fixes
- There was a bug where the decoder resampler was not properly initialized when fs_kHz == API_fs_kHz. In that case the resampler would continue to upsample, and the output was corrupt. - The delay value in the decoder was taken from the state before it was potentially updated. This caused the decoder to apply the new dalay value one frame late - The encoder and decoder states are now updated more consistently, when the sampling rate changes (pesq liked these changes) - Properly resetting the side channel encoder and decoder for the first frame with side coding active again - Faster updating the "ratio" value in the LR_to_MS() code for large prediction values means that for certain extreme/artificial input signals the output looks better
Diffstat (limited to 'silk/main.h')
-rw-r--r--silk/main.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/silk/main.h b/silk/main.h
index 981c7cab..85423ab6 100644
--- a/silk/main.h
+++ b/silk/main.h
@@ -363,9 +363,10 @@ opus_int silk_init_decoder(
);
/* Set decoder sampling rate */
-void silk_decoder_set_fs(
+opus_int silk_decoder_set_fs(
silk_decoder_state *psDec, /* I/O Decoder state pointer */
- opus_int fs_kHz /* I Sampling frequency (kHz) */
+ opus_int fs_kHz, /* I Sampling frequency (kHz) */
+ opus_int fs_API_Hz /* I API Sampling frequency (Hz) */
);
/****************/