CallbackForCoreAudioEventsSet method |
|
Remarks
Sets a callback for receiving notification of events generated by CoreAudio devices, allowing to synchronize these devices with the container application; the usage of this callback can be an alternative to the usage of regular events.
This method is only intended for usage with Windows Vista and later versions: further information about management of audio devices in Windows Vista and later versions can be found inside the How to access settings of audio devices in Windows Vista and later versions tutorial.
Syntax
[Visual Basic] control.CallbackForCoreAudioEventsSet ( pCallback as Long ) as enumErrorCodes |
[C++] short control.CallbackForCoreAudioEventsSet ( long pCallback ); |
Parameter |
Description |
|||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
pCallback |
Pointer to the callback function that will receive CoreAudio devices related events. Remember that callback functions must be as fast as possible in order to avoid slowing down overall performances. A callback function is defined like this:
[Visual Basic ]
Public Sub MyCdDriveCallback ( ByVal nEvent As enumCoreAudioEvents, ByVal nData1 As Long, ByVal nData2 As Long, ByVal nData3 As Long )
[Visual C++]
void FAR PASCAL MyCdDriveCallback ( long nEvent, long nData1, long nData2, long nData3 );
where
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |