You must open a device before you can begin waveform playback or recording. Once you finish using a device, you must close it so that it will be available to other applications. Use the following functions to open and close waveform devices:
waveInOpen
Opens a waveform input device for recording.
waveInClose
Closes a specified waveform input device.
waveOutOpen
Opens a waveform output device for playback.
waveOutClose
Closes a specified waveform output device.