Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Jan 14, 2025
1 parent 4b77f84 commit 7cd4f29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/LiveKitTests/AudioEngineTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ class AudioEngineTests: XCTestCase {
// Attach sin wave generator when engine requests input node...
// inputMixerNode will automatically convert to RTC's internal format (int16).
// AVAudioEngine.attach() retains the node.
AudioManager.shared.onEngineWillConnectInput = { _, engine, inputMixerNode in
AudioManager.shared.onEngineWillConnectInput = { _, engine, _, dst, format in
let sin = SineWaveSourceNode()
engine.attach(sin)
engine.connect(sin, to: inputMixerNode, format: nil)
engine.connect(sin, to: dst, format: format)
return true
}

// Set manual rendering mode...
Expand Down

0 comments on commit 7cd4f29

Please sign in to comment.