• 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: AudioConverter strategic decision
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioConverter strategic decision


  • Subject: Re: AudioConverter strategic decision
  • From: William Stewart <email@hidden>
  • Date: Mon, 27 Sep 2004 10:55:00 -0700



On 25/9/04 11:07 AM, "Marc Van Olmen" <email@hidden> wrote:

> hi,
>
> I have some old code that I want to modernize with coreAudio.
>
> I noticed that CoreAudio has an AudioConverter API, I current am using
> the SoundManager SoundConverter API.
>
> I mainly playback tracks from QuickTime Movies, to be more specific DV,
> DVPro and AAC.
>
> Going quickly through the documentation and sample code.
>
> It looks very similar to my current VBR safe Soundconverter code. But
> there is some new initalization setup etc... So I'm thinking of doing
> the switch in the next couple weeks.
>
> But first I have some questions:
>
> 1. Is the AudioConverter thread safe? I know that Sound Converter is
> not.

No - deliberately not... If you are using it from multiple threads, then
call it in a thread-safe manner.

>
> 1b. Can i for example use Semaphores to sleep the GetDataProc callback
> when no data is available?

With the AC you just return an error and no data when you have no data
available... You may get called a few times (just keep returning)... Then
your ACFillCompexBuffer call will return = and you put that to sleep.. When
you have more data, just call it again and it will continue from where you
left off.

>
> 2. I'm aware that audioconverter doesn't implement all codecs, I don't
> think that it does DV natively?

Correct. DV is not a codec, it is a way to layout PCM data in a container.
Quite a difference.

>
> 3. I read somewhere that the AudioConverter API will rely on the
> SoundConverter API in case it can't find a native coreAudio codec. Does
> that keeps my code thread safe??

See (1)

>
> 4. Is there any code to convert any SoundManager Atom's to
> MagicCookies? I saw one sample for MPEG4-AAC

Not at this stage - we are adding some properties to generically convert
between ESDS and the CA Structures.

>
> 5. Is there anywhere some sample code that plays any QT movie Audio
> track using the AudioConverter API.

There's some basic code to get you started in the CA SDK - take a look in
the AudioFileTools directory.

Bill

>
> thx for your time,
>
> mvo
>
>  _______________________________________________
> 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

__________________________________________________________________________
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
__________________________________________________________________________



 _______________________________________________
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: 
 >AudioConverter strategic decision (From: Marc Van Olmen <email@hidden>)

  • Prev by Date: Re: channel mapping a Varispeed audio unit
  • Next by Date: Re: AudioConverterNew unknown error
  • Previous by thread: AudioConverter strategic decision
  • Next by thread: AudioConverterNew unknown error
  • Index(es):
    • Date
    • Thread