Skip to content
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() returns "-999 [ASE_HWMalfunction] unable to get stream info" on FlexASIO 1.10 #231

Closed
dechamps opened this issue May 26, 2024 · 3 comments
Labels

Comments

@dechamps
Copy link
Owner

2024-05-27T00:12:02.7335982+01:00 196036 167508 --- ENTERING CONTEXT: getLatencies() on 000002D5255A0260
2024-05-27T00:12:02.7338635+01:00 196036 167508 --- EXITING CONTEXT: getLatencies() (-999 [ASE_HWMalfunction] unable to get stream info)

This is seen in both VB-Audio ASIO Driver Tester and FlexASIOTest. This only happens if getLatencies() is called after createBuffers(), but that is sadly the most common case.

This is also a bug in FlexASIOTest, as evidenced by the following:

Querying latencies...
Driver returned an error: -999 [ASE_HWMalfunction]

Querying latencies...
Driver returned an error: -999 [ASE_HWMalfunction]

…

Testing finished with PASS result
@dechamps dechamps added the bug label May 26, 2024
@dechamps dechamps added this to the FlexASIO 1.10a milestone May 26, 2024
@dechamps
Copy link
Owner Author

The regression likely lies somewhere in 59f75ce.

dechamps added a commit to dechamps/ASIOTest that referenced this issue May 27, 2024
dechamps added a commit that referenced this issue May 27, 2024
This brings in the test code that surfaces #231.
dechamps added a commit that referenced this issue May 27, 2024
This fixes a regression introduced by a typo in
59f75ce.

The reason why that obviously wrong code compiled is because of a type
safety trainwreck: PaStream* is an alias of void*, which can be
implicitly converted from anything, and we accidentally passed a
PaStream** instead of a PaStream*. Oops.

Fixes #231
dechamps added a commit to dechamps/ASIOTest that referenced this issue May 27, 2024
dechamps added a commit that referenced this issue May 27, 2024
This brings in the test code that surfaces #231.
@dechamps
Copy link
Owner Author

This is fixed in FlexASIO 1.10a.

@dechamps
Copy link
Owner Author

Filed PortAudio/portaudio#915 to make PortAudio more robust against this kind of programming error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant