Copyright © 2006-2023 MultiMedia Soft

OnDeviceChange event

Previous pageReturn to chapter overviewNext page

Remarks

 

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 COMEventEnable method with the nEventType parameter set to EVENT_TYPE_DEVICE_CHANGE.

 

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.

 

 

Syntax

 

[Visual Basic 6]

Private Sub DjStudioApi_OnDeviceChange ( _

)

 

where "DjStudioApi" is declared in Visual Basic 6 code as:

 

Dim WithEvents DjStudioApi As AudioDjStudioApi.AudioDjStudioApiObj