33 lines
1.0 KiB
Rust
33 lines
1.0 KiB
Rust
mod state;
|
|
mod commands;
|
|
|
|
use state::AppState;
|
|
|
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
pub fn run() {
|
|
tauri::Builder::default()
|
|
.plugin(tauri_plugin_opener::init())
|
|
.manage(AppState::new())
|
|
.invoke_handler(tauri::generate_handler![
|
|
commands::create_dsp408,
|
|
commands::connect_dsp408,
|
|
commands::remove_dsp408,
|
|
commands::disconnect_dsp408,
|
|
commands::get_dsp_state,
|
|
commands::set_channel_gain,
|
|
commands::set_mute,
|
|
commands::set_channel_inverse_gain,
|
|
commands::recall_preset,
|
|
commands::get_meter_levels,
|
|
commands::set_current_preset_name,
|
|
commands::set_gate,
|
|
commands::set_compressor,
|
|
commands::set_limiter,
|
|
commands::set_delay_unit,
|
|
commands::set_delay,
|
|
]
|
|
)
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|