Owning Palette: Sound Files VIs
Requires: Base Development System
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.
Use the pull-down menu to select an instance of this VI.
Add to the block diagram | Find on the palette |
path specifies the absolute path to the wave file. If the path is empty or invalid, the VI returns an error. The default is <Not A Path>. | |||||||
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | |||||||
path out identifies the wave file passed in path. | |||||||
total number of samples/ch returns the total number of samples per channel in the wave file. | |||||||
sound format returns the sample rate, the number of channels, and the number of bits per sample in the wave file.
| |||||||
error out contains error information. This output provides standard error out functionality. |
sound file refnum is the reference to the sound file. You generate sound file refnum with the Sound File Open VI. | |||||||
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | |||||||
sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter. | |||||||
total number of samples/ch returns the total number of samples per channel in the wave file. | |||||||
sound format returns the sample rate, the number of channels, and the number of bits per sample in the wave file.
| |||||||
error out contains error information. This output provides standard error out functionality. |
Refer to the Sound File to Sound Output VI in the labview\examples\Graphics and Sound\Sound directory for an example of using the Sound File Info VI.