cargo fmt
This commit is contained in:
parent
b3d96fb069
commit
0cac4261c5
1 changed files with 6 additions and 2 deletions
|
@ -7,7 +7,8 @@ use std::{
|
||||||
path::Path,
|
path::Path,
|
||||||
process::{self, Stdio},
|
process::{self, Stdio},
|
||||||
sync::{Arc, Mutex},
|
sync::{Arc, Mutex},
|
||||||
time::{Duration, SystemTime}, thread,
|
thread,
|
||||||
|
time::{Duration, SystemTime},
|
||||||
};
|
};
|
||||||
|
|
||||||
use form_data_builder::FormData;
|
use form_data_builder::FormData;
|
||||||
|
@ -205,7 +206,10 @@ async fn send_frames(message: Message, ctx: Context) {
|
||||||
handle.pause().expect("voice: unable to pause");
|
handle.pause().expect("voice: unable to pause");
|
||||||
handle.set_volume(1.0).unwrap();
|
handle.set_volume(1.0).unwrap();
|
||||||
println!("voice: waiting for video [api_time={api_time}]");
|
println!("voice: waiting for video [api_time={api_time}]");
|
||||||
tokio::time::sleep(Duration::from_millis(5000 - (unix_millis() - sa) + (api_time * 2))).await;
|
tokio::time::sleep(Duration::from_millis(
|
||||||
|
5000 - (unix_millis() - sa) + (api_time * 2),
|
||||||
|
))
|
||||||
|
.await;
|
||||||
println!("voice: playing");
|
println!("voice: playing");
|
||||||
handle.play().expect("voice: unable to play");
|
handle.play().expect("voice: unable to play");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue