Platform SDK: DirectX

DirectMusicPerformance.AddNotificationType

The DirectMusicPerformance.AddNotificationType method causes the performance to generate notification messages whenever events of the requested type occur.

object.AddNotificationType( _
    type As CONST_DMUS_NOTIFICATION_TYPE)

Parameters

object
Object expression that resolves to a DirectMusicPerformance object.
type
Type of event for which notification messages are to be sent. For possible values, see CONST_DMUS_NOTIFICATION_TYPE.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DMUS_E_INVALIDARG
DMUS_E_OUTOFMEMORY

See Also

DirectMusicPerformance.RemoveNotificationType