Helpful ReplyManual vs Audio Driver Latency Offset

Author
Voda La Void
Max Output Level: -76 dBFS
  • Total Posts : 723
  • Joined: 2011/02/12 09:15:07
  • Location: Broken Arrow, OK
  • Status: offline
2018/02/05 20:53:22 (permalink)

Manual vs Audio Driver Latency Offset

Reading about testing round trip latency to determine how accurate the audio driver is reporting.  Seems as simple as recording or loading a simple audio clip, then routing the output of the interface to an input of the interface and record to a new track and observe the delay in samples.  
 
Ok, I can do that...but doesn't the latency change as a project evolves, adding and removing tracks, muting and playing back multiple tracks, recording 10 or more tracks at once..and etc.?  I don't see how I can enter a static number for latency offset while latency remains dynamic.
 
I like the idea of testing and making latency calculations more precise, but I thought the audio driver was continuously handling the dynamics of latency as the project evolves.  Am I way off on this?  

Voda La Void...experiments in disturbing frequencies...
#1
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/05 21:22:28 (permalink) ☄ Helpfulby Voda La Void 2018/02/05 21:25:37
I use the manual offset to adjust the ASIO reported latency. Every interface I have used needed an offset. Centrance provides a utility to perform test. The latency reported by the driver and the offset are static values. The only latency that changes on a per-project basis is the Plug-in Delay Compensation. PDC has nothing to do with the driver and offset values.
#2
tlw
Max Output Level: -49.5 dBFS
  • Total Posts : 2567
  • Joined: 2008/10/11 22:06:32
  • Location: West Midlands, UK
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/05 22:12:22 (permalink)
The audio driver attempts to operate with the latency you set. If the project demands more from the computer than the computer can provide as regards preventing the buffer from emptying you get crackles, drop-outs etc. Until you are asking more of the computer than it can handle adding audio tracks won’t make much if any difference. Sonar, like other DAWs, does not handle the buffer setting “dynamically”, it simply attempts to pass data through the driver.

Plugins can add latency if they need more time to do their thing than the buffer and computer can handle. Some plugins have a fixed amount of latency which sometimes can be quite high (in a few cases as high as a second or more). Sonar, like pretty much every DAW, compensates for the time required by extending the latency time to take account of them.

The manual latency offset is there to deal with the situation that the ASIO driver doesn’t report the latency correctly to Sonar or the interface/driver places audio in not quite the right time-slot for some reason. The latency isn’t reported correctly by some interfaces because they contain a “hidden” safety buffer with a fixed value in time/samples, which can sometimes be quite significant. If that field needs an entry in it a single fixed amount will usually work for all buffer settings.

Sonar Platinum 64bit, Windows 8.1 Pro 64bit, I7 3770K Ivybridge, 16GB Ram, Gigabyte Z77-D3H m/board,
ATI 7750 graphics+ 1GB RAM, 2xIntel 520 series 220GB SSDs, 1 TB Samsung F3 + 1 TB WD HDDs, Seasonic fanless 460W psu, RME Fireface UFX, Focusrite Octopre.
Assorted real synths, guitars, mandolins, diatonic accordions, percussion, fx and other stuff.
#3
Cactus Music
Max Output Level: 0 dBFS
  • Total Posts : 8424
  • Joined: 2004/02/09 21:34:04
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/05 22:13:36 (permalink) ☄ Helpfulby Soundwise 2018/02/07 00:46:25
A good ASIO driver will report to Sonar the needed offset and most of the times this will be within a few samples. It's so close as to not worry about it.
Being 10" from your mike will do the same thing. 
You certainly wold not want to use anything but ASIO mode. 
Here is one of my loopback tests with my Tascam and Scarlett.  


Johnny V  
Cakelab  
Focusrite 6i61st - Tascam us1641. 
3 Desktops and 3 Laptops W7 and W10
 http://www.cactusmusic.ca/
 
 
