• 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: frame count, audio output unit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frame count, audio output unit


  • Subject: Re: frame count, audio output unit
  • From: David Duncan <email@hidden>
  • Date: Mon, 19 Apr 2004 23:15:57 -0400

On Apr 19, 2004, at 11:01 PM, john wrote:

> Thanks for the reply. It definitely is passing that value as the
> inNumFrames parameter. However, I changed the AU setup code to use
> FindNextComponent() and OpenAComponent() instead of
> OpenDefaultAudioOutput() and now it passes the correct amount of
> frames.
>
> Here's the AU output setup code where it's weird, what's the problem
> with this?
>
> AURenderCallbackStruct inputCallbackStruct;
>
> if (!OpenDefaultAudioOutput(&theAudioOutput))

When you use OpenDefaultAudioOutput(), you get a V1 output unit, which
expects a different callback signature. From looking in the headers it
looks like inNumFrames would have actually be your AudioBufferList*
(and I'm not certain how your code would have worked in that case
either). When you switched to FindNextComponent() & OpenAComponent()
you get a V2 audio unit, which works as you expect.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: frame count, audio output unit
      • From: john <email@hidden>
References: 
 >Compiler error with lastest CA-SDK and CW 9.2 (From: "Michael Kleps [reFX]" <email@hidden>)
 >Internal Microphone (From: Ashish Jain <email@hidden>)
 >Re: Internal Microphone (From: Michael Thornburgh <email@hidden>)
 >mDataByteSize == 0? (From: john <email@hidden>)
 >Re: mDataByteSize == 0? (From: Michael Thornburgh <email@hidden>)
 >Re: mDataByteSize == 0? (From: Jeff Moore <email@hidden>)
 >frame count, audio output unit (From: john <email@hidden>)
 >Re: frame count, audio output unit (From: David Duncan <email@hidden>)
 >Re: frame count, audio output unit (From: john <email@hidden>)

  • Prev by Date: Re: frame count, audio output unit
  • Next by Date: Re: frame count, audio output unit
  • Previous by thread: Re: frame count, audio output unit
  • Next by thread: Re: frame count, audio output unit
  • Index(es):
    • Date
    • Thread