Enable audio encryption unless on a slow CPU

This commit is contained in:
Cameron Gutman
2021-07-24 16:22:48 -05:00
parent b907c4b608
commit 30464979dc
3 changed files with 28 additions and 0 deletions

View File

@@ -38,3 +38,15 @@ int blank_fb(char *path, bool clear) {
} else
return -1;
}
int read_file(char *path, char* output, int output_len) {
int fd = open(path, O_RDONLY);
if(fd >= 0) {
output_len = read(fd, output, output_len);
close(fd);
return output_len;
} else
return -1;
}