From 1804d158ba92fb251a0a6a6f38b0d5082d7c91ae Mon Sep 17 00:00:00 2001 From: Ricardo Biehl Pasquali Date: Fri, 4 Jan 2019 00:32:40 -0200 Subject: pcm: Replace 'underruns' with 'xruns' Signed-off-by: Ricardo Biehl Pasquali --- src/pcm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pcm.c') diff --git a/src/pcm.c b/src/pcm.c index eb2f4b8..cec4e47 100644 --- a/src/pcm.c +++ b/src/pcm.c @@ -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: /* -- cgit v1.2.3