Sound File Info (refnum) VI
- Updated2025-07-30
- 3 minute(s) read
Retrieves data about a .wav file. This VI accepts either a path or a refnum.
(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.

Inputs/Outputs
sound file refnum
—
sound file refnum is the reference to the sound file. You generate sound file refnum with the Sound File Open VI.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
sound file refnum out
—
sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter.
total number of samples/ch
—
total number of samples/ch returns the total number of samples per channel in the wave file.
sound format
—
sound format returns the sample rate, the number of channels, and the number of bits per sample in the wave file.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Graphics and Sound\Sound\Sound File to Sound Output.vi
sound file refnum
—
error in (no error)
—
sound file refnum out
—
total number of samples/ch
—
sound format
—
sample rate (S/s)
—
number of channels
—
error out
—