async fn audio_method_to_fidl(
    method_name: String,
    args: Value,
    facade: &AudioFacade,
) -> Result<Value, Error> {
    match method_name.parse()? {
        AudioMethod::PutInputAudio => facade.put_input_audio(args).await,
        AudioMethod::StartInputInjection => facade.start_input_injection(args).await,
        AudioMethod::StopInputInjection => facade.stop_input_injection().await,

        AudioMethod::StartOutputSave => facade.start_output_save().await,
        AudioMethod::StopOutputSave => facade.stop_output_save().await,
        AudioMethod::GetOutputAudio => facade.get_output_audio().await,
    }
}
// Takes SL4F method command and executes corresponding Audio Client methods.
Takes SL4F method command and executes corresponding Audio Client methods.
Takes SL4F method command and executes corresponding Audio Client methods .
async fn audio_method_to_fidl(
    method_name: String,
    args: Value,
    facade: &AudioFacade,
) -> Result<Value, Error> {
    match method_name.parse()? {
        AudioMethod::PutInputAudio => facade.put_input_audio(args).await,
        AudioMethod::StartInputInjection => facade.start_input_injection(args).await,
        AudioMethod::StopInputInjection => facade.stop_input_injection().await,
        AudioMethod::StartOutputSave => facade.start_output_save().await,
        AudioMethod::StopOutputSave => facade.stop_output_save().await,
        AudioMethod::GetOutputAudio => facade.get_output_audio().await,
    }
}
async fn audio_method_to_fidl ( method_name : String , args : Value , facade : & AudioFacade , ) -> Result < Value , Error > { match method_name . parse ( ) ? { AudioMethod :: PutInputAudio => facade . put_input_audio ( args ) . await , AudioMethod :: StartInputInjection => facade . start_input_injection ( args ) . await , AudioMethod :: StopInputInjection => facade . stop_input_injection ( ) . await , AudioMethod :: StartOutputSave => facade . start_output_save ( ) . await , AudioMethod :: StopOutputSave => facade . stop_output_save ( ) . await , AudioMethod :: GetOutputAudio => facade . get_output_audio ( ) . await , } }
Takes SL4F method command and executes corresponding Audio Client methods.
Takes SL4F method command and executes corresponding Audio Client methods .
method_name
String
args
Value
facade
&AudioFacade