OnRawAudioSample
Delphi
property OnRawAudioSample: TOnRawAudioSample read FOnRawAudioSample write FOnRawAudioSample;
C++Builder
__property TOnRawAudioSample OnRawAudioSample = {read=FOnRawAudioSample, write=FOnRawAudioSample};
typedef void __fastcall (__closure *TOnRawAudioSample)(System::TObject* Sender, Winapi::Windows::PByte pSampleBuffer, System::LongInt SampleBufferSize, System::LongInt SampleDataLength, TFormatType FormatType, void * pFormat, void * pWaveFormatEx, LargeInteger SampleStartTime, LargeInteger SampleStopTime);
C#
public event OnRawAudioSampleEventHandler OnRawAudioSample;
public delegate void OnRawAudioSampleEventHandler(object sender, TOnRawAudioSampleEventArgs e);
VB.NET
Public Event OnRawAudioSample As OnRawAudioSampleEventHandler
Public Delegate Sub OnRawAudioSampleEventHandler(sender As Object, e As TOnRawAudioSampleEventArgs)
C++/Qt
void SetOnRawAudioSample (TOnRawAudioSampleCb OnRawAudioSampleCb);
typedef void CALLBACK TOnRawAudioSampleCb (void *Object, void *Sender, byte *pSampleBuffer, int SampleBufferSize, int SampleDataLength, TFormatType FormatType, void *pFormat, void *pWaveFormatEx, __int64 SampleStartTime, __int64 SampleStopTime);
This TOnRawAudioSample event gives access to the current audio sample.
Evaluation version: with PCM or IEEE float audio, a 1 kHz beep of 300 ms (-20 dBFS) is added to the samples handed to the event at the start of every 20 s of audio. The samples are restored when the event returns, so the beep is neither rendered nor recorded, except in the samples that the event changes. No beep in the licensed version.