Skip to content

Bugfix-#2383-audio-trapped-in-output-buffer-of-resampler#2384

Open
Randesign wants to merge 1 commit intoDSheirer:masterfrom
Randesign:Bugfix-#2383-audio-trapped-in-output-buffer-of-resampler
Open

Bugfix-#2383-audio-trapped-in-output-buffer-of-resampler#2384
Randesign wants to merge 1 commit intoDSheirer:masterfrom
Randesign:Bugfix-#2383-audio-trapped-in-output-buffer-of-resampler

Conversation

@Randesign
Copy link
Contributor

Fixes #2383.

Resampler already implements a lastBatch parameter, which will pad the unused portion of the input buffer with zeros. Extended that function to the output buffer to be sure no audio samples are left in the buffer.

The RealResampler is used by a number of functions in SDRTrunk.

Tested with:
MP3 resampling
NBFM/noiseSquelch decoding

AM demodulator will be left as is for now. I would like to address resampler issues and other issues in #2301 at a later date.

AFSK1200: I have no way to test this.

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.

NBFM audio samples trapped in buffer after squelch closes

1 participant