init(source:)
Initializes an audio player for playing the specified simple audio source.
Declaration
init(source: SCNAudioSource)Parameters
- source:
An audio source object.
Return Value
A positional audio player object.
Discussion
Using this initializer is typically not necessary. Instead, call the audioPlayerWithSource: method, which returns a cached audio player object if one for the specified audio source has already been created and is available for use.