#4
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/05 22:28:27 (permalink)
Given how easy the the fix is, I don't see why one would be satisfied with an incorrect latency value. This is even more important when using multiple interfaces as some under-report and some over-report latency. I would imagine over time, all of us use more than one interface and having the correct latency setting insures the clips are lined up correctly regardless of the interface used.
#5
Voda La Void
Max Output Level: -76 dBFS
  • Total Posts : 723
  • Joined: 2011/02/12 09:15:07
  • Location: Broken Arrow, OK
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/06 13:39:04 (permalink)
Thanks guys.  I feel a lot better about this now.  It sounds like I don't have much to lose by testing the latency and at least compare it to what my driver is reporting.  If it's off, I might as well fix it. 
 
And it doesn't sound like interface latency settings are a dynamic evolving parameter like I thought - thanks for clearing that up.  Any dynamics in latency associated with other things appear to be dealt with by the DAW, so that's comforting.
 
Latency really becomes an issue for fast percussive instrumentation and I want to aim for the best precision that is reasonably possible.  Was reading a helpful thread in another forum, that I am not a member of, and the guy was setting his offset based on a microphone sitting next to his ear, aimed at the monitors he would be listening to when tracking guitar.  The difference between the speakers and his head adding 1.8 ms - and he figured that in. 
 
That might be a little much for me, but I admire the commitment, ha ha.   
 
 
 
 

Voda La Void...experiments in disturbing frequencies...
#6
Cactus Music
Max Output Level: 0 dBFS
  • Total Posts : 8424
  • Joined: 2004/02/09 21:34:04
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/07 00:15:04 (permalink)
I would think 1.8 ms is well below the threshold of what we should be worrying about. I start to hear latency at around 7ms. I guess it comes down to wanting music that is perfect, I would think perfect music would belong in an elevator :) 

Johnny V  
Cakelab  
Focusrite 6i61st - Tascam us1641. 
3 Desktops and 3 Laptops W7 and W10
 http://www.cactusmusic.ca/
 
 
#7
Soundwise
Max Output Level: -62 dBFS
  • Total Posts : 1419
  • Joined: 2015/01/25 17:11:34
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/07 00:53:37 (permalink)
I encountered weird latency on Sonar. I thought it's some temporary system issue, but after a few days I checked my 6i6 in other DAWs and standalone programs - all perform as usual, that is virtually unnoticeable latency with low buffer settings (32 to 128 on my 6i6). Sonar not only monitors sounds with a huge latency, but also records both audio and MIDI with a huge offset. Any clue on how to fix this?

Anderton
We are all unique and have our own contributions to make to this planet.

SoundCloud
YouTube
BandLab
#8
Voda La Void
Max Output Level: -76 dBFS
  • Total Posts : 723
  • Joined: 2011/02/12 09:15:07
  • Location: Broken Arrow, OK
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/07 03:11:40 (permalink)
Cactus Music
I would think 1.8 ms is well below the threshold of what we should be worrying about. I start to hear latency at around 7ms. I guess it comes down to wanting music that is perfect, I would think perfect music would belong in an elevator :) 




Well, I can't speak for others, but in my case it's not about music being perfect or I would just record MIDI notes from an electronic kit and quantize.  Instead, it's this weird sensation of the sound of my drums slightly behind the feel of them.  I worked through several songs like this and I could never quite accept the delay between hitting and hearing.  It's not that noticeable, but it's just enough to never feel "on" and in the pocket when listening through the isolation cans.  Electronic drums felt the same way.   

Voda La Void...experiments in disturbing frequencies...
#9
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/07 03:43:33 (permalink)
You have changed the subject from recording audio to recording MIDI. The manual offset affects the location of recorded audio on the timeline.
 
When using an ASIO driver the offset is intended to correct the reported driver latency. As I mentioned above some drivers over-report and some under-report latency. My current interface over-reports latency by 21 samples. My last interface under-reported by 76 samples.
 
