mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-18 13:25:09 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user