Skip to content

Commit

Permalink
Fixed audio track settings (#1765)
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 authored May 10, 2024
1 parent 5b12fa4 commit c4de740
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ class HMSTrackSettingsExtension {
if let mode = getAudioMode(from: audioSettingsDict["audio_mode"] as? String) {
builder.audioMode = mode
}

/*
Here we set the noise cancellation controller based on the parameter passed in audio track
settings
*/
if let enableNoiseCancellation = audioSettingsDict["enable_noise_cancellation"] as? Bool {
if enableNoiseCancellation {

/// We create the noise cancellation plugin
HMSNoiseCancellationController.createPlugin()
builder.noiseCancellationPlugin = HMSNoiseCancellationController.noiseCancellationController
}
}
})

} catch {
Expand Down

0 comments on commit c4de740

Please sign in to comment.