Copyright © 2005-2019 MultiMedia Soft

DeviceChange 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.

 

adjstudnet_i00005e

 

This event is only intended for usage with Windows XP and earlier versions. When dealing with Windows Vista and higher versions it's recommended catching the CoreAudioDeviceAdded, CoreAudioDeviceRemoved, CoreAudioDeviceStateChange and CoreAudioDeviceDefaultChange events.

 

For further details about synchronization through Events see the How to synchronize the container application through events tutorial.

 

 

Syntax

 

[Visual Basic]

Public Event DeviceChange As EventHandler


 

[C#]

public event EventHandler DeviceChange;


 

[C++]

public: __event EventHandler* DeviceChange;


 

 

Event Data

 

The event handler receives an argument of type EventArgs.