aboutsummaryrefslogtreecommitdiff
path: root/sio.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-03 17:44:22 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-03 17:44:22 +0000
commit79722d2c21071c2d093f49e471ad05401e7a6ec4 (patch)
tree1757eb29a5cc519466ffc31c21c836176a1be57c /sio.c
parent339f8d508a9a0230e588166e49322651c081a800 (diff)
cleanup audio code
Diffstat (limited to 'sio.c')
-rw-r--r--sio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sio.c b/sio.c
index 4429742..f2b8f50 100644
--- a/sio.c
+++ b/sio.c
@@ -17,10 +17,10 @@
#include <assert.h>
#include <err.h>
-#include <stdlib.h>
#include <sndio.h>
+#include <stdlib.h>
-#define RCHAN 2
+#define STEREO 2
#define BITS 16
#define SIGNED 1
#define FPS 24
@@ -48,7 +48,7 @@ init_sio(unsigned int round)
sio_initpar(&sio->par);
- sio->par.rchan = RCHAN;
+ sio->par.rchan = STEREO;
sio->par.bits = BITS;
sio->par.le = SIO_LE_NATIVE;
sio->par.sig = SIGNED;
@@ -58,7 +58,7 @@ init_sio(unsigned int round)
if (!sio_getpar(sio->sio, &sio->par))
errx(1, "SIO get params failed");
- if (sio->par.rchan != RCHAN ||
+ if (sio->par.rchan != STEREO ||
sio->par.bits != BITS ||
sio->par.le != SIO_LE_NATIVE ||
sio->par.sig != SIGNED)