|
Opening and Closing Audio Device Drivers
After getting the capabilities of an audio device, you must open the device
before you can use it. Audio devices aren't guaranteed to be shareable, so a
particular device might not be available when you request it. If this happens, you
should notify the user and allow the user to try to open the device again. When
you open an audio device, be sure to close it as soon as you finish using it.
Use the following functions to open and close different types of audio
devices.
Function
| Description
| midiInOpen
| Opens a specified MIDI input device for recording.
| midiInClose
| Closes a specified MIDI input device.
| midiOutOpen
| Opens a MIDI output device for playback.
| midiOutClose
| Closes a specified MIDI output device.
| 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.
|
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|