mirror of
https://github.com/csd4ni3l/soundboard.git
synced 2026-03-10 09:09:24 +01:00
Fix warnings, remove ffmpeg output from cmd
This commit is contained in:
@@ -105,7 +105,7 @@ pub fn list_outputs() -> Vec<(String, String)> {
|
||||
}
|
||||
|
||||
pub fn move_output_to_sink(output_index: String, sink_index: String) {
|
||||
let output = Command::new("pactl")
|
||||
let _ = Command::new("pactl")
|
||||
.args(&["move-source-output", output_index.as_str(), sink_index.as_str()]) // as_str is needed here as you cannot instantly dereference a growing String (Rust...)
|
||||
.output()
|
||||
.expect("Failed to execute process");
|
||||
|
||||
@@ -574,7 +574,7 @@ fn draw(mut contexts: EguiContexts, mut app_state: ResMut<AppState>) -> Result {
|
||||
}
|
||||
});
|
||||
|
||||
let window_height = ctx.screen_rect().height();
|
||||
let window_height = ctx.content_rect().height();
|
||||
|
||||
egui::TopBottomPanel::bottom("currently_playing")
|
||||
.exact_height(window_height * 0.1)
|
||||
|
||||
@@ -43,7 +43,7 @@ pub fn check_and_download_yt_dlp() {
|
||||
}
|
||||
|
||||
pub fn check_ffmpeg() -> bool{
|
||||
return std::process::Command::new("ffmpeg").spawn().is_ok();
|
||||
return std::process::Command::new("ffmpeg").output().is_ok();
|
||||
}
|
||||
|
||||
pub fn check_and_download_ffmpeg() {
|
||||
|
||||
Reference in New Issue
Block a user