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.