Request for member ______ which is of non-class type
<p>Good Day wonderful computer people of the planet Earth!</p>

<p>Here is the struct in a file called AudioQueue.h:</p>

<pre><code>typedef struct AudioQueueBuffer {
const UInt32                    mAudioDataBytesCapacity;
void * const                    mAudioData;
UInt32                          mAudioDataByteSize;
void *                          mUserData;

const UInt32                    mPacketDescriptionCapacity;
AudioStreamPacketDescription *  const mPacketDescriptions;
UInt32                          mPacketDescriptionCount;
#ifdef __cplusplus
AudioQueueBuffer() : mAudioDataBytesCapacity(0), mAudioData(0), mPacketDescriptionCapacity(0), mPacketDescriptions(0) { }
#endif
} AudioQueueBuffer;

/*!
@typedef    AudioQueueBufferRef
@abstract   An pointer to an AudioQueueBuffer.
*/
typedef AudioQueueBuffer *AudioQueueBufferRef;
</code></pre>

<p>And then later on there is this in the header of AudioPlayer.h:</p>

<pre><code>    AudioQueueBufferRef             mBuffers[kNumberBuffers];
</code></pre>

<p>And then what I'm trying to do:</p>

<pre><code>for (int i = 0; i &lt; kNumberBuffers; ++i) {

    printf("%i\n", &amp;mBuffers[i].mAudioData );

    XThrowIfError(AudioQueueAllocateBufferWithPacketDescriptions(mQueue, bufferByteSize, (isFormatVBR ? mNumPacketsToRead : 0), &amp;mBuffers[i]), "AudioQueueAllocateBuffer failed");
</code></pre>

<p>Basically I'm trying to access the information in mAudioData, but get the error:</p>

<pre><code>request for member 'mAudioData' in '((AQPlayer*)this)-&gt;AQPlayer::mBuffers[i]', which is of non-class type 'AudioQueueBuffer*'
</code></pre>

<p>Any help greatly appreciated!</p>