I suppose the setting could be used any way you wish but I have never heard of anyone using it to address the distance between a listener and the monitors. Not sure that is a good idea.
 
FWIW, here are a couple of threads about the setting
http://forum.cakewalk.com/FindPost/1301345
http://forum.cakewalk.com/FindPost/3178396
 
#10
Voda La Void
Max Output Level: -76 dBFS
  • Total Posts : 723
  • Joined: 2011/02/12 09:15:07
  • Location: Broken Arrow, OK
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/07 14:02:06 (permalink)
scook
You have changed the subject from recording audio to recording MIDI. The manual offset affects the location of recorded audio on the timeline.
 
When using an ASIO driver the offset is intended to correct the reported driver latency. As I mentioned above some drivers over-report and some under-report latency. My current interface over-reports latency by 21 samples. My last interface under-reported by 76 samples.
 
I suppose the setting could be used any way you wish but I have never heard of anyone using it to address the distance between a listener and the monitors. Not sure that is a good idea.
 
FWIW, here are a couple of threads about the setting
http://forum.cakewalk.com/FindPost/1301345
http://forum.cakewalk.com/FindPost/3178396
 



Yeah, I won't be setting mine to deal with the distance between a listener and the monitors.  I did think it was pretty interesting that he went that far with it, and seemed to understand what he's doing.  Mostly I'm about getting the drum tracks locked in and they will always be tracked with my isolation cans on.  
 
Here's the link to the thread if you are interested:  https://forum.cockos.com/showthread.php?t=48884

Voda La Void...experiments in disturbing frequencies...
#11
DeeringAmps
Max Output Level: -49 dBFS
  • Total Posts : 2614
  • Joined: 2005/10/03 10:29:25
  • Location: Seattle area
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/07 15:06:05 (permalink)
I have occasionally seen a 1 sample "error" with my RME UFX and Babyface (at 44.1).
I assume at 88 or 96k it would be "spot on".
Its all about the drivers...
 
T

Tom Deering
Tascam FW-1884 User Resources Page
Firewire "Legacy" Tutorial, Service Manual, Schematic, and Service Bulletins

Win10x64
StudioCat Pro Studio Coffee Lake 8086k 32gb RAM

RME UFX (Audio)
Tascam FW-1884 (Control) in Win 10x64 Pro
#12
Cactus Music
Max Output Level: 0 dBFS
  • Total Posts : 8424
  • Joined: 2004/02/09 21:34:04
  • Status: offline
Re: Manual vs Audio Driver Latency Offset 2018/02/07 18:43:08 (permalink)
Yes midi delay is a whole other kettle of fish. The solution to your problem is always direct monitor the Drum Brain while tracking. It's easy to find out is there is latency, just toggle the VST drum Input echo as you play. You'll hear the digital delay. I agree even a tiny bit is annoying with drums. Never had a issue with keyboard.  
So I keep my kit patched into my monitor mixer and keep input echo off on AD2. 
 
Back on topic. 
 
  • Milliseconds X the sample rate = # of samples In the example, if the delay between a pair of room microphones and a soundboard feed in the record's home studio is 17 milliseconds of delay (based 17 feet of distance), the formula becomes:17 times 44.1 = 749.7 samples.  
In this case, the recorder enters a sample delay of 749.70 samples into the software for the closest source to time-align the sources.
    • Samples divided by ​the sample rate = milliseconds   
    • so if a loopback test track is out by 44 samples it is about 1 ms not really noticeable, but a track out by 440 ms is 10 ms so would be very noticeable.  This is why the loopback test is important and even if you don't find anything out of sorts I think it's important to understand your system and how it's performing. In my case both my interfaces were only out by under 10 ms so there was not great need to adjust the timing manually.                  

Johnny V  
Cakelab  
Focusrite 6i61st - Tascam us1641. 
3 Desktops and 3 Laptops W7 and W10
 http://www.cactusmusic.ca/
 
 
#13
Jump to:
© 2024 APG vNext Commercial Version 5.1