Re: AudioCodec, ProduceOutputpackets and ioOutputDataByteSize
Re: AudioCodec, ProduceOutputpackets and ioOutputDataByteSize
- Subject: Re: AudioCodec, ProduceOutputpackets and ioOutputDataByteSize
- From: William Stewart <email@hidden>
- Date: Thu, 11 May 2006 13:00:23 -0700
On 11/05/2006, at 6:44 AM, Mike Erickson wrote:
On May 10, 2006, at 2:29 PM, email@hidden
wrote:
There could be lots of reasons. For instance, you don't say how you
are filling out the ASBD for the format your encoder. For VBR
formats, you should be specifying pretty much the whole ASBD as zero
save for the sample rate, format ID and number of channels (and flags
if you are using any).
Thats exactly what I'm doing for VBR. All zeros except channels,
sample rate and format.
So, you have variable frames per packet and variable bytes per
packet. Make sure you provide both values in the packet descriptions
you pass out.
Also, from looking at the AudioConverter's code, it looks as if the
packet descriptions won't get asked for if the caller of the
AudioConverter didn't ask for them. What are you using to test your
codec with?
ConvertFile from the SDk gives them to me if I compile it with
UseAC-AF. afconvert doesn't give them to me.
There must be some discrepancy - if you can send us a build of your
codec we can probably tell you what's going on
Thanks
Bill
Mike
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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