Provide option to select the source for audio on Linux

This commit is contained in:
loki
2020-01-18 00:58:27 +01:00
parent 29098a8f1d
commit 15dd6b3cd0
5 changed files with 30 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ video_t video {
"zerolatency"s // tune
};
audio_t audio {};
stream_t stream {
2s, // ping_timeout
@@ -172,6 +174,8 @@ void parse_file(const char *file) {
string_f(vars, "file_devices", nvhttp.file_devices);
string_f(vars, "external_ip", nvhttp.external_ip);
string_f(vars, "audio_sink", audio.sink);
string_restricted_f(vars, "origin_pin_allowed", nvhttp.origin_pin_allowed, {
"pc"sv, "lan"sv, "wan"sv
});