• 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: Two AUHALs, one ring buffer, and one AU filter. But no sound.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two AUHALs, one ring buffer, and one AU filter. But no sound.


  • Subject: Re: Two AUHALs, one ring buffer, and one AU filter. But no sound.
  • From: Jeff Moore <email@hidden>
  • Date: Wed, 7 Jul 2004 11:45:16 -0700

On Jul 7, 2004, at 3:50 AM, Sven Behne wrote:

Am 01.07.2004 um 16:45 schrieb William Stewart:

This is why you use the varispeed between the input and the output
side.

The varispeed's rate is set as the relationship between the rate scalar
of the input and output devices...

We're preparing some sample code that does this

Bill


Bill,

is the varispeed you're writing about the "mRateScalar" member of the
AudioTimeStamp?

Specifically, you have to resample the data from the slave devices to match the rate scalar of the master device.

And if that should be the case:
- Is mRateScalar = nomimal sample rate / actual sample rate?

The rate scalar that the HAL vends is the ratio between the observed number of host clock ticks per sample and the nominal number of host clock ticks per sample.

- If you start an AudioDevice, how long does it take until mRateScalar
is "stable"?

It depends on the hardware involved. Most are stable within some small number of laps around the ring buffer. Some less. Some more. Usually, FireWire and PCI hardware stabilize the fastest as they have the finest grained clocks.

Also, don't forget that this is a dynamic thing. The amount of clock drift can and does change as a function of time, especially if an external synch source is involved.

--

Jeff Moore
Core Audio
Apple
_______________________________________________
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.


References: 
 >HAL Output IOProc and multiple AudioBuffers (From: Sven Behne Listen <email@hidden>)
 >Re: HAL Output IOProc and multiple AudioBuffers (From: William Stewart <email@hidden>)
 >Re: HAL Output IOProc and multiple AudioBuffers (From: William Stewart <email@hidden>)
 >Re: Two AUHALs, one ring buffer, and one AU filter. But no sound. (From: Sven Behne <email@hidden>)

  • Prev by Date: Confused about AUBufferList.PrepareBuffer
  • Next by Date: Re: How to alter playback rate?
  • Previous by thread: Re: Two AUHALs, one ring buffer, and one AU filter. But no sound.
  • Next by thread: AUGraphRemoveNode and kAudioUnitUninitializeSelect
  • Index(es):
    • Date
    • Thread