Audio Samples Format

Hello,

I’m in need of information regarding the specifics of the audio samples that are passed to OnAudioFilterRead(). I’m looking to take these samples and feed them into an iOS native plugin I am creating. To do this I need to be able to determine the following information:

Code:

    // Setup the format for audio samples coming from Unity.
        //audioFormat.mSampleRate = 44100;
        audioFormat.mSampleRate = 24000;
        audioFormat.mFormatID   = kAudioFormatLinearPCM;
        audioFormat.mFormatFlags = kAudioFormatFlagIsFloat | kAudioFormatFlagIsPacked;
        audioFormat.mFramesPerPacket = 1;
        audioFormat.mChannelsPerFrame = 2;
        audioFormat.mBitsPerChannel = 32;
        audioFormat.mBytesPerPacket = 8;            
        audioFormat.mBytesPerFrame = 8;

I’ve put my best guess in as to values these should be, but these are not giving me the expected result.

Any help would be greatly appreciated.

Thanks!
Mal

Any chance of having Wayne or Jan to weigh-in on this question? I believe it should be pretty quick to answer.

Thanks!

Mal