blob: f74c53858b9e41b1a5a2e9a470c395fc516b81f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <stdio.h>
#include "cam.h"
#define BUFFER_SIZE (1024 * 1024)
char buffer[BUFFER_SIZE];
void try_record_audio() {
int result = cam_record_audio(buffer, BUFFER_SIZE, RES_AUTO);
if (result == -5) {
printf("Could not record audio.\n");
} else {
printf("Recorded audio!\n");
}
}
|