Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Asteborg
Opus
Commits
a81e6dc2
Commit
a81e6dc2
authored
14 years ago
by
Koen Vos
Committed by
Jean-Marc Valin
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Minor bugfix
parent
e61e6a75
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src_common/SKP_Silk_create_init_destroy.c
+0
-4
0 additions, 4 deletions
src_common/SKP_Silk_create_init_destroy.c
src_common/SKP_Silk_decoder_set_fs.c
+6
-4
6 additions, 4 deletions
src_common/SKP_Silk_decoder_set_fs.c
with
6 additions
and
8 deletions
src_common/SKP_Silk_create_init_destroy.c
+
0
−
4
View file @
a81e6dc2
...
...
@@ -38,10 +38,6 @@ SKP_int SKP_Silk_init_decoder(
/* Clear the entire encoder state, except anything copied */
SKP_memset
(
psDec
,
0
,
sizeof
(
SKP_Silk_decoder_state
)
);
/* Set sampling rate to 16 kHz, and init non-zero values */
psDec
->
nb_subfr
=
MAX_NB_SUBFR
;
SKP_Silk_decoder_set_fs
(
psDec
,
16
);
/* Used to deactivate e.g. LSF interpolation and fluctuation reduction */
psDec
->
first_frame_after_reset
=
1
;
psDec
->
prev_inv_gain_Q16
=
65536
;
...
...
This diff is collapsed.
Click to expand it.
src_common/SKP_Silk_decoder_set_fs.c
+
6
−
4
View file @
a81e6dc2
...
...
@@ -33,11 +33,13 @@ void SKP_Silk_decoder_set_fs(
SKP_int
fs_kHz
/* I Sampling frequency (kHz) */
)
{
psDec
->
frame_length
=
SKP_SMULBB
(
psDec
->
nb_subfr
,
psDec
->
subfr_length
);
if
(
psDec
->
fs_kHz
!=
fs_kHz
)
{
SKP_int
frame_length
;
psDec
->
subfr_length
=
SKP_SMULBB
(
SUB_FRAME_LENGTH_MS
,
fs_kHz
);
frame_length
=
SKP_SMULBB
(
psDec
->
nb_subfr
,
psDec
->
subfr_length
);
if
(
psDec
->
fs_kHz
!=
fs_kHz
||
frame_length
!=
psDec
->
frame_length
)
{
psDec
->
fs_kHz
=
fs_kHz
;
psDec
->
subfr_length
=
SKP_SMULBB
(
SUB_FRAME_LENGTH_MS
,
fs_kHz
);
psDec
->
frame_length
=
SKP_SMULBB
(
psDec
->
nb_subfr
,
psDec
->
subfr_length
);
psDec
->
frame_length
=
frame_length
;
psDec
->
ltp_mem_length
=
SKP_SMULBB
(
LTP_MEM_LENGTH_MS
,
fs_kHz
);
if
(
psDec
->
fs_kHz
==
8
)
{
psDec
->
LPC_order
=
MIN_LPC_ORDER
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment