i have AudioQueueBuffer's Audio Data which has void * const format. i want short array (short *) Audio data for my codec.
How to Convert void * const to Short * in Objective c??? type cast from void to short possible ? or i have to use some byte order conversion like OSReadBigInt16??? if so sample for conversion? please help me to find solution.
Yes, Objective-C is just like C for typecasting. That means if you want to interpret your
void *pointer as ashort *pointer, all you need to do is:If the bytes aren't in the right order (ie, endianness mismatch), you'll need to deal with that too - there's no way to tell if that's the case based on the information in your question, though.