47 lines
1.8 KiB
Rust
47 lines
1.8 KiB
Rust
mod commands;
|
|
mod state;
|
|
|
|
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::remove_dsp408,
|
|
commands::get_dsp_snapshot,
|
|
commands::get_dsp_state,
|
|
commands::connect_dsp408, // 0x10
|
|
commands::disconnect_dsp408, // 0x11
|
|
commands::set_delay_unit, // 0x15
|
|
commands::recall_preset, // 0x20
|
|
commands::store_current_configuration, // 0x21
|
|
commands::factory_reset, // 0x23
|
|
commands::set_current_preset_name, // 0x26
|
|
commands::copy_channel, // 0x2A
|
|
commands::set_compressor, // 0x30
|
|
commands::set_low_pass, // 0x31
|
|
commands::set_high_pass, // 0x32
|
|
commands::set_peq_band, // 0x33
|
|
commands::set_channel_gain, // 0x34
|
|
commands::set_mute, // 0x35
|
|
commands::set_channel_inverse_gain, // 0x36
|
|
commands::set_delay, // 0x38
|
|
commands::set_input_source, // 0x39
|
|
commands::set_matrix_routing, // 0x3A
|
|
commands::link_channels, // 0x3B
|
|
commands::set_bypass_peq, // 0x3C
|
|
commands::set_channel_name, // 0x3D
|
|
commands::set_gate, // 0x3E
|
|
commands::set_limiter, // 0x3F
|
|
commands::get_meter_levels, // 0x40
|
|
commands::set_matrix_gain, // 0x41
|
|
commands::set_geq_band, // 0x48
|
|
commands::set_geq_bypass, // 0x49
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|