Skip to content

Commit 5d6d558

Browse files
fix: fix useMultibandTrackVolume not using band count option passed on iOS (#209)
Co-authored-by: SaiChand440 <[email protected]>
1 parent d57b2ce commit 5d6d558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/LiveKitReactNativeModule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public class LivekitReactNativeModule: RCTEventEmitter {
198198

199199
@objc(createMultibandVolumeProcessor:pcId:trackId:)
200200
public func createMultibandVolumeProcessor(_ options: NSDictionary, pcId: NSNumber, trackId: String) -> String {
201-
let bands = (options["bands"] as? NSString)?.integerValue ?? 5
201+
let bands = (options["bands"] as? NSNumber)?.intValue ?? 5
202202
let minFrequency = (options["minFrequency"] as? NSString)?.floatValue ?? 1000
203203
let maxFrequency = (options["maxFrequency"] as? NSString)?.floatValue ?? 8000
204204
let intervalMs = (options["updateInterval"] as? NSString)?.floatValue ?? 40

0 commit comments

Comments
 (0)