Skip to main content

What advantage do you get from increasing or decreasing the buffers for a DAW's audio engine? I know too much will hog your resources and too little will cause hickups and other unwanted artifacts. Is this an issue with some or all DAW programs? I'm just curious about how some of you handle this delima as well as what's your secret remedy for this? The responses will hopefully help all of us here. Thanks :)

Topic Tags

Comments

David French Fri, 10/15/2004 - 14:20

This can indeed be a dilemma. Here's my view on it. Small buffer sizes give you the benefit of low latency at a cost of CPU usage. Large buffers take less CPU, but creates longer latency. It's a good idea to have two different presets for buffer sizes: one with small sizes for monitoring DSP effects and one with larger buffer sizes for mixing. I found my best settings by starting with very large buffers, then lowering them step by step until things started to get unstable. Then, I increased the buffer size a bit and that became my DSP monitoring preset. Then, I picked a fairly arbitrary larger buffer setting to use as my mixing preset. In monitoring mode, I get 3 msec latency (at 44.1) and in mixing mode about 20. If I remember correctly, you're using Cubase/Nuendo. So am I, so if you'd like, I could tell you exactly how I set up mine.

David French Sat, 10/16/2004 - 12:40

This is how I did it with Cubase SX 2.0 and an M-Audio Delta-66 soundcard, but it should be similar for other soundcards or for other programs.

Open Cubase or Nuendo’s ASIO Multimedia Setup utility (wpsetup.exe). Click ‘Advanced Options’.

Open your hardware’s configuration utility and set the DMA buffer size to its largest setting.

Start with your sync reference set to either ‘Sample Position – Input’ or ‘Sample Position – Output’. If you lose sync fairly early during the process, switch to the other one. If both are losing sync early, switch to ‘DMA Block’ as a last resort. FWIW, ‘Sample Position – Input’ is the one that worked for me.

I used five buffers in the ASIO Multimedia Setup because anything less caused premature loss of sync. This may be different for you, but I’d recommend starting with five buffers.

And now for the Algorithm:

1. Select an output port. Click ‘Detect Buffer Size’. When it returns a value, set all of the output ports to this same amount of samples.

2. Repeat step one for the input ports.

3. Click ‘Run Simulation’.

If the simulation passes, lower the DMA buffer size of your hardware and repeat steps 1-3. If the simulation fails, revert back to the values from the last iteration. This setting should be your lowest safe latency.

This algorithm has allowed me to achieve a latency of 3 msec with no loss of sync. I hope this works as well for all of you as it has for me.

sproll Fri, 01/07/2005 - 09:21

Bringin up an older post here...

Hey David, when you say in your instructions under the algorithm part to select an output port (or input) and run simulation, do you mean you only have a check in the box next to the port you are testing, or that you are only highlighting one port and have all the ports checked off?

Just curious.