mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Fixes after rebase
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ import kotlin.math.sqrt
|
||||
*/
|
||||
@ContributesBinding(RoomScope::class)
|
||||
@Inject
|
||||
class DBovAudioLevelCalculator() : AudioLevelCalculator {
|
||||
class DBovAudioLevelCalculator : AudioLevelCalculator {
|
||||
override fun calculateAudioLevel(buffer: ShortArray): Float {
|
||||
return buffer.rms().dBov().normalize().coerceIn(0f, 1f)
|
||||
}
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ object VoiceRecorderModule {
|
||||
}
|
||||
|
||||
@Provides
|
||||
fun provideVoiceFileConfig(): VoiceFileConfig =
|
||||
public fun provideVoiceFileConfig(): VoiceFileConfig =
|
||||
VoiceFileConfig(
|
||||
cacheSubdir = "voice_recordings",
|
||||
fileExt = "ogg",
|
||||
|
||||
Reference in New Issue
Block a user