Contents

init(data:)

Initializes the receiver with a given audio data.

Declaration

init?(data: Data)

Parameters

  • data:

    Audio data with which the receiver is to be initialized. The data must have a proper magic number, sound header, and data for the formats the NSSound class supports.

Return Value

Initialized NSSound instance.

See Also

Creating Sounds