Skip to content

Commit 08bb2d0

Browse files
committed
setting up proper typecast for other variables
1 parent 5d6d558 commit 08bb2d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/LiveKitReactNativeModule.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ public class LivekitReactNativeModule: RCTEventEmitter {
199199
@objc(createMultibandVolumeProcessor:pcId:trackId:)
200200
public func createMultibandVolumeProcessor(_ options: NSDictionary, pcId: NSNumber, trackId: String) -> String {
201201
let bands = (options["bands"] as? NSNumber)?.intValue ?? 5
202-
let minFrequency = (options["minFrequency"] as? NSString)?.floatValue ?? 1000
203-
let maxFrequency = (options["maxFrequency"] as? NSString)?.floatValue ?? 8000
204-
let intervalMs = (options["updateInterval"] as? NSString)?.floatValue ?? 40
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
205205

206206
let renderer = MultibandVolumeAudioRenderer(
207207
bands: bands,

0 commit comments

Comments
 (0)