-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use boost spsc_queue for ringbuffer instead of internals of portaudio library #97
base: master
Are you sure you want to change the base?
Conversation
…plify the code and set-up by using spsc_queue from boost.
Conflicts: examples/C++/demo.mk
…plify the code and set-up by using spsc_queue from boost.
@kskalski Kamil could you let me know why you changed it to use the the ringbuffer from boost? Is it because you'd like to use the system level portaudio which was installed without the patch? I'm still concerned about the boost dependency, and if we can avoid I'd like to avoid it. |
It's primarily for readability and simplicity - since this is just an
example code I guess its goal is to quickly get user up to speed on the API
with smallest possible snippet of code.
When I was analyzing the example the use of PA_RingBuffer really did strike
me as something sophisticated and tricky to do. Only then I realized that
it could as well just be an queue with lock complexity comes from 1)
minimizing locks / perf optimization 2) use of specific PA structure to do
that.
Not using PA's internal-only datastructures and avoiding the download /
patch machinery is clearly a big bonus too. At least it seems like a bigger
burden and surprise than having to install one additional system package.
|
Thanks @kskalski . I'll leave this open for a while and see if we get opinions form other people as well. Personally I feel adding boost is too much, but if we get a lot of up-votes from other developers, I'll merge this. Thanks for the effort! |
Code clean-up
…resource from the resources directory.
…he current working directory.
Perl wrapper and sample code modifications as per @chenguoguo
Update the documentation for `SnowboyDetect::RunDetection()` to specify that the length of the array should be given in samples, not bytes.
…g idiom Signed-off-by: deadprogram <[email protected]>
Signed-off-by: deadprogram <[email protected]>
This will require you to re-run this publish script on the Pi Build OSX and Linux binaries for node 8.x
No description provided.