Fix switch audio input device failed in index page on Linux.

This commit is contained in:
yanfeng
2022-02-28 11:45:02 +08:00
parent 8460c1ac42
commit aa5c7cc38e
4 changed files with 22 additions and 1 deletions

View File

@@ -515,6 +515,10 @@ pub fn set_option(key: &str, value: &str) {
set_options(options).ok();
}
pub fn restart_autdio_input() {
crate::audio_service::restart();
}
#[tokio::main(flavor = "current_thread")]
pub async fn set_options(value: HashMap<String, String>) -> ResultType<()> {
let mut c = connect(1000, "").await?;