Delegate EncodeNotifyProcedure
User defined callback function to receive notifications on an encoder's status.
Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.Enc.dll
Syntax
public delegate void EncodeNotifyProcedure(int Handle, EncodeNotifyStatus Status, IntPtr User);
Parameters
Int32
Handle
The encoder that the notification is from (returned by EncodeSetNotify(Int32, EncodeNotifyProcedure, IntPtr)). |
EncodeNotifyStatus
Status
The encoder's status. |
IntPtr
User
The user instance data given when EncodeSetNotify(Int32, EncodeNotifyProcedure, IntPtr) was called. |
Remarks
When setting a notification callback on a channel, it only applies to the encoders that are currently set on the channel. Subsequent encoders will not automatically have the notification callback set on them, this function will have to be called again to set them up.
An encoder can only have one notification callback set. Subsequent calls of this function can be used to change the callback function, or disable notifications.
If the encoder is already dead when setting up a notification callback, the callback will be triggered immediately.
It is safe to call EncodeStop(Int32) to free an encoder from within a notification callback.