Instance Property

name

The name assigned to the sound.

Declaration

var name: NSSound.Name? { get }

Discussion

The value of this property is nil when no name has been assigned.

See Also

Configuring Sounds

var volume: Float

The volume of the sound.

var currentTime: TimeInterval

The sound’s playback progress, in seconds.

var loops: Bool

A Boolean that indicates whether the sound restarts playback when it reaches the end of its content.