@livekit/react-native 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -198,10 +198,10 @@ public class LivekitReactNativeModule: RCTEventEmitter {
|
|
|
198
198
|
|
|
199
199
|
@objc(createMultibandVolumeProcessor:pcId:trackId:)
|
|
200
200
|
public func createMultibandVolumeProcessor(_ options: NSDictionary, pcId: NSNumber, trackId: String) -> String {
|
|
201
|
-
let bands = (options["bands"] as?
|
|
202
|
-
let minFrequency = (options["minFrequency"] as?
|
|
203
|
-
let maxFrequency = (options["maxFrequency"] as?
|
|
204
|
-
let intervalMs = (options["updateInterval"] as?
|
|
201
|
+
let bands = (options["bands"] as? NSNumber)?.intValue ?? 5
|
|
202
|
+
let minFrequency = (options["minFrequency"] as? NSNumber)?.floatValue ?? 1000
|
|
203
|
+
let maxFrequency = (options["maxFrequency"] as? NSNumber)?.floatValue ?? 8000
|
|
204
|
+
let intervalMs = (options["updateInterval"] as? NSNumber)?.floatValue ?? 40
|
|
205
205
|
|
|
206
206
|
let renderer = MultibandVolumeAudioRenderer(
|
|
207
207
|
bands: bands,
|