From 8d19ed8c260f43a5d62fb55c722df8c26119a1c5 Mon Sep 17 00:00:00 2001 From: crc-32 Date: Tue, 3 Dec 2024 20:47:44 +0000 Subject: [PATCH] less gain, actually --- .../src/main/java/com/example/speex_codec/SpeexCodec.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/speex_codec/src/main/java/com/example/speex_codec/SpeexCodec.kt b/android/speex_codec/src/main/java/com/example/speex_codec/SpeexCodec.kt index 5b2c2b5a..bc2fec2b 100644 --- a/android/speex_codec/src/main/java/com/example/speex_codec/SpeexCodec.kt +++ b/android/speex_codec/src/main/java/com/example/speex_codec/SpeexCodec.kt @@ -3,7 +3,7 @@ package com.example.speex_codec import android.media.MediaCodec import java.nio.ByteBuffer -class SpeexCodec(private val sampleRate: Long, private val bitRate: Int, private val frameSize: Int, private val preprocessors: Set = emptySet(), private val gain: Float = 4.0f): AutoCloseable { +class SpeexCodec(private val sampleRate: Long, private val bitRate: Int, private val frameSize: Int, private val preprocessors: Set = emptySet(), private val gain: Float = 1.5f): AutoCloseable { enum class Preprocessor(val flagValue: Int) { DENOISE(1), AGC(2),