get_local_option for ui style, todo: set_local_option

This commit is contained in:
open-trade
2021-12-29 17:53:36 +08:00
parent 365fc90d8b
commit 3491c79cbc
5 changed files with 9 additions and 5 deletions

View File

@@ -191,7 +191,8 @@ mod cpal_impl {
let (device, config) = get_device()?;
let sp = sp.clone();
let err_fn = move |err| {
log::error!("an error occurred on stream: {}", err);
// too many UnknownErrno, will improve later
log::trace!("an error occurred on stream: {}", err);
};
// Sample rate must be one of 8000, 12000, 16000, 24000, or 48000.
let sample_rate_0 = config.sample_rate().0;