audioplaybackcache: use null samplebuffer to write silence

This commit is contained in:
itsmattkc
2020-10-13 23:48:59 +11:00
parent f137a1bbf3
commit 65507d81ea
+1 -1
View File
@@ -151,7 +151,7 @@ void AudioPlaybackCache::WriteSilence(const TimeRange &range, qint64 job_time)
{
// WritePCM will automatically fill non-existent bytes with silence, so we just have to send
// it an empty sample buffer
WritePCM(range, std::make_shared<SampleBuffer>(), job_time);
WritePCM(range, nullptr, job_time);
}
void AudioPlaybackCache::ShiftEvent(const rational &from, const rational &to)