Integrate hardware volume control in PlaybackEngine

- Add hardware_volume parameter to PlaybackEngine::new_alsa_direct()
- Update all three call sites in player.rs to pass alsa_hardware_volume setting
- Implement conditional volume control: hardware mixer or DAC/amplifier
- Add device_id() getter to AlsaDirectStream for mixer access
- Hardware volume disabled by default for maximum compatibility
This commit is contained in:
vicrodh committed 2026-01-19 03:59:28 -06:00
1 parent c87b41894d
commit 61688bd1ea
3 files changed
+40 -8

No files matched your search

+5
View File
@@ -235,6 +235,11 @@ impl AlsaDirectStream {
self.channels
}
/// Get device ID
pub fn device_id(&self) -> &str {
&self.device_id
}
/// Try to set hardware volume via ALSA mixer
///
/// Returns error if: