Sound Output Set Volume VI

Owning Palette: Sound Output VIs

Requires: Base Development System

Sets the volume at which the sound output device plays.

(Windows) You must have DirectX 8.0 or later to use this VI. (Linux) You must have the Open Sound System (OSS) driver to use this VI.

Note  Some Linux distributions use a version of the OSS sound driver that does not support setting volume through the DSP device file. LabVIEW cannot set the output volume on these distributions and returns a warning.

Examples

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Sound Output Set Volume (Single)

task ID is the sound operation from the configured device you want to manipulate or input. You generate task ID with the Sound Output Configure VI.
volume specifies the volume of the sound operation. 0 is silent and 100 is the loudest volume. The default is 100.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
task ID out is the manipulated sound operation originally passed to the task ID parameter.
error out contains error information. This output provides standard error out functionality.

Sound Output Set Volume (Array)

task ID is the sound operation from the configured device you want to manipulate or input. You generate task ID with the Sound Output Configure VI.
volume specifies the volume of the sound operation, one element per channel. 0 is silent and 100 is the loudest volume. The default is 100.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
task ID out is the manipulated sound operation originally passed to the task ID parameter.
error out contains error information. This output provides standard error out functionality.

Examples

Refer to the following VIs for examples of using the Sound Output Set Volume VI: