Owning Palette: Sound VIs
Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the Sound Files VIs to create and retrieve PC wave files (.wav).
(Windows) You must have DirectX 8.0 or later to use the Sound File VIs.
(Linux) You must have the Open Sound System (OSS) driver to use this VI. LabVIEW searches for input and output devices by looking for files named /dev/dsp or /dev/dspX, where X is an integer between 0 and 16. LabVIEW attempts to open each input and output device. If LabVIEW cannot detect the sound card, check that a device file named /dev/dsp or /dev/dspX exists on the local system and that you have permission to read from and write to the device. If you moved this device to a location other than the default, LabVIEW can work with a symbolic link.
Palette Object | Description |
---|---|
Sound File Close | Closes a .wav file. |
Sound File Info | Retrieves data about a .wav file. This VI accepts either a path or a refnum. |
Sound File Open | Opens a .wav file for reading or creates a new .wav file for writing. You must manually select the polymorphic instance you want to use. |
Sound File Read | Reads data from a .wav file into an array of waveforms. You must manually select the polymorphic instance you want to use. |
Sound File Read Simple | Reads data from a .wav file into an array of waveforms. This VI automatically opens, reads, and closes the .wav file. |
Sound File Write | Writes data from a waveform or an array of waveforms to a .wav file. |
Sound File Write Simple | Writes data from an array of waveforms to a .wav file. This VI automatically opens, writes to, and closes the .wav file. |