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

#1694 SDRPlay RSP Memory Leak & Audio Playback Delays #1695

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

DSheirer
Copy link
Owner

@DSheirer DSheirer commented Nov 5, 2023

Closes #1694

Resolves memory leak in SDRPlay RSP tuner implementation. Sample stream and event callback functions were using a global arena for memory allocation where memory was not being de-allocated. Changed to on-demand arena creation and deterministic memory de-allocation.

Also, when using a reduced sample rate from the RSP tuner, the dispatcher was not keeping up with the inbound sample buffer rate, resulting in a buildup of RSP native sample buffers over time and causing growing audio delays with broken/stilted audio during playback.

@DSheirer DSheirer added this to the Build 0.6.0 milestone Nov 5, 2023
@DSheirer DSheirer self-assigned this Nov 5, 2023
@DSheirer DSheirer changed the title #1694 Resolves memory leak in SDRPlay RSP tuner implementation. Samp… #1694 SDRPlay RSP Memory Leak & Audio Playback Delays Nov 5, 2023
…e stream and event callback functions were using a global arena for memory allocation where memory was not being de-allocated. Changed to on-demand arena creation and deterministic memory de-allocation. Also, when using a reduced sample rate from the RSP tuner, the dispatcher was not keeping up with the inbound sample buffer rate, resulting in a buildup of RSP native sample buffers over time and causing growing audio delays with broken/stilted audio during playback.
@DSheirer DSheirer force-pushed the 1694-sdrplay-rsp-tuner-memory-leaks branch from 48f38a1 to d3dc1a8 Compare November 5, 2023 09:24
@DSheirer DSheirer merged commit e1bc9ea into master Nov 5, 2023
3 checks passed
@DSheirer DSheirer deleted the 1694-sdrplay-rsp-tuner-memory-leaks branch November 5, 2023 09:26
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.

SDRPlay Tuner Memory Leak & Audio Delays
1 participant