You are here: Symbol Reference > AsioAudioSignal Namespace > Classes > TSignalAsio Class > published > TSignalAsio.OnProcessRealTime Property
DSP Master VCL
ContentsIndex
PreviousUpNext
TSignalAsio.OnProcessRealTime Property

Request for new data.

Pascal
property OnProcessRealTime: TNotifyEvent;

This event is called when a double buffer switch occurs within the drivers thread by the ASIO drivers BufferSwitch or BufferSwitchTimeInfo events. The following usage scenarios apply: 

 

  • Playback only. For playback use this event to process data stored in OutputBuffers so that user controls can affect the output in real time. (Changing of volume, pitch, playback speed etc...) For data to be fetched in to OutputBuffers, the components Inputs property has to be assigned fetching data from the source (file or other). The stream assigned to the Inputs property and used to feed the OutputBuffers is buffered automatically up to ExtendedBufferTime.
  • Recording only. When only recording, this event will also trigger, but can be ignored. Do not use this event to save data to disk or send it over the network. Use OnInputBufferReady event for this purpose.
  • Playback and recording. In case of combined recording and playback the InputBuffers contain and OutputBuffers now expect fresh data. If we would simply write: AsioAudio.OutputBuffers.Copy(AsioAudio.InputBuffers) then the playback would be the same as what is being recorded except for some delay equal to the size of the buffer specified by the DesiredLatency.

 

The event must finish its processing before the next buffer will be required by the driver. Because the event is triggered within the drivers thread, do not use it to write data to disk or to send the stream over network. If the thread will remain blocked for too long time, the recording or playback will be interupted. 

InputBuffers or OutputBuffers may also have a Count of zero, which means that either recording or playback was set up. 

The conversion of data from audio format to double precision and back is performed automatically.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!