When calling AudioUnitRender, we're passing a list of AudioBuffers:

​  ​
struct AudioBuffer
​  ​
{
    UInt32  mNumberChannels; // <-- why this?
    UInt32  mDataByteSize;
    void*   mData;
​  ​
};

Why does it
​ have to​
contain
​ an​
mNumberChannels
​ member?​
​
​
​

After all, we've already set up the stream format with an
AudioStreamBasicDescription
​, including ​
mChannelsPerFrame
​:​


​  ​
struct AudioStreamBasicDescription
​  ​
{
    Float64             mSampleRate;
    AudioFormatID       mFormatID;
    AudioFormatFlags    mFormatFlags;
    UInt32              mBytesPerPacket;
    UInt32              mFramesPerPacket;
    UInt32              mBytesPerFrame;
    UInt32              mChannelsPerFrame; // <-- ... when we have this?
    UInt32              mBitsPerChannel;
    UInt32              mReserved;
​  ​
};

​Thanks.​
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to