I am trying to use the CoreAudio API, AudioQueueGetProperty Function which has this declaration:
OSStatus AudioQueueGetProperty (
AudioQueueRef inAQ,
AudioQueuePropertyID inID,
void *outData,
UInt32 *ioDataSize
);
I call this function and the pointer outData is an array of Structs of type AudioQueueLevelMeterState as defined:
typedef struct AudioQueueLevelMeterState {
Float32 mAveragePower;
Float32 mPeakPower;
}; AudioQueueLevelMeterState;
My question is this: Can someone please show me an expamle of how to declare a pointer and pass it in to this function, and then access the array of strucs and its members. How do I know how big the array is, how do I declare it, and use it as an array?
I know these are begginners questions, but working with coreaudio, I suddenly have to learn C and pointers to arrays of structs.
Thank you for the help!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden
This email sent to email@hidden