mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 09:40:18 +00:00
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:
10
src/host.cpp
10
src/host.cpp
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user