Hybrid tuning
This commit is contained in:
parent
62b88c3b28
commit
686bfe83fa
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size,
|
||||||
if( st->bandwidth == BANDWIDTH_SUPERWIDEBAND ) {
|
if( st->bandwidth == BANDWIDTH_SUPERWIDEBAND ) {
|
||||||
if( st->Fs == 100 * frame_size ) {
|
if( st->Fs == 100 * frame_size ) {
|
||||||
/* 24 kHz, 10 ms */
|
/* 24 kHz, 10 ms */
|
||||||
st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 14000 - ( 1 - st->use_vbr ) * 10000 ) * 2 ) / 3;
|
st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 8000 - ( 1 - st->use_vbr ) * 7000 ) * 2 ) / 3;
|
||||||
} else {
|
} else {
|
||||||
/* 24 kHz, 20 ms */
|
/* 24 kHz, 20 ms */
|
||||||
st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 12000 - ( 1 - st->use_vbr ) * 10000 ) * 2 ) / 3;
|
st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 12000 - ( 1 - st->use_vbr ) * 10000 ) * 2 ) / 3;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue