ALSA play.: write from thread

This is a proposed change (not yet default) to the ALSA behaviour. There
is a thread that writes to device all the time, avoiding underruns. On
the other hand there is a need to handle latency for which new buffer
was created. Alternatively, speex jitter buffer could be used.
This commit is contained in:
Martin Pulec
2016-05-03 17:24:24 +02:00
parent e0bfedbd14
commit 880a19dd4c
10 changed files with 546 additions and 44 deletions

View File

@@ -207,3 +207,13 @@ void print_version()
printf(AUTOCONF_RESULT);
}
const char *get_commandline_param(const char *key)
{
auto it = commandline_params.find(key);
if (it != commandline_params.end()) {
return it->second.c_str();
} else {
return NULL;
}
}