aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pcm.c8
1 files changed, 4 insertions, 4 deletions
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:
/*