• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OpenADefaultComponent for Audio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenADefaultComponent for Audio


  • Subject: Re: OpenADefaultComponent for Audio
  • From: Brad Ford <email@hidden>
  • Date: Mon, 5 Mar 2007 07:29:43 -0800


On Mar 5, 2007, at 1:29 AM, Sandeep Chandna wrote:

Hi ,

In my audio encoding application (with SCAudioFillBuffer API ) I am using OpenADefaultComponent for creating a componentInstance.

OpenADefaultComponent(StandardCompressionType, StandardCompressionSubTypeAudio, &ci);

I call OpenADefaultComponent few times to query the names of codecs, creating a componentInstance for each codec etc and then for final Encode. The first time I do this, everything works just fine with proper encoded output.

But when I do the whole thing again (for second encode) , OpenADefaultComponent always returns me -108 (iMemFullErr) and sets ci=NULL. I have sufficient RAM in my system. When I re-launch the application again, the first encode goes fine and after that OpenADefaultComponent starts returing -108.

What could be going wrong here ? I am calling CloseComponent for every OpenADefaultComponent call. Is there anything else I need to free/initialize? Has anyone else faced this issue before ?

QuickTime Player opens that component repeatedly without ill effects. You can open it repeatedly in WhackedTV sample code as well. I think you need to look elsewhere in your code.


-Brad Ford
QuickTime Engineering


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: 
 >OpenADefaultComponent for Audio (From: "Sandeep Chandna" <email@hidden>)

  • Prev by Date: Re: Float32 PCM to AIFF error
  • Next by Date: Re: Question on MTCoreAudio
  • Previous by thread: OpenADefaultComponent for Audio
  • Next by thread: Capturing audio with playthrough question (ComplexPlayThrough sample)
  • Index(es):
    • Date
    • Thread