From f45b143dcf90970122436d10bd6226f577a9310d Mon Sep 17 00:00:00 2001 From: kartofen Date: Sat, 22 Oct 2022 23:53:29 +0300 Subject: works with alsa and runs at 30 fps --- src/typedef.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/typedef.h') 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)) -- cgit v1.2.3