ffmpeg-decoder 0.1.3

Decodes audio files using ffmpeg with rust. Can be used as a rodio source.
Documentation
use crate::Decoder;

use rodio::source::Source;

use std::time::Duration;

impl Source for Decoder {
    #[inline]
    fn current_frame_len(&self) -> Option<usize> {
        self._current_frame_len()
    }

    #[inline]
    fn channels(&self) -> u16 {
        self._channels()
    }

    #[inline]
    fn sample_rate(&self) -> u32 {
        self._sample_rate()
    }

    #[inline]
    fn total_duration(&self) -> Option<Duration> {
        self._total_duration()
    }
}