Fix garbage in exported audio caused by resampling (#5552)

This makes AudioDevice::resample return the actual number of generated samples.
This commit is contained in:
thmueller64
2020-07-10 03:58:52 +02:00
committed by GitHub
parent 9895472efd
commit 4b4f117add
2 changed files with 6 additions and 7 deletions

View File

@@ -115,7 +115,7 @@ protected:
const fpp_t _frames );
// resample given buffer from samplerate _src_sr to samplerate _dst_sr
void resample( const surroundSampleFrame * _src,
fpp_t resample( const surroundSampleFrame * _src,
const fpp_t _frames,
surroundSampleFrame * _dst,
const sample_rate_t _src_sr,