Encoder for SBC - Depends on https://github.com/pschatzmann/arduino-libsbc. Inspired by sbcenc.c.
More...
#include <CodecSBC.h>
Encoder for SBC - Depends on https://github.com/pschatzmann/arduino-libsbc. Inspired by sbcenc.c.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ SBCEncoder()
◆ audioInfo()
|
|
inlineoverridevirtualinherited |
◆ audioInfoOut()
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in PureDataStream, PWMAudioOutput, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
◆ begin() [1/2]
◆ begin() [2/2]
◆ bytesCompressed()
◆ bytesUncompressed()
| int bytesUncompressed |
( |
| ) |
|
|
inline |
◆ codeSize()
Provides the uncompressed length (of the PCM data) in bytes.
◆ end()
◆ frameDurationUs()
◆ frameLength()
Provides the compressed length in bytes (after encoding)
◆ mime()
Provides the mime type of the encoded result.
Implements AudioEncoder.
◆ operator bool()
◆ processByte()
◆ samplesPerFrame()
◆ setAllocationMethod()
| void setAllocationMethod |
( |
int |
allocation_method | ) |
|
|
inline |
Defines the allocation method: Use SBC_AM_LOUDNESS, SBC_AM_SNR.
◆ setAudioInfo()
|
|
inlineoverridevirtualinherited |
Defines the sample rate, number of channels and bits per sample.
Implements AudioWriter.
Reimplemented in MP3EncoderLAME, EncoderBasic, CodecChain, FLACEncoder, OpusAudioEncoder, WAVEncoder, CodecNOP, G7xxEncoder, G729Encoder, BinaryContainerEncoder, OggContainerEncoder, OSCContainerEncoder, and MetaDataFilterEncoder.
◆ setBitpool()
Defines the bitpool (2-86?)
◆ setBlocks()
Defines the number of blocks: valid values (4,8,12,16)
◆ setOutput()
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
◆ setSubbands()
Defines the subbands: Use 4 or 8.
◆ setup()
Determines audio information and calls sbc_init;.
◆ write()
◆ writeBlocking()
◆ allocation_method
◆ bitpool
◆ blocks
◆ buffer
◆ buffer_pos
◆ current_codesize
◆ info
◆ is_active
◆ is_first
◆ p_print
◆ result_buffer
◆ sbc
◆ subbands
The documentation for this class was generated from the following file: