SetAudioOutputCloseHandler
Syntax
Delphi
TFlashPlayerControlOnAudioOutputClose = procedure of object;
procedure SetAudioOutputCloseHandler(Handler: TFlashPlayerControlOnAudioOutputClose);
C++Builder
typedef void __fastcall (__closure *TFlashPlayerControlOnAudioOutputClose)(void);
void __fastcall SetAudioOutputCloseHandler(TFlashPlayerControlOnAudioOutputClose Handler);
Description
The SetAudioOutputCloseHandler procedure registers a callback that is invoked when the Flash ActiveX control closes the audio device.
This event typically occurs after playback ends or when the audio stream is released. It can be used to perform cleanup tasks such as freeing buffers or resetting audio state.