-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getLatencies() before createBuffers() returns error in violation of ASIO spec (triggers failure in NAudio) #122
Comments
Yeah I think it's FlexASIO that's at fault here, sorry about that. Quoting the ASIO SDK (emphasis mine):
FlexASIO does not follow this guidance and returns an error instead of using the preferred buffer size. My mistake. I will prepare a fix the next time I resume work on FlexASIO. (It should be noted, though, that calling I'm a bit curious as to why you are trying to use FlexASIO with NAudio though. That doesn't seem to make sense because NAudio can already access most Windows APIs directly (MME, DirectSound, WASAPI). FlexASIO is therefore just an additional layer of indirection; in theory, it will not provide any benefit and will just make things slower/more complicated/more likely to break. That seems a bit pointless. I guess the only exception is if you're trying to interface with WDM/KS, which NAudio doesn't seem to support. |
Thanks for your quick reply.
VVVV only supports ASIO currently and I am but a mere user... ASIO4ALL needs exclusive access to the sound device and this unfortunatlely is not compatible with my usecase. So FlexAudio seemed to be an ideal solution. |
Hello, I'd like to bump this issue a little bit. FlexASIO seems to be the solution to many of our current audio troubles in media projects. Could you somehow lift this restriction and publish a new alpha release? That would be fantastic, thank you! |
This can be used to catch dechamps/FlexASIO#122.
This will be fixed in FlexASIO 1.8. In the meantime, here's an interim build that contains the fix: https://github.com/dechamps/FlexASIO/suites/3943985639/artifacts/98883891 |
This is fixed in FlexASIO 1.8. |
Thanks. I've just run some simple tests and it seems to work as expected. |
Works here too, thanks a lot, this is great news! |
Hey, I am trying to use FlexAsio together with an application called vvvv, which in turn uses NAudio for audio playback. It works fine with other drivers like ASIO4All and the ASIO drivers that come with FL Studio.
According to the FlexAsio log the cause of the exception is the following:
FlexASIO.log
I don't know if this is a driver issue or if NAudio does somehow not handle the ASIO spec correctly.
Going through their source the following seems to take place:
this.AsioOut = new AsioOut(driverName);
->
->
->
->
The text was updated successfully, but these errors were encountered: