Encoder for Codec2 - Depends on https://github.com/pschatzmann/arduino-libcodec2.
More...
#include <CodecCodec2.h>
Encoder for Codec2 - Depends on https://github.com/pschatzmann/arduino-libcodec2.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ Codec2Encoder()
◆ audioInfo()
|
|
inlineoverridevirtualinherited |
◆ audioInfoOut()
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in MP3EncoderShine, PureDataStream, PWMAudioOutput< PWMDriverT >, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
◆ begin() [1/2]
◆ begin() [2/2]
◆ bitsPerSecond()
◆ bytesCompressed()
◆ bytesUncompressed()
| int bytesUncompressed |
( |
| ) |
|
|
inline |
◆ end()
◆ frameDurationUs()
| virtual uint32_t frameDurationUs |
( |
| ) |
|
|
inlinevirtualinherited |
◆ mime()
| virtual const char * mime |
( |
| ) |
|
|
inlinevirtual |
Provides the mime type of the encoded result.
Implements AudioEncoder.
◆ operator bool()
◆ processByte()
| void processByte |
( |
uint8_t |
byte | ) |
|
|
inlineprotected |
◆ samplesPerFrame()
| virtual uint16_t samplesPerFrame |
( |
| ) |
|
|
inlinevirtualinherited |
◆ setAudioInfo()
|
|
inlineoverridevirtualinherited |
Defines the sample rate, number of channels and bits per sample.
Implements AudioWriter.
Reimplemented in MP3EncoderLAME, EncoderBasic, CodecChain, DSFEncoder, FLACEncoder, MP3EncoderShine, OpusAudioEncoder, OpusMultiStreamAudioEncoder, WAVEncoder, CodecNOP, G7xxEncoder, G729Encoder, BinaryContainerEncoder, OggContainerEncoder, OSCContainerEncoder, and MetaDataFilterEncoder.
◆ setBitsPerSecond()
| virtual void setBitsPerSecond |
( |
int |
bps | ) |
|
|
inlinevirtual |
sets bits per second: 3200, 2400, 1600, 1400, 1300, 1200, 700 and 450 bit/s
◆ setOutput()
| virtual void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlinevirtual |
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
◆ write()
| size_t write |
( |
const uint8_t * |
in_ptr, |
|
|
size_t |
in_size |
|
) |
| |
|
inlineoverridevirtual |
◆ writeBlocking()
| void writeBlocking |
( |
Print * |
out, |
|
|
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineprotectedinherited |
◆ bits_per_second
◆ buffer_pos
◆ info
◆ input_buffer
◆ is_active
◆ p_codec2
| struct CODEC2* p_codec2 = nullptr |
|
protected |
◆ p_print
◆ result_buffer
The documentation for this class was generated from the following file: