/// Translates the given wire params struct to a FIDL params struct.
Translates the given wire params struct to a FIDL params struct.
Translates the given wire params struct to a FIDL params struct .
pub fn wire_parameters_to_fidl_stream_type(
    req: &PcmSetParamsRequest,
) -> Option<fidl_fuchsia_media::AudioStreamType> {
    Some(fidl_fuchsia_media::AudioStreamType {
        sample_format: wire_format_to_fidl(req.format)?,
        frames_per_second: wire_rate_to_fidl(req.rate)?,
        channels: req.channels as u32,
    })
}
pub fn wire_parameters_to_fidl_stream_type ( req : & PcmSetParamsRequest , ) -> Option < fidl_fuchsia_media :: AudioStreamType > { Some ( fidl_fuchsia_media :: AudioStreamType { sample_format : wire_format_to_fidl ( req . format ) ? , frames_per_second : wire_rate_to_fidl ( req . rate ) ? , channels : req . channels as u32 , } ) }
Translates the given wire params struct to a FIDL params struct.
Translates the given wire params struct to a FIDL params struct .
req
&PcmSetParamsRequest