diff options
author | Ricardo Biehl Pasquali <pasqualirb@gmail.com> | 2019-01-04 00:32:40 -0200 |
---|---|---|
committer | Ricardo Biehl Pasquali <pasqualirb@gmail.com> | 2019-01-08 16:48:19 -0200 |
commit | 1804d158ba92fb251a0a6a6f38b0d5082d7c91ae (patch) | |
tree | ebe8c653cd32c718729e93e2eb5bab71e6662782 /src | |
parent | 03cc7c5cb7e9ea227af43cedf58dc60febb7b745 (diff) |
pcm: Replace 'underruns' with 'xruns'
Signed-off-by: Ricardo Biehl Pasquali <pasqualirb@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/pcm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -215,8 +215,8 @@ struct pcm { int fd; /** Flags that were passed to @ref pcm_open */ unsigned int flags; - /** The number of underruns that have occured */ - int underruns; + /** The number of (under/over)runs that have occured */ + int xruns; /** Size of the buffer */ unsigned int buffer_size; /** The boundary for ring buffer pointers */ @@ -909,7 +909,7 @@ struct pcm *pcm_open(unsigned int card, unsigned int device, if (pcm_prepare(pcm)) goto fail; - pcm->underruns = 0; + pcm->xruns = 0; return pcm; fail: @@ -1399,7 +1399,7 @@ again: if (res < 0) { switch (errno) { case EPIPE: - pcm->underruns++; + pcm->xruns++; /* fallthrough */ case ESTRPIPE: /* |