Instance Method

initWithAVAudioNode:

Initializes an audio player for playing the specified AVFoundation audio node.

Declaration

- (instancetype)initWithAVAudioNode:(AVAudioNode *)audioNode;

Parameters

audioNode

An audio node object.

Return Value

A positional audio player object.

Discussion

Using this initializer is typically not necessary. Instead, call the audioPlayerWithAVAudioNode: method, which returns a cached audio player object if one for the specified AVAudioNode object has already been created and is available for use.

See Also

Creating an Audio Player

- initWithSource:

Initializes an audio player for playing the specified simple audio source.

+ audioPlayerWithSource:

Returns an audio player (creating one if necessary) to play a simple audio source.

+ audioPlayerWithAVAudioNode:

Returns an audio player (creating one if necessary) to play an audio node.