AntiStrike12
AntiStrike12

Reputation: 774

AKPanner node not affecting output

I've been struggling with this for a while now.

I've got an array of AKPlayers.

var players = [AKPlayer]()

Then I create an AKPanner node, set the pan, and connect it into the input of an AKMixer

let playerNode = AKPlayer(audioFile: c.audioFile!)
playerNode.pan = 0

var pannerNode = AKPanner(playerNode, pan: 1)
self.audioMixer.connect(input: pannerNode)

players.append(playerNode)
panners.append(pannerNode)

I also throw the nodes into an array due to this

Then I do the following:

do {
   AudioKit.output = audioMixer
   try AudioKit.start()
} catch {
   print(error.localizedDescription)
}

I am able to hear sound, but it is in both ears. Not in my right ear.

Any help would be greatly appreciated. Thank you.

Upvotes: 1

Views: 110

Answers (1)

AntiStrike12
AntiStrike12

Reputation: 774

My problem was not with the code at all, but rather, with a setting on my phone.

Make sure that Mono Audio is turned off in the iOS settings under:

General > Accessibility > Mono Audio

**Note: Mono Audio is under the Hearing section

Upvotes: 2

Related Questions