Module encoders

Source
Expand description
  • The encoders for the WaveWriter, each of these provides the same API for it to use. You can use it too.

Modules§

flac_enc
The FLAC encoder for WaveWriter
mp3
The MP3 encoder for WaveWriter
oggvorbis_enc
The OggVorbis encoderMicrosoft says this should be supported: see https://github.com/tpn/winsdk-10/blob/master/Include/10.0.14393.0/shared/mmreg.h#L2321FFmpeg does not support this format: see https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/release/7.1:/libavformat/riff.c
opus
The Opus encoder for WaveWriter

Structs§

AdpcmEncoderWrap
AdpcmEncoderWrap<E>: encode i16 audio samples to ADPCM nibbles
DummyEncoder
The DummyEncoder is not for you to use, it allows me to implement Default for Encoder<'a>
Encoder
The Encoder struct contains all of the encoder types and provides convenient functions that have generic type parameters.It just translates the API to the inner encoder API.
PcmEncoder
PcmEncoder: convert various formats of PCM samples to the WAV file specific sample type
PcmXLawEncoderWrap
PcmXLawEncoderWrap: encode i16 audio samples to bytes

Traits§

EncoderToImpl
An encoder that accepts samples of type S and encodes them into the file’s target format. Due to trait bounds prohibiting generic parameters, each function must be explicitly implemented for every supported type.