The OpenD Programming Language

AudioOutput.fillData

passes a buffer of data to fill

Data is assumed to be interleaved stereo, LE 16 bit, 44.1 kHz (unless you change that in the ctor) Each item in the array thus alternates between left and right channel (unless you change that in the ctor) and it takes a total of 88,200 items to make one second of sound.

struct AudioOutput
void delegate(short[]) fillData;

Meta