pub fn from_encoded_bytes(
        encoded_bytes: &[u8],
        decode_args: DecodeArgs,
    ) -> Result<Self, Error> {
        Self::from_encoded_bytes_with_hint(
            encoded_bytes,
            decode_args,
            DEFAULT_FILE_EXTENSION,
            DEFAULT_MIME_TYPE,
        )
    }
/// Decodes audio stored in an in-memory byte array.
///
/// # Examples
/// ```
/// use babycat::FloatWaveform;
///
/// let encoded_bytes: Vec<u8> = std::fs::read("audio-for-tests/andreas-theme/track.mp3").unwrap();
///
/// let decode_args = Default::default();
///
/// let waveform = FloatWaveform::from_encoded_bytes(
///     &encoded_bytes,
///     decode_args,
/// ).unwrap();
/// assert_eq!(
///     format!("{:?}", waveform),
///     "FloatWaveform { frame_rate_hz: 44100, num_channels: 2, num_frames: 9586944}"
/// );
/// ```
Decodes audio stored in an in-memory byte array.
Decodes audio stored in an in - memory byte array .
pub fn from_encoded_bytes(
        encoded_bytes: &[u8],
        decode_args: DecodeArgs,
    ) -> Result<Self, Error> {
        Self::from_encoded_bytes_with_hint(
            encoded_bytes,
            decode_args,
            DEFAULT_FILE_EXTENSION,
            DEFAULT_MIME_TYPE,
        )
    }
pub fn from_encoded_bytes ( encoded_bytes : & [ u8 ] , decode_args : DecodeArgs , ) -> Result < Self , Error > { Self :: from_encoded_bytes_with_hint ( encoded_bytes , decode_args , DEFAULT_FILE_EXTENSION , DEFAULT_MIME_TYPE , ) }
Decodes audio stored in an in-memory byte array.
Decodes audio stored in an in - memory byte array .
encoded_bytes
&[u8]
decode_args
DecodeArgs
encoded_bytes
&[u8]
decode_args
DecodeArgs
examples
```
use babycat::FloatWaveform.

let encoded_bytes: Vec = std::fs::read("audio-for-tests/andreas-theme/track.mp3").unwrap().

let decode_args = Default::default().

let waveform = FloatWaveform::from_encoded_bytes(
&encoded_bytes,
decode_args,
).unwrap();
assert_eq!(
format!("{:?}", waveform),
"FloatWaveform { frame_rate_hz: 44100, num_channels: 2, num_frames: 9586944}"
);
```
` ` ` use babycat :: FloatWaveform . let encoded_bytes : Vec = std :: fs :: read ( " audio - for - tests / andreas - theme / track . mp3 " ) . unwrap () . let decode_args = Default :: default () . let waveform = FloatWaveform :: from_encoded_bytes ( &encoded_bytes decode_args ) . unwrap () ; assert_eq! ( format! ( " { : ? } " waveform ) " FloatWaveform { frame_rate_hz : 44100 num_channels : 2 num_frames : 9586944 } " ) ; ` ` `