Started implementing server-client split
parent
0e0a698d9a
commit
0c3abd32a3
|
|
@ -1,3 +0,0 @@
|
||||||
fn main() {
|
|
||||||
rmp::client::run().unwrap();
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
pub mod client;
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
pub mod client;
|
||||||
|
pub mod server;
|
||||||
|
|
||||||
|
fn main() {}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
pub mod audio_backend;
|
||||||
|
|
||||||
|
pub fn run() -> Result<(), ()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
@ -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) -> ();
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue