From 904094281b062aff3445ca41fec57e4cfd0f563d Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Tue, 10 Nov 2020 14:06:35 -0800 Subject: Initial code release --- examples/program_analysis/paper_demos/api3.before.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/program_analysis/paper_demos/api3.before.txt (limited to 'examples/program_analysis/paper_demos/api3.before.txt') diff --git a/examples/program_analysis/paper_demos/api3.before.txt b/examples/program_analysis/paper_demos/api3.before.txt new file mode 100644 index 0000000..cb8d731 --- /dev/null +++ b/examples/program_analysis/paper_demos/api3.before.txt @@ -0,0 +1,14 @@ +#include +#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"); + } +} -- cgit v1.2.3