Skip to main content

get_amp_config

Function get_amp_config 

Source
pub fn get_amp_config(
    audio_service: State<'_, Mutex<AudioService>>,
) -> Result<AmpConfigDto, String>
Expand description

Retrieves the current amplifier configuration as an AmpConfigDto.

This command captures the state of gain, master volume, and other parameters from the AudioService.

§Arguments

  • audio_service - The shared AudioService state, accessed via Tauri’s state management.

§Returns

Returns Ok(AmpConfigDto) on success, or Err(String) if the service state cannot be locked.