Instance Property


The sound’s playback progress, in seconds.


var currentTime: TimeInterval { get set }


Sounds start with currentTime == 0 and end with currentTime == ([<sound> duration] - 1).

This property is not archived, copied, or stored on the pasteboard.

See Also

Configuring Sounds

var name: NSSound.Name?

The name assigned to the sound.

var volume: Float

The volume of the sound.

var loops: Bool

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