Occurs whenever the system default multimedia input/output device (sound card) is changed through the Windows Control Panel's multimedia settings or when a new USB device is plugged or unplugged.
This event replaces the usage of the CallbackDeviceChange delegate and is only intended for usage with applications developed using Visual Basic 6 (which results unreliable when dealing with delegates and callbacks) and, in order to be enabled, requires a call to the COMEventsEnable method.
This event is only intended for usage with Windows XP and earlier versions. When dealing with Windows Vista and higher versions it's recommended using the OnCoreAudioEvents event.
[Visual Basic 6]
Private Sub DjStudioApi_OnDeviceChange ( _
where "DjStudioApi" is declared in Visual Basic 6 code as:
Dim WithEvents DjStudioApi As AudioDjStudioApi.AudioDjStudioApiObj