Initializer

init(fileNamed:)

Initializes an audio node from an audio asset with the specified filename.

Declaration

convenience init(fileNamed name: String)

Parameters

name

A file containing an AVAudioNode.

Return Value

A newly initialized audio node.

Discussion

The named file containing the audio asset must reside within the main bundle.

See Also

Initializing Audio Nodes

init(avAudioNode: AVAudioNode?)

Initializes an audio node from an AVFoundation audio node.

init(url: URL)

Initializes an audio node from an audio asset with the specified URL.

init?(coder: NSCoder)

Tells you when to initialize an audio node that has been unarchived.