Hi,
I'm moving to a new partition on my Mac which now has Tiger installed. When I compile my project that was working under Panther, though, I get errors in the AU headers. For example, this code:
AudioBufferList & SetBufferList(const AudioBufferList &abl) { if (mAllocatedStreams < abl.mNumberBuffers) COMPONENT_THROW(-1); mPtrState = kPtrsToExternalMemory; memcpy(mPtrs, &abl, offsetof(AudioBufferList, mBuffers[abl.mNumberBuffers])); return *mPtrs; }
produces two errors:
AUBuffer.h: In member function `AudioBufferList& AUBufferList::SetBufferList(const AudioBufferList&)': AUBuffer.h:85: error: 'abl' cannot appear in a constant-_expression_ AUBuffer.h:85: error: `.' cannot appear in a constant-_expression_
The first is for the symbol "&abl", while the second is for the symbol "abl.mNumberBuffers".
Is there some setting I need to change somewhere under Tiger to make this compile the way it does under Panther?
Thanks, -Howard
|