feat: add limiter

This commit is contained in:
2026-08-06 16:15:46 +02:00
parent 56f7aca174
commit e802067056
7 changed files with 506 additions and 2 deletions
+17
View File
@@ -290,4 +290,21 @@ pub async fn set_compressor(
)
.map_err(|e| e.to_string())
})
}
#[tauri::command]
pub async fn set_limiter(
state: State<'_, AppState>,
id: u64,
channel: types::OutputChannel,
threshold: f32,
attack: u16,
release: u16,
) -> Result<bool, String> {
state.with_device_mut(id, |device| {
device
.dsp
.set_limiter(channel, threshold, attack, release)
.map_err(|e| e.to_string())
})
}