aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRicardo Biehl Pasquali <rbpoficial@gmail.com>2016-12-28 14:42:18 -0200
committerRicardo Biehl Pasquali <rbpoficial@gmail.com>2016-12-28 14:42:18 -0200
commitc848ea519f5c63b5a59bf2643e02a99ac7a7eef7 (patch)
treed1f09e40dfd6a449bf07846f8d9d52f4d2c690b8 /include
parentc6f908ee871c995c193c2dcbd8ec9bfd69045689 (diff)
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)
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/pcm.h4
1 files changed, 2 insertions, 2 deletions
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