---
title: "setVolumeScalarValue(_:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwarecontrol/setvolumescalarvalue(_:)"
---

# setVolumeScalarValue(_:)

Set the volumeScalarValue property.

## Declaration

```swift
func setVolumeScalarValue(_ value: Float) throws
```

## Parameters

- `value`: A Float that represents the value of the volume control. The range is between 0.0 and 1.0 (inclusive).
