Trying to add protoc
This commit is contained in:
@@ -1,35 +1,23 @@
|
||||
mod audio_engine;
|
||||
use clap::Parser;
|
||||
|
||||
use lib::{self, metadata::Metadata, track::Track};
|
||||
/// Simple program to greet a person
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(version, about, long_about = None)]
|
||||
struct Args {
|
||||
/// Name of the person to greet
|
||||
#[arg(short, long)]
|
||||
name: String,
|
||||
|
||||
/// Number of times to greet
|
||||
#[arg(short, long, default_value_t = 1)]
|
||||
count: u8,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let mut current_project = lib::project::Project {
|
||||
name: "test".to_string(),
|
||||
tracks: None,
|
||||
regions: None,
|
||||
current_sample: 0,
|
||||
};
|
||||
let args = Args::parse();
|
||||
|
||||
let track = Track {
|
||||
metadata: Metadata::new("test".to_string()),
|
||||
track_type: lib::track::TrackType::Audio,
|
||||
active: true,
|
||||
};
|
||||
|
||||
current_project.tracks = Some(vec![track]);
|
||||
|
||||
/*
|
||||
* Engine should run and wait for commands,
|
||||
* but currently I need to implement the multitrack
|
||||
* audio player somehow
|
||||
*
|
||||
*
|
||||
* for track in tracks {
|
||||
* if track.is_region_playing(now: time) {
|
||||
* let current_region = track.get_current_region(now: time)
|
||||
* let audio = current_region.get_data(now: time)
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
println!("Hello, world!");
|
||||
for _ in 0..args.count {
|
||||
println!("Hello {}!", args.name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user