From c848ea519f5c63b5a59bf2643e02a99ac7a7eef7 Mon Sep 17 00:00:00 2001 From: Ricardo Biehl Pasquali Date: Wed, 28 Dec 2016 14:42:18 -0200 Subject: corrected (over/under)run definition in pcm.h overrun is in capture and underrun is in playback. Look: '+' has data / '-' hasn't data overrun (capture): You should have read until here v |+++++++|++ <- buffer over(run/flow) underrun (playback): You should have written until here v |+++++++|-- <- buffer under(run/flow) --- include/tinyalsa/pcm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/tinyalsa/pcm.h b/include/tinyalsa/pcm.h index b7c32b3..69544a1 100644 --- a/include/tinyalsa/pcm.h +++ b/include/tinyalsa/pcm.h @@ -94,8 +94,8 @@ extern "C" { */ #define PCM_STATE_RUNNING 0x03 -/** For inputs, this means an underrun occured. - * For outputs, this means an overrun occured. +/** For inputs, this means an overrun occured. + * For outputs, this means an underrun occured. */ #define PCM_STATE_XRUN 0x04 -- cgit v1.2.3