pub fn stop(&mut self) -> Result<()> {
        match self.thread_info.take() {
            Some(mut thread_info) => Ok(thread_info.destroy()?),
            None => Err(Error::ZeroPlayerIsNotRunning),
        }
    }
/// Stops playing zeros in the background thread.
/// This function must be called when self.running() returns true.
///
/// # Errors
///
/// * If it's called again when the `ZeroPlayer` is not running.
/// * Failed to play zeros to internal speakers via CRAS client.
/// * Failed to join the background thread.
Stops playing zeros in the background thread.
This function must be called when self.running() returns true.
Stops playing zeros in the background thread . This function must be called when self . running () returns true .
pub fn stop(&mut self) -> Result<()> {
        match self.thread_info.take() {
            Some(mut thread_info) => Ok(thread_info.destroy()?),
            None => Err(Error::ZeroPlayerIsNotRunning),
        }
    }
pub fn stop ( & mut self ) -> Result < ( ) > { match self . thread_info . take ( ) { Some ( mut thread_info ) => Ok ( thread_info . destroy ( ) ? ) , None => Err ( Error :: ZeroPlayerIsNotRunning ) , } }
Stops playing zeros in the background thread.
Stops playing zeros in the background thread .
&mut self
&mut self
errors
If it's called again when the `ZeroPlayer` is not running.
Failed to play zeros to internal speakers via CRAS client.
Failed to join the background thread.
If it ' s called again when the ` ZeroPlayer ` is not running . Failed to play zeros to internal speakers via CRAS client . Failed to join the background thread .