dashersw / pedalboard.js

Open source JavaScript framework for developing audio effects for guitars using the Web Audio API.

Home Page:dashersw.github.com/pedalboard.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Realtime Latency

devryan opened this issue · comments

Hello,

I understand that there is supposed to be realtime-ish latency (such as what you achieve in a desktop application), however when I try the demos, especially the "Live Feed", while it is close to realtime, there is still a tiny delay. This is on Chrome 34.x on Windows and Linux.

Is there anything that can be done to counter this small delay?

Move to a Mac. :)

Seriously, though. Windows audio in Chrome is still based on shared WASAPI, which has a significant latency; Linux Chrome latency varies, but is generally considerably higher.

OSX latency using Core Audio is in the under-10ms range, which is acceptable. Round-trip latency on Windows is several times that. We're working on it, but it's challenging across the wealth of audio hardware out there.

One thing you CAN try is jacking up your sample rate on your device - that will generally lower your latency, at the cost of CPU (and potential glitching).

Thank you Chris! That pretty much sums it up actually; we're begging vendors to come up with a universal solution.

I don't know if there will be a single, under-the-hood universal solution; on Windows, it's mostly a choice between exclusive mode with low latency or shared mode with higher latency (or moving to ASIO, which requires driver support).

Thanks for the feedback guys. The delay is not a huge amount, but it's just enough to make it awkward when jamming to a song, and listening to your guitar.

Jack up your sample rate, if you can. Doubling your sample rate should halve your latency.

One thing you CAN try is jacking up your sample rate on your device - that will generally lower your latency, at the cost of CPU

Jack up your sample rate, if you can. Doubling your sample rate should halve your latency.

Where in the code can I up this? Do you mean setting the default sample rate for the device via Windows software, or what? Sorry a little confused. My recording device goes to 192khz, so I wonder if I can actually use that rate when recording in the browser, if the latency would drop that much more.

setting your device's default sample rate in the Windows settings, yes.
You can't change it from the browser.

On Mon, May 5, 2014 at 7:47 PM, Ryan G notifications@github.com wrote:

One thing you CAN try is jacking up your sample rate on your device - that
will generally lower your latency, at the cost of CPU

Jack up your sample rate, if you can. Doubling your sample rate should
halve your latency.

Where in the code can I up this? Do you mean setting the default sample
rate for the device via Windows software, or what? Sorry a little confused.
My recording device goes to 192khz, so I wonder if I can actually use that
rate when recording in the browser, if the latency would drop that much
more.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-42262311
.