summaryrefslogtreecommitdiff
path: root/examples/program_analysis/paper_demos/api3.before.txt
blob: cb8d7312b186fd01c303c76c645c1d98fd61e12c (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)
char buffer[BUFFER_SIZE];

void try_record_still() {
    int result = cam_record_frame(buffer, BUFFER_SIZE, RES_AUTO);
    if (result == -3) {
        printf("Could not record audio.\n");
    } else {
        printf("Recorded audio!\n");
    }
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback