Skip to content

Commit

Permalink
chore(deps): upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Oct 1, 2024
1 parent f58d44a commit 88a9aac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ buildscript {
}
}
plugins {
id 'com.android.application' version '8.5.0' apply false
id 'com.android.library' version '8.5.0' apply false
id 'com.android.application' version '8.6.1' apply false
id 'com.android.library' version '8.6.1' apply false
id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false
id 'org.jetbrains.kotlin.kapt' version "$kotlinVersion" apply false
id 'org.jetbrains.dokka' version "$dokkaVersion" apply false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,12 @@ data class AudioConfig(
* [Boolean.false] for mono.
*/
val stereo: Boolean = true,

/**
* [Boolean.true] if you want to activate echo canceler.
* [Boolean.false] to deactivate.
*/
val echoCanceler: Boolean = true,

/**
* [Boolean.true] if you want to activate noise suppressor.
* [Boolean.false] to deactivate.
*/
val noiseSuppressor: Boolean = true
) {
internal fun toSdkConfig(): io.github.thibaultbee.streampack.core.data.AudioConfig {
return io.github.thibaultbee.streampack.core.data.AudioConfig(
startBitrate = bitrate,
sampleRate = sampleRate,
channelConfig = if (stereo) AudioFormat.CHANNEL_IN_STEREO else AudioFormat.CHANNEL_IN_MONO,
enableEchoCanceler = echoCanceler,
enableNoiseSuppressor = noiseSuppressor
)
}

Expand All @@ -50,8 +36,6 @@ data class AudioConfig(
bitrate = config.startBitrate,
sampleRate = config.sampleRate,
stereo = config.channelConfig == AudioFormat.CHANNEL_IN_STEREO,
echoCanceler = config.enableEchoCanceler,
noiseSuppressor = config.enableNoiseSuppressor
)
}
}
Expand Down

0 comments on commit 88a9aac

Please sign in to comment.