dechamps / FlexASIO

A flexible universal ASIO driver that uses the PortAudio sound I/O library. Supports WASAPI (shared and exclusive), KS, DirectSound and MME.
Other
1.39k stars 76 forks source link

Loud noise at Ableton startup #179

Open inwardmovement opened 1 year ago

inwardmovement commented 1 year ago

Since FlexASIO installation, this loud noise happens at Ableton startup (be careful, high volume):

https://user-images.githubusercontent.com/9438102/213873788-ba7426a8-65fa-42e9-8b1a-38556d0af071.mov

FlexASIO.log No other ASIO driver installed.

dechamps commented 1 year ago

Your log doesn't show anything wrong so we'll need to dig deeper.

Just to clarify, does Ableton actually start or does it get stuck? If Ableton starts, does the noise continue forever no matter what you do?

Do you have the same problem if you use the default FlexASIO config (i.e. if you rename/remove your FlexASIO.toml file)?

inwardmovement commented 1 year ago

Ableton starts and works just fine. The noise lasts only 1 second. Yes same thing without config file.

dechamps commented 1 year ago

Okay. A couple more questions:

inwardmovement commented 1 year ago

I don't hear any noise when running FlexASIOTest. Yes same problem with sampleType = "Int16" in [input]/[output]

dechamps commented 1 year ago

Mmm.

It's not clear to me what could be causing this. This smells like a bug in Ableton where it feeds the driver garbage, but it's weird that it would only do that with FlexASIO and not other ASIO drivers.

The fact that it only happens at startup suggests a priming issue, but that's inconsistent with the duration of the noise, which lasts for ~100 buffer switches. Maybe Ableton accidentally writes garbage into the ASIO output buffer while priming, and then just leaves it sitting there until 1 second later.

I'll see if I can think of anything else, but this will be a tough one if I'm unable to reproduce.

inwardmovement commented 1 year ago

Thanks for what you could do! Anyway it's a non-blocking issue, just a little bothering.

dechamps commented 1 year ago

For what it's worth, I am unable to reproduce using the trial version of Ableton Live 11.2.7.

inwardmovement commented 1 year ago

I noticed it happens when I open a project (containing audio/midi clips) by clicking its desktop shortcut, but not when I open Ableton and then load the project. If you want to try with my project, I sent you a wetransfer link to download it.

dechamps commented 1 year ago

I am still unable to reproduce, even if I try to open your project directly, or one of the Ableton demo projects. I have no idea if I'm doing this correctly though (I don't know how to use Ableton), and your project is complaining that it can't find the "EZdrummer 3" VST plugin.