Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: AudioConverterFillComplexBuffer failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioConverterFillComplexBuffer failure



Doug, thanks for your reply.

I am setting the packet count and filling out that number of packet descriptions.
And, with no return, I don't get any error code, !pkt, or any other.

The code (which follows the attempt to set ioData values) is as follows:

*outDataPacketDescription = callBack->outPcktDescPtr;
callBack->outPcktDescPtr->mStartOffset = 0;
callBack->outPcktDescPtr->mVariableFramesInPacket = 1;
callBack->outPcktDescPtr->mDataByteSize =  nn * callBack->outBytsPerInPckt;
( where nn = # input packets = 1 in my test case )

In debug, observing *outDataPacketDescription immediately following this code snippet shows:
  
  outDataPacketDescription :        0xbfffe6a8
    *outDataPacketDescription :     0xbfffe950
       mStartOffset :                             0
       mVariableFRamesInPacket : 1
       mDataByteSize :                       9216 

Are you suggesting that outDataPacketDescription needs to be an array of (in this case) 1152 packet descriptions such that:
    mVariableFRamesInPacket = 1  in each,
    mDataByteSize = 8 in each, and
     mStartOffset indexes by 8 with each packet description  ?

Don

On Jul 20, 2009, at 2:44 PM, Doug Wyatt wrote:

In your input callback, you should be setting the packet count and filling out that number of packet descriptions. Are you doing that?

On Jul 20, 2009, at 12:09 , dct wrote:

As reported earlier in the thread "Endless loop running AudioConverterFillComplexBuffer", I have a situation where, once called, AudioConverterFillComplexBuffer calls the inputProc once and then fails--neither calling inputProc again nor returning.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >AudioConverterFillComplexBuffer failure (From: dct <email@hidden>)
 >Re: AudioConverterFillComplexBuffer failure (From: Doug Wyatt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.