Re: Audio problem
Re: Audio problem
- Subject: Re: Audio problem
- From: Brad Ford <email@hidden>
- Date: Mon, 12 Feb 2007 10:19:01 -0800
On Feb 12, 2007, at 10:11 AM, Sandeep Chandna wrote:
Hi,
I am using SCAudioFillBuffer to encode my audio in QDesign
format but am facing a weird issue.
If I set the number of packets to 50 , SCAudioFillBuffer
returns me lesser number of packets than expected and so I get
blank audio in the end.
QDesign audio packets are huge. There very likely isn't 50 packets
worth of source material if you're getting less than you asked for.
Whereas if I set the number of packets to 5, the behaviour
is undefined. Sometimes encoded file has full audio, at other times
SCAudioFillBuffer keeps returning
blank data endlessly and I have to forcibly terminate the
loop. I am setting the endOfStream in the mySCAudioCallBack
properly , is SCAudioFillBuffer broken for
QDesign ? or am I missing something ?
This is a quirky behavior of QDesign. SCAudio doesn't expose a
property to ask the minimum number of packets required by a format,
but AudioConverter does, so you could verify this behavior by
substituting your SCAudioFillBuffer stuff with
AudioConverterFillComplexBuffer on an AudioConverter instance. I
believe QDesign requires a minimum of 10 packets.
-Brad Ford
QuickTime Engineering
Please help!
Thanks
Sandeep
_______________________________________________
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
_______________________________________________
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: | |
| >Audio problem (From: "Sandeep Chandna" <email@hidden>) |