Add features and start writing interfaces
This commit is contained in:
0
engine/src/audio_engine/coreaudio.rs
Normal file
0
engine/src/audio_engine/coreaudio.rs
Normal file
0
engine/src/audio_engine/jack.rs
Normal file
0
engine/src/audio_engine/jack.rs
Normal file
12
engine/src/audio_engine/mod.rs
Normal file
12
engine/src/audio_engine/mod.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
mod jack;
|
||||
mod coreaudio;
|
||||
|
||||
trait AudioBackend {
|
||||
// Start a audio backend client
|
||||
// It should be executed either on the startup,
|
||||
// or when the audio backend is switched
|
||||
fn start_client();
|
||||
// Initialization of the client should happen
|
||||
// when a project is opened.
|
||||
fn init_client();
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
mod audio_engine;
|
||||
|
||||
use lib::{self, metadata::Metadata, track::Track};
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user