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)
This commit is contained in:
Ricardo Biehl Pasquali
2016-12-28 14:42:18 -02:00
parent c6f908ee87
commit c848ea519f
+2 -2
View File
@@ -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