Files
AsminVoicechat/source/decompiled/de/maxhenkel/voicechat/concentus/SilkEncoder.java
T
asminme bbccd4a815
Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
first commit
2026-10-24 15:18:03 +02:00

53 lines
1.6 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package de.maxhenkel.voicechat.concentus;
import de.maxhenkel.voicechat.concentus.Inlines;
import de.maxhenkel.voicechat.concentus.SilkChannelEncoder;
import de.maxhenkel.voicechat.concentus.StereoEncodeState;
import de.maxhenkel.voicechat.concentus.VoiceActivityDetection;
class SilkEncoder {
final SilkChannelEncoder[] state_Fxx = new SilkChannelEncoder[2];
final StereoEncodeState sStereo = new StereoEncodeState();
int nBitsUsedLBRR = 0;
int nBitsExceeded = 0;
int nChannelsAPI = 0;
int nChannelsInternal = 0;
int nPrevChannelsInternal = 0;
int timeSinceSwitchAllowed_ms = 0;
int allowBandwidthSwitch = 0;
int prev_decode_only_middle = 0;
SilkEncoder() {
for (int c = 0; c < 2; ++c) {
this.state_Fxx[c] = new SilkChannelEncoder();
}
}
void Reset() {
for (int c = 0; c < 2; ++c) {
this.state_Fxx[c].Reset();
}
this.sStereo.Reset();
this.nBitsUsedLBRR = 0;
this.nBitsExceeded = 0;
this.nChannelsAPI = 0;
this.nChannelsInternal = 0;
this.nPrevChannelsInternal = 0;
this.timeSinceSwitchAllowed_ms = 0;
this.allowBandwidthSwitch = 0;
this.prev_decode_only_middle = 0;
}
static int silk_init_encoder(SilkChannelEncoder psEnc) {
int ret = 0;
psEnc.Reset();
psEnc.variable_HP_smth2_Q15 = psEnc.variable_HP_smth1_Q15 = Inlines.silk_LSHIFT(Inlines.silk_lin2log(0x3C0000) - 2048, 8);
psEnc.first_frame_after_reset = 1;
return ret += VoiceActivityDetection.silk_VAD_Init(psEnc.sVAD);
}
}