The volume of the sound.
SDK
- macOS 10.5+
Framework
- App
Kit
Declaration
var volume: Float { get set }
Discussion
The valid range is between 0
and 1
.
The value of this property does not affect the systemwide volume.
The volume of the sound.
SDK
Framework
var volume: Float { get set }
The valid range is between 0
and 1
.
The value of this property does not affect the systemwide volume.
var name: NSSound .Name?
The name assigned to the sound.
var current Time: Time Interval
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.
var playback Device Identifier: NSSound .Playback Device Identifier?
Identifies the sound’s output device