aboutsummaryrefslogtreecommitdiff
path: root/src/typedef.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-22 23:53:29 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-22 23:53:29 +0300
commitf45b143dcf90970122436d10bd6226f577a9310d (patch)
tree986563759bf1f5935e15a66613e673e445b26e97 /src/typedef.h
parentf4c66a4c77e5818ca9703f59a80ea92e27ed45c6 (diff)
works with alsa and runs at 30 fpsHEADmaster
Diffstat (limited to 'src/typedef.h')
-rw-r--r--src/typedef.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/typedef.h b/src/typedef.h
index b6b2b29..180d100 100644
--- a/src/typedef.h
+++ b/src/typedef.h
@@ -16,12 +16,10 @@
#define BUF_CAP 65500 // max datagram size with some bytes left for the headers and things
-#define FRAMES 32
+#define FRAMES 64
#define BITRATE 16
#define SAMPLING_RATE 44100
#define CHANNELS 2
-
-#define TEMP_BUF_SZ (FRAMES * CHANNELS * 2) // 2 bytes per sample
#define REC_CAP ((BITRATE * SAMPLING_RATE * CHANNELS)/240) // 30th of a second of audio
#define VID_CAP (BUF_CAP - ((2*(sizeof(int))) + REC_CAP))