Fixes after rebase
This commit is contained in:
parent
2fd9eaf17f
commit
8f09fd62d9
117 changed files with 310 additions and 295 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ object VoiceRecorderModule {
|
|||
}
|
||||
|
||||
@Provides
|
||||
fun provideVoiceFileConfig(): VoiceFileConfig =
|
||||
public fun provideVoiceFileConfig(): VoiceFileConfig =
|
||||
VoiceFileConfig(
|
||||
cacheSubdir = "voice_recordings",
|
||||
fileExt = "ogg",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue