• 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: A number of simple questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A number of simple questions


  • Subject: Re: A number of simple questions
  • From: Paul Davis <email@hidden>
  • Date: Wed, 14 Nov 2012 18:15:44 -0500



On Wed, Nov 14, 2012 at 6:08 PM, Seth Willits <email@hidden> wrote:


- Why is AudioTimeStamp.mSampleTime a float if it's an integer number of samples?

- Will all AudioUnits automatically have their input and output stream formats set to the cannonical form?

- Can you ask an AudioUnit to render the same timestamp multiple times, or might a unit upstream depend on the timestamp being monotonic?

an AU doesn't have to pay any attention to a timestamp. it can do if it wants to. the host/graph cannot force this behaviour. if the AU cares about "position on a timeline" it has to ask the host/graph for the current position.
 

- When choosing and setting an LPCM stream format, is there any reason to not set mFramesPerPacket to 1?

- For an audio player unit, I noticed that in the ScheduledAudioFileRegion structure, mFramesToPlay is UInt32. This seems strange because that limits files to being less than 12 hours long at 96khz doesn't it? Seems odd.

its true of a number of popular audio file formats. thankfully not all. probably a "legacy design choice".
 

- How many frames should I render at a time?

its not your decision. your AU's render callback will be called by the host (or, if part of a graph, by the graph). you need to render whatever it tells you to.
 _______________________________________________
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

  • Follow-Ups:
    • Re: A number of simple questions
      • From: Seth Willits <email@hidden>
References: 
 >A number of simple questions (From: Seth Willits <email@hidden>)

  • Prev by Date: A number of simple questions
  • Next by Date: Re: A number of simple questions
  • Previous by thread: A number of simple questions
  • Next by thread: Re: A number of simple questions
  • Index(es):
    • Date
    • Thread