pre pipewire-rs effects
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -8,6 +8,7 @@ mod osc;
|
||||
mod tui;
|
||||
|
||||
use anyhow::Result;
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
@@ -23,6 +24,13 @@ async fn main() -> Result<()> {
|
||||
|
||||
tracing::info!("djdeck starting");
|
||||
|
||||
let mut app = app::App::new()?;
|
||||
// Parse command line argument for audio directory
|
||||
let audio_dir = if std::env::args().len() > 1 {
|
||||
Some(PathBuf::from(std::env::args().nth(1).unwrap()))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
let mut app = app::App::new(audio_dir)?;
|
||||
app.run().await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user