G711UCodec move cod out of inner run()

This commit is contained in:
Fabian Wiesel
2024-02-25 21:04:59 +01:00
parent cf790b330b
commit b8025b2300

View File

@@ -58,7 +58,6 @@ class G711UCodec {
init {
// b13 --> b8
run {
var p = 1
var q = 0
while (p <= 0x80) {
@@ -81,7 +80,6 @@ class G711UCodec {
p = p shl 1
q += 0x10
}
}
// b8 --> b16
for (q in 0..7) {
var i = 0