RE: "Audio Queue Service Programming Guide"
RE: "Audio Queue Service Programming Guide"
- Subject: RE: "Audio Queue Service Programming Guide"
- From: GW Rodriguez <email@hidden>
- Date: Sat, 28 Aug 2010 20:48:20 -0400
Ok, after a cool down period from my rant and re-reading and trying to troubleshoot I've found the root of the problem. Its in the created struct that manages the state of the audio file. eg:
static const int kNumberBuffers = 3;
struct AQPlayerState {
AudioStreamBasicDescription mDataFormat;
AudioQueueRef mQueue;
AudioQueueBufferRef mBuffers[kNumberBuffers];
AudioFileID mAudioFile;
UInt32 bufferByteSize;
SInt64 mCurrentPacket;
UInt32 mNumPacketsToRead;
AudioStreamPacketDescription *mPacketDescs;
bool mIsRunning;
};
When I first typed in this code and hit build, I had no errors. After just hitting build a few times, without changing, adding or subtracting any code, I get an error "variably modified 'mBuffers at file scope".
Help????
--
GW Rodriguez
Sound Supervisor
Olney Theatre Center
(c) 909-720-4202
www.gwrodriguez.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden