/// Extracts the audio state from persistent storage and restores it on
/// the local state. Also pushes the changes to the audio core if
/// [push_to_audio_core] is true.
Extracts the audio state from persistent storage and restores it on
the local state. Also pushes the changes to the audio core if
[push_to_audio_core] is true.
Extracts the audio state from persistent storage and restores it on the local state . Also pushes the changes to the audio core if [ push_to_audio_core ] is true .
async fn restore_volume_state(&mut self, push_to_audio_core: bool) -> ControllerStateResult {
        let audio_info = self.client.read_setting::<AudioInfo>().await;
        self.update_volume_streams(UpdateFrom::AudioInfo(audio_info), push_to_audio_core).await?;
        Ok(())
    }
async fn restore_volume_state ( & mut self , push_to_audio_core : bool ) -> ControllerStateResult { let audio_info = self . client . read_setting :: < AudioInfo > ( ) . await ; self . update_volume_streams ( UpdateFrom :: AudioInfo ( audio_info ) , push_to_audio_core ) . await ? ; Ok ( ( ) ) }
Extracts the audio state from persistent storage and restores it on
the local state.
Extracts the audio state from persistent storage and restores it on the local state .
&mut self
push_to_audio_core
bool