• 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: CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO


  • Subject: Re: CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO
  • From: Jonatan Liljedahl via Coreaudio-api <email@hidden>
  • Date: Mon, 20 Jan 2020 19:24:06 +0100

On Mon, Jan 20, 2020 at 6:36 PM Arshia Cont via Coreaudio-api
<email@hidden> wrote:

> You get the following from AVAudioSession:
> inputLatency
> outputLatency
> ioBufferDuration
>
> Then your throughput latency, assuming a Stereo Stream, would be:
> inputLatency + outputLatency + 4*ioBufferDuration

I did the same, but I arrived at inputLatency + outputLatency + 2 *
ioBufferDuration!

> In case inputLatency > ioBufferDuration, you add one more ioBufferDuration.
> Same with outputLatency! This means that when lowering your ioBufferDuration,
> your Session mode becomes important (which directly affects input and output
> latencies). The lowest you can achieve would thus be with the Measurement
> Mode.

So you mean the formula would be:

inputLatency + outputLatency + (inputLatency > ioBufferDuration ? 5 :
4) * ioBufferDuration

Do you have an explanation why?

--
/Jonatan
http://kymatica.com
 _______________________________________________
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: CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO
      • From: Arshia Cont via Coreaudio-api <email@hidden>
References: 
 >CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO (From: Eric Herbrandson via Coreaudio-api <email@hidden>)
 >Re: CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO (From: Arshia Cont via Coreaudio-api <email@hidden>)

  • Prev by Date: Re: CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO
  • Next by Date: Re: CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO
  • Previous by thread: Re: CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO
  • Next by thread: Re: CoreAudio: Calculate total latency between input and output with kAudioUnitSubType_VoiceProcessingIO
  • Index(es):
    • Date
    • Thread