Started implementing server-client split

master
hheik 2023-09-28 15:56:47 +03:00
parent 0e0a698d9a
commit 0c3abd32a3
5 changed files with 16 additions and 4 deletions

View File

@ -1,3 +0,0 @@
fn main() {
rmp::client::run().unwrap();
}

View File

@ -1 +0,0 @@
pub mod client;

4
src/main.rs Normal file
View File

@ -0,0 +1,4 @@
pub mod client;
pub mod server;
fn main() {}

5
src/server.rs Normal file
View File

@ -0,0 +1,5 @@
pub mod audio_backend;
pub fn run() -> Result<(), ()> {
Ok(())
}

View File

@ -0,0 +1,7 @@
use std::{path::Path, time::Duration};
pub trait AudioBackend {
fn seek_and_play(&mut self, file_path: &Path, seek: Duration) -> ();
fn pause_playback(&mut self) -> ();
fn continue_playback(&mut self) -> ();
}