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.


icon

Inputs/Outputs

  • cbsrn.png sound file refnum

    sound file refnum is the reference to the sound file.

    You generate sound file refnum with the Sound File Open VI.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • ibsrn.png sound file refnum out

    sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter.

  • iu32.png total number of samples/ch

    total number of samples/ch returns the total number of samples per channel in the wave file.

  • inclst.png sound format

    sound format returns the sample rate, the number of channels, and the number of bits per sample in the wave file.

  • idbl.png sample rate (S/s)

    sample rate (S/s) is the sampling rate for the wave file. Common rates are 44,100 S/s, 22,050 S/s, and 11,025 S/s.

  • ii32.png number of channels

    number of channels specifies the number of channels in the wave file. This input can accept as many channels as the sound card supports. For most sound cards 1 is Mono and 2 is Stereo.

  • ii32.png bits per sample

    bits per sample is the quality of each sample in bits. Common resolutions are 16 bits and 8 bits.

  • ierrcodeclst.png 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