sink: Change EnqueueSamples to take a pointer to a buffer instead of a std::vector

This commit is contained in:
MerryMage 2016-08-31 16:55:10 +01:00
parent 87893e6d68
commit 0ef4185644
5 changed files with 9 additions and 9 deletions

View file

@ -90,7 +90,8 @@ static AudioCore::TimeStretcher time_stretcher;
static void OutputCurrentFrame(const StereoFrame16& frame) {
time_stretcher.AddSamples(&frame[0][0], frame.size());
sink->EnqueueSamples(time_stretcher.Process(sink->SamplesInQueue()));
std::vector<s16> stretched_samples = time_stretcher.Process(sink->SamplesInQueue());
sink->EnqueueSamples(stretched_samples.data(), stretched_samples.size() / 2);
}
// Public Interface