sendspin 0.3.6

Hyper-efficient Rust implementation of the Sendspin Protocol for synchronized multi-room audio streaming
Documentation
// ABOUTME: Audio decoder implementations
// ABOUTME: PCM and FLAC decoders (Opus planned)

/// FLAC decoder implementation
pub mod flac;
/// PCM decoder implementation
pub mod pcm;

pub use flac::FlacDecoder;
pub use pcm::{PcmDecoder, PcmEndian};

use crate::error::Error;
use std::sync::Arc;

/// Decoder trait for audio codecs
pub trait Decoder {
    /// Decode raw audio data into samples
    fn decode(&self, data: &[u8]) -> Result<Arc<[i32]>, Error>;
}