Merge pull request #4490 from wwylele/teakra-new

audio: implement DSP LLE
This commit is contained in:
Ben 2019-01-11 16:45:00 +01:00 committed by GitHub
commit 4f23d5d69e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 766 additions and 61 deletions

View file

@ -43,6 +43,13 @@ void DspInterface::OutputFrame(StereoFrame16& frame) {
fifo.Push(frame.data(), frame.size());
}
void DspInterface::OutputSample(std::array<s16, 2> sample) {
if (!sink)
return;
fifo.Push(&sample, 1);
}
void DspInterface::OutputCallback(s16* buffer, std::size_t num_frames) {
std::size_t frames_written;
if (perform_time_stretching) {