I have a function that expects a parameter of type float**, but I do not know how to declare and initialize this variable.
Can anyone give me any advice on this? Better yet, what type of variable is it? I have been looking into it for days now and any search results comes up empty.
Thanks
EDIT
Here is the function in question
- (OSStatus)getBuffersInner:(float**)buffers numberOfBuffers:(int)chnls samples:(int)samples
{
int i, j ;
UInt32 frames ;
// zero out requested buffers if client needs more channels than exist in the channel map
for ( i = numberOfMappedChannels; i < chnls; i++ ) memset( buffers[i], 0, samples*sizeof( float ) ) ;
// place buffer pointers into bufferList, following the channelMap
for ( i = 0; i < fileDescriptor.mChannelsPerFrame; i++ ) {
j = inverseChannelMap[i] ;
resampledBufferList.list.mBuffers[i].mData = ( j < 0 || j >= chnls ) ? zeros : buffers[j] ;
}
frames = samples ;
return ExtAudioFileRead( audioFileRef, &frames, &resampledBufferList.list ) ;
}
It is float[n][m] matrix. Something like int main(int argc, char **argv), where argv is an array of ‘strings’, an array of arrays of char.