pub trait Compression<R, W>{
// Required methods
fn compress(
&self,
reader: &mut R,
writer: &mut W,
) -> PortableAudioLibraryResult<()>;
fn decompress(
&self,
reader: &mut R,
writer: &mut W,
) -> PortableAudioLibraryResult<()>;
}
Expand description
Compresses and decompresses audio data.
Required Methods§
Sourcefn compress(
&self,
reader: &mut R,
writer: &mut W,
) -> PortableAudioLibraryResult<()>
fn compress( &self, reader: &mut R, writer: &mut W, ) -> PortableAudioLibraryResult<()>
Compresses the audio data from the reader to the writer.
Sourcefn decompress(
&self,
reader: &mut R,
writer: &mut W,
) -> PortableAudioLibraryResult<()>
fn decompress( &self, reader: &mut R, writer: &mut W, ) -> PortableAudioLibraryResult<()>
Decompresses the audio data from the reader to the writer.