Sound Output Set Volume VI
- 已更新2025-07-30
- 閱讀時間為 1 分鐘
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
Refer to the following example files included with LabVIEW.
- labview\examples\Graphics and Sound\Sound\Sound File to Sound Output.vi
- labview\examples\Graphics and Sound\Sound\Generate Sound.vi