Does this make any sense (Apple-documentation)?

Posted by Paperflyer on Stack Overflow See other posts from Stack Overflow or by Paperflyer
Published on 2010-03-15T19:02:55Z Indexed on 2010/03/15 19:09 UTC
Read the original article Hit count: 155

Here is a snippet of the official Apple Documentation of AudioBufferList (Core Audio Data Types Reference)

AudioBufferList
Holds a variable length array of AudioBuffer structures.

struct AudioBufferList {
    UInt32      mNumberBuffers;
    AudioBuffer mBuffers[1];
};
typedef struct AudioBufferList  AudioBufferList;

Fields

mNumberBuffers
The number of AudioBuffer structures in the mBuffers array.

mBuffers
A variable length array of AudioBuffer structures.

If mBuffers is defined as AudioBuffer[1] it is not of variable length and thus mNumberBuffers is implicitly defined as 1.

Do I miss something here or is this just nonsense?

© Stack Overflow or respective owner

Related posts about apple

Related posts about documentation