first commit
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
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
This commit is contained in:
commit
bbccd4a815
454 files changed
+45050
No files matched your search
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.concentus;
|
||||
|
||||
import de.maxhenkel.voicechat.concentus.OpusBandwidth;
|
||||
|
||||
class OpusBandwidthHelpers {
|
||||
OpusBandwidthHelpers() {
|
||||
}
|
||||
|
||||
static int GetOrdinal(OpusBandwidth bw) {
|
||||
switch (bw) {
|
||||
case OPUS_BANDWIDTH_NARROWBAND: {
|
||||
return 1;
|
||||
}
|
||||
case OPUS_BANDWIDTH_MEDIUMBAND: {
|
||||
return 2;
|
||||
}
|
||||
case OPUS_BANDWIDTH_WIDEBAND: {
|
||||
return 3;
|
||||
}
|
||||
case OPUS_BANDWIDTH_SUPERWIDEBAND: {
|
||||
return 4;
|
||||
}
|
||||
case OPUS_BANDWIDTH_FULLBAND: {
|
||||
return 5;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
static OpusBandwidth GetBandwidth(int ordinal) {
|
||||
switch (ordinal) {
|
||||
case 1: {
|
||||
return OpusBandwidth.OPUS_BANDWIDTH_NARROWBAND;
|
||||
}
|
||||
case 2: {
|
||||
return OpusBandwidth.OPUS_BANDWIDTH_MEDIUMBAND;
|
||||
}
|
||||
case 3: {
|
||||
return OpusBandwidth.OPUS_BANDWIDTH_WIDEBAND;
|
||||
}
|
||||
case 4: {
|
||||
return OpusBandwidth.OPUS_BANDWIDTH_SUPERWIDEBAND;
|
||||
}
|
||||
case 5: {
|
||||
return OpusBandwidth.OPUS_BANDWIDTH_FULLBAND;
|
||||
}
|
||||
}
|
||||
return OpusBandwidth.OPUS_BANDWIDTH_AUTO;
|
||||
}
|
||||
|
||||
static OpusBandwidth MIN(OpusBandwidth a, OpusBandwidth b) {
|
||||
if (OpusBandwidthHelpers.GetOrdinal(a) < OpusBandwidthHelpers.GetOrdinal(b)) {
|
||||
return a;
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
||||
static OpusBandwidth MAX(OpusBandwidth a, OpusBandwidth b) {
|
||||
if (OpusBandwidthHelpers.GetOrdinal(a) > OpusBandwidthHelpers.GetOrdinal(b)) {
|
||||
return a;
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
||||
static OpusBandwidth SUBTRACT(OpusBandwidth a, int b) {
|
||||
return OpusBandwidthHelpers.GetBandwidth(OpusBandwidthHelpers.GetOrdinal(a) - b);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user