Skip to content

Commit 853bfb5

Browse files
committed
Clean up
1 parent 213f75f commit 853bfb5

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

Sources/StreamVideo/Utils/AudioSession/AudioDeviceModule/AudioDeviceModule.swift

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ final class AudioDeviceModule: NSObject, RTCAudioDeviceModuleDelegate, Encodable
181181
", isVoiceProcessingAGCEnabled:\(isVoiceProcessingAGCEnabled)" +
182182
", audioLevel:\(audioLevel)" +
183183
", source:\(source)" +
184-
", engineOutput: \(engine?.outputDescription ?? "-")" +
185184
" }"
186185
}
187186

@@ -321,10 +320,6 @@ final class AudioDeviceModule: NSObject, RTCAudioDeviceModuleDelegate, Encodable
321320
source.refreshStereoPlayoutState()
322321
}
323322

324-
func setVoiceProcessingBypassed(_ value: Bool) {
325-
source.isVoiceProcessingBypassed = value
326-
}
327-
328323
// MARK: - RTCAudioDeviceModuleDelegate
329324

330325
/// Receives speech activity notifications emitted by WebRTC VAD.
@@ -569,32 +564,3 @@ final class AudioDeviceModule: NSObject, RTCAudioDeviceModuleDelegate, Encodable
569564
)
570565
}
571566
}
572-
573-
extension AVAudioEngine {
574-
575-
/// Human-readable description of the current output node format, used in
576-
/// logs when debugging device routing issues.
577-
var outputDescription: String {
578-
guard let remoteIO = outputNode.audioUnit else {
579-
return "not available"
580-
}
581-
582-
var asbd = AudioStreamBasicDescription()
583-
var size = UInt32(MemoryLayout<AudioStreamBasicDescription>.size)
584-
585-
let status = AudioUnitGetProperty(
586-
remoteIO,
587-
kAudioUnitProperty_StreamFormat,
588-
kAudioUnitScope_Output,
589-
0,
590-
&asbd,
591-
&size
592-
)
593-
594-
guard status == noErr else {
595-
return "failed to fetch information"
596-
}
597-
598-
return "\(asbd.mChannelsPerFrame) ch @ \(asbd.mSampleRate) Hz"
599-
}
600-
}

0 commit comments

Comments
 (0)