Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Sound Output VIs (Windows)

Owning Palette: Sound VIs

Use the Sound Output VIs to configure and control a sound output device.

Windows You must have DirectX 8.0 or later to use the Sound Output VIs.

The VIs on this palette can return general LabVIEW error codes.

Palette ObjectDescription
Play Sound FileOpens a file and starts playing it immediately.
Play WaveformPlays data from the sound output device using finite sampling. This Express VI automatically configures an output task and clears the task after the output completes.
Sound Output ClearStops the device from playing sound, clears the buffer, returns the task to the default unconfigured state, and clears the resources associated with the task. The task becomes invalid.
Sound Output ConfigureConfigures a sound output device to generate data. Use the Sound Output Write VI to write the data to the device.
Sound Output InfoReturns information about the current state of a sound output task.
Sound Output Set VolumeSets the volume at which the sound output device plays.
Sound Output StartStarts playback from the device. This VI is necessary only if the Sound Output Stop VI has previously been called.
Sound Output StopStops the device from playing sound from the buffer. Use the Sound Output Clear VI to clear the data in the buffer. Use the Sound Output Start VI to restart output.
Sound Output WaitWaits until all of the sound is played by the output device.
Sound Output WriteWrites data to a sound output device. You must use the Sound Output Configure VI to configure the device if you are writing continuously. You must manually select the polymorphic instance you want to use.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit