Index   Commented   Search   About

Handling Errors with Multimedia Audio Functions

Multimedia audio functions return a nonzero error code. A set of functions convert these error codes into a textual description of the error. The application must still look at the error value itself to determine how to proceed, but textual descriptions of errors can be used in dialog boxes describing errors to users.

The following functions can be used to get textual descriptions of multimedia audio errors.

Function
Description
midiInGetErrorText
Retrieves a textual description of a specified MIDI input error.
midiOutGetErrorText
Retrieves a textual description of a specified MIDI output error.
waveInGetErrorText
Retrieves a textual description of a specified waveform input error.
waveOutGetErrorText
Retrieves a textual description of a specified waveform output error.

The only multimedia audio functions that don't return error codes are the device-numbering functions. These functions return a value of zero if no devices are present in a system, or if any errors are encountered by the function.

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
TMS Scripter Studio Pro components for Delphi/C++Builder

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

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun