• 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: Dropouts while Graph is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dropouts while Graph is running


  • Subject: Re: Dropouts while Graph is running
  • From: William Stewart <email@hidden>
  • Date: Fri, 3 Mar 2006 11:29:27 -0800

The drop outs are likely to be caused by your graph taking too much time and overshooting its deadline. The overload proc will tell you exactly this.

You can also look at the CPU loads of AUGraph as well, but this is less precise.

On 03/03/2006, at 11:16 AM, Geoff Hufford wrote:

On 3/2/06 5:49 PM, "William Stewart" <email@hidden> wrote:

It sounds to me like you are overloading... Have a look at the
PlaySequence sample code - it installs an overload listener and you
should too.

I didn’t hook it up yet but I don’t understand what I will learn with the
listener proc? It looks like I need to get AudioDevice from the output unit.
And with that I can set up an OverlaodListenerProc.


AudioUnitGetProperty - kAudioOutputUnitProperty_CurrentDevice
AudioDeviceAddPropertyListener - OverlaodListenerProc


I also see the call to AudioDeviceSetProperty -
kAudioDevicePropertyBufferFrameSize. What is the expected result of changing
the device buffer size.

Each I/O Proc is sized to some number of sample frames - the default for 44.1KHz is 512. By making this number bigger you increase your latency, by making it smaller you decrease it. Smaller I/O cycles put more load on the system as well (and generally also mean that you can do less for various reasons) - so its a trade off. Normally, I would not change this.


If you want to experiment with this - have a look at this in AULab (/ Developer/Applications/Audio/) in the Pref there's an AudioDevice tab where you can set this

Bill


Geoff


--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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: 
 >Re: Dropouts while Graph is running (From: Geoff Hufford <email@hidden>)

  • Prev by Date: Re: AudioUnitRender error
  • Next by Date: Streaming Graph to file
  • Previous by thread: Re: Dropouts while Graph is running
  • Next by thread: Core Audio/Midi sync accuracy?
  • Index(es):
    • Date
    • Thread