Commit c1eb0583 authored by Max Kellermann's avatar Max Kellermann

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

parent 549faa8a
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment