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

Plugin Audio Streaming CPU/Memory Usage Reduction #559

Merged
merged 4 commits into from
Nov 28, 2021
Merged

Plugin Audio Streaming CPU/Memory Usage Reduction #559

merged 4 commits into from
Nov 28, 2021

Conversation

JoeGilkey
Copy link
Contributor

This change allows the audio streaming callbacks to be turned off if they are not being used. This reduces the memory and CPU usage. On RaspberryPi3 and other small devices, this can add significant overhead on a feature that is not commonly used.

@robotastic
Copy link
Collaborator

Thanks so much for contributing the Plugin code - it has been working out great. Hopefully I didn't mess things up too much when I integrated it.

This fix is a great idea. Should it be a single setting at the top level for the whole instance? Or done system by system?

@JoeGilkey
Copy link
Contributor Author

No problem. I switched jobs and haven't had time to work on anything else for a while. I've got some time now, so I figured I would take a look. It looks great, and I have a few ideas that may help (i.e. when to delete the wav files).

For this I think you are correct and it should be a global flag. Individually, it should be on the system, not the source. Global makes more sense.

JoeGilkey and others added 2 commits November 27, 2021 20:20
I moved the enable audio out of the Source and it is just stored right in the recorder now.
@robotastic
Copy link
Collaborator

@aaknitt heads up on this incoming change. Streaming audio will be off by default.

@robotastic robotastic merged commit 9da46e1 into TrunkRecorder:master Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants