-
Notifications
You must be signed in to change notification settings - Fork 20
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
Callback #122
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #122 /- ##
==========================================
- Coverage 92.37% 8.51% -83.87%
==========================================
Files 2 2
Lines 354 235 -119
==========================================
- Hits 327 20 -307
- Misses 27 215 188 ☔ View full report in Codecov by Sentry. |
@ssfrr @Gnimuc @rob-luke @JeffFessler Ok, now that JuliaLang/julia#17573 is fixed, we can now use call-back functions. This means that there is a much more performant way to use PortAudio. In this minimal version, which works on my currently Windows laptop (still need to add docs and more tests), you only have to provide a call-back function in the form:
This currently doesn't really jive well with the SampledSignals interface. We could support SampledSignals with a callback function, which puts inputs into a channel for SampledSignals and then waits for outputs from another channel from SampledSignals, but this is slow and kind of ruins the point. My temptation is just to create a new package, maybe |
Hi, |
Low-level access to the callback interface