ThbWaveIn.OnWaveError
Unit: hbTapiWave
 

Normally, errors are given to the application as EWaveError exceptions directly after calling a method or setting a property. But because playing and recording works asynchron, not all erros can be handled in that case. Errors occuring during playing or recording are given to the application as OnWaveError events. The ErrorCode parameter holds the code of the error (see MMSYS_ERR_ constants) and ErrorText an corresponding text that is displayable to the user.

Availability

Design-Time: Read, Write / Run-Time: Read, Write

Declaration

procedure (Sender: TObject; ErrorCode: MMResult; ErrorText: String) of Object;
property OnWaveError : TWaveErrorEvent;

See Also

ThbWaveIn.OnWaveError, EWaveError