Cleanup & implementation of #32

This commit is contained in:
Jarcode
2018-03-18 12:20:20 -07:00
parent f32f0ded0f
commit 283afaaaca
7 changed files with 36 additions and 19 deletions

View File

@@ -199,7 +199,7 @@ int main(int argc, char** argv) {
bool verbose = false;
bool copy_mode = false;
int c, idx, n = 0;
int c, idx;
while ((c = getopt_long(argc, argv, opt_str, p_opts, &idx)) != -1) {
switch (c) {
case 'v': verbose = true; break;
@@ -259,7 +259,7 @@ int main(int argc, char** argv) {
}
pthread_t thread;
int thread_id = pthread_create(&thread, NULL, input_pulse, (void*) &audio);
pthread_create(&thread, NULL, input_pulse, (void*) &audio);
float lb[r->bufsize_request], rb[r->bufsize_request];
while (r->alive) {