Demonstrates a delay line attachment.
ta_customdelay [<sample file> [<delay ticks>]]
Demonstrates how to create and use a delay line to get real-time echo effects in your program. Loads the specified AIFF file and plays it into a delay line. By tweaking the knobs on the output mixer, you can control the mix of delay sound versus original sound, and the speed at which the echo will die down.
SleepAudioTicks()
is an inefficient way to delay a program, and it is used in this program's PlayPitchNote()
function. Avoid or rewrite the PlayPitchNote()
function for performance-critical code.
ta_customdelay.c
examples/Audio