CreateDelayLine

Creates a delay for echoes and reverberations.

Synopsis

Item CreateDelayLine( int32 NumBytes, int32 NumChannels,int32 IfLoop )

Description

This function creates a delay line item for echo, reverberation, and oscilloscope applications. The delay line item can be attached to any instrument that provides DMA OUT from DSP. When finished with the delay line, delete it using DeleteDelayLine() to free its resources.

CreateDelayLine() calls CreateItem() using the tag argument AF_TAG_DELAY_LINE.

Arguments

NumBytes
The number of bytes in the delay line's sample buffer.
NumChannels
The number of channels stored in each sample frame.
IfLoop
A value indicating whether or not this is a loop. Set to TRUE (1) or FALSE (0).

Return Value

The function returns the item number of the delay line or an error code (a negative value) if an error occurs.

Implementation

Folio call implemented in Audio folio V20.

Associated Files

audio.h

See Also

DeleteDelayLine()