pub fn sampling_frequency(&self) -> avdtp::Result<u32> {
        let hz = match AacSamplingFrequency::from_bits_truncate(self.0.sampling_frequency()) {
            AacSamplingFrequency::FREQ8000HZ => 8000,
            AacSamplingFrequency::FREQ11025HZ => 11025,
            AacSamplingFrequency::FREQ12000HZ => 12000,
            AacSamplingFrequency::FREQ16000HZ => 16000,
            AacSamplingFrequency::FREQ22050HZ => 22050,
            AacSamplingFrequency::FREQ24000HZ => 24000,
            AacSamplingFrequency::FREQ32000HZ => 32000,
            AacSamplingFrequency::FREQ44100HZ => 44100,
            AacSamplingFrequency::FREQ48000HZ => 48000,
            AacSamplingFrequency::FREQ64000HZ => 64000,
            AacSamplingFrequency::FREQ88200HZ => 88200,
            AacSamplingFrequency::FREQ96000HZ => 96000,
            _ => return Err(avdtp::Error::OutOfRange),
        };
        Ok(hz)
    }
/// Returns the sampling frequeency selected, in hz.
/// Returns Error::OutOfRange if multiple frequencies are selected.
Returns the sampling frequeency selected, in hz.
Returns Error::OutOfRange if multiple frequencies are selected.
Returns the sampling frequeency selected in hz . Returns Error :: OutOfRange if multiple frequencies are selected .
pub fn sampling_frequency(&self) -> avdtp::Result<u32> {
        let hz = match AacSamplingFrequency::from_bits_truncate(self.0.sampling_frequency()) {
            AacSamplingFrequency::FREQ8000HZ => 8000,
            AacSamplingFrequency::FREQ11025HZ => 11025,
            AacSamplingFrequency::FREQ12000HZ => 12000,
            AacSamplingFrequency::FREQ16000HZ => 16000,
            AacSamplingFrequency::FREQ22050HZ => 22050,
            AacSamplingFrequency::FREQ24000HZ => 24000,
            AacSamplingFrequency::FREQ32000HZ => 32000,
            AacSamplingFrequency::FREQ44100HZ => 44100,
            AacSamplingFrequency::FREQ48000HZ => 48000,
            AacSamplingFrequency::FREQ64000HZ => 64000,
            AacSamplingFrequency::FREQ88200HZ => 88200,
            AacSamplingFrequency::FREQ96000HZ => 96000,
            _ => return Err(avdtp::Error::OutOfRange),
        };
        Ok(hz)
    }
pub fn sampling_frequency ( & self ) -> avdtp :: Result < u32 > { let hz = match AacSamplingFrequency :: from_bits_truncate ( self . 0 . sampling_frequency ( ) ) { AacSamplingFrequency :: FREQ8000HZ => 8000 , AacSamplingFrequency :: FREQ11025HZ => 11025 , AacSamplingFrequency :: FREQ12000HZ => 12000 , AacSamplingFrequency :: FREQ16000HZ => 16000 , AacSamplingFrequency :: FREQ22050HZ => 22050 , AacSamplingFrequency :: FREQ24000HZ => 24000 , AacSamplingFrequency :: FREQ32000HZ => 32000 , AacSamplingFrequency :: FREQ44100HZ => 44100 , AacSamplingFrequency :: FREQ48000HZ => 48000 , AacSamplingFrequency :: FREQ64000HZ => 64000 , AacSamplingFrequency :: FREQ88200HZ => 88200 , AacSamplingFrequency :: FREQ96000HZ => 96000 , _ => return Err ( avdtp :: Error :: OutOfRange ) , } ; Ok ( hz ) }
Returns the sampling frequeency selected, in hz.
Returns the sampling frequeency selected in hz .
&self
&self