aboutsummaryrefslogtreecommitdiff
path: root/sio.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-08-15 17:14:42 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-08-15 17:14:42 +0000
commit3af454f2ca99043d9e0a94f5f769206f60d45f9a (patch)
tree0890dd2605bc85918e4df2da0b9a2d0f4e21af50 /sio.c
parentefabba648cc552a315049a8476267b6aa0e5a421 (diff)
experimental fullscreen mode
Diffstat (limited to 'sio.c')
-rw-r--r--sio.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sio.c b/sio.c
index a7d520f..0f6e067 100644
--- a/sio.c
+++ b/sio.c
@@ -22,7 +22,6 @@
#define RCHAN 2
#define BITS 16
#define SIGNED 1
-#define ROUND 1024 /* FFT is fastest with powers of two */
#define FPS 24
struct sio {
@@ -34,7 +33,7 @@ struct sio {
};
struct sio *
-init_sio()
+init_sio(int round)
{
struct sio *sio;
size_t bufsz;
@@ -66,7 +65,7 @@ init_sio()
sio->par.sig != SIGNED)
errx(1, "unsupported audio params");
- sio->round = ROUND;
+ sio->round = round;
bufsz = sio->par.rate / FPS; /* 24 pictures/second */
bufsz -= bufsz % sio->par.round; /* round to block size */
@@ -83,12 +82,6 @@ init_sio()
return sio;
}
-unsigned int
-get_round(struct sio *sio)
-{
- return sio->round;
-}
-
int16_t *
read_sio(struct sio *sio, size_t n)
{