Instance Property

currentTime

The sound’s playback progress, in seconds.

Declaration

var currentTime: TimeInterval { get set }

Discussion

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.