output/alsa: add "full" assertion to WriteFromPeriodBuffer()

This commit is contained in:
Max Kellermann 2019-06-27 21:22:52 +02:00
parent 549faa8a9c
commit c1eb0583c4

View File

@ -312,6 +312,7 @@ private:
snd_pcm_sframes_t WriteFromPeriodBuffer() noexcept {
assert(!period_buffer.IsEmpty());
assert(period_buffer.IsFull());
auto frames_written = snd_pcm_writei(pcm, period_buffer.GetHead(),
period_buffer.GetFrames(out_frame_size));