The definition of AudioBufferList looks weird to me… i guess my C is not so good
struct AudioBufferList
{
UInt32 mNumberBuffers;
AudioBuffer mBuffers[kVariableLengthArray];
};
typedef struct AudioBufferList AudioBufferList;
Why
AudioBuffer mBuffers[kVariableLengthArray];
and not
AudioBuffer *mBuffers;
?
kVariableLengthArray appears to be == 1. Eh?
I think i have it working but would appreciate it if anyone could set me straight.