|
arduino-audio-tools
|
#include <CodecOpusOgg.h>
Protected Member Functions | |
| bool | emitBufferedPacket (ogg_int64_t granulePosition, bool endOfStream) |
| void | notifyAudioChange (AudioInfo info) |
| virtual bool | writeFooter () |
| bool | writeHeader () override |
| virtual bool | writePacket (ogg_packet &op, int flag=0) |
Static Protected Member Functions | |
| static size_t | ogg_io_write (void *user_handle, void *buf, size_t n) |
Protected Attributes | |
| int | _timeout = 10 |
| AudioInfo | cfg |
| OpusOggCommentHeader | comment |
| ogg_int64_t | finalPacketSamples = 0 |
| size_t | granulepos = 0 |
| bool | hasPendingPacket = false |
| OpusOggHeader | header |
| bool | is_active = false |
| bool | is_audio = false |
| bool | is_notify_active = true |
| bool | is_open = false |
| Vector< AudioInfoSupport * > | notify_vector |
| ogg_packet | oh |
| ogg_packet | oh1 |
| ogg_packet | op |
| OGGZ * | p_oggz = nullptr |
| Print * | p_out = nullptr |
| size_t | packetno = 0 |
| Vector< uint8_t > | pendingPacket {0} |
| ogg_int64_t | samplesPerPacket = 960 |
| long | serialno = -1 |
| SingleBuffer< uint8_t > | tmp {MAX_SINGLE_CHARS} |
| int | tmpPos = 0 |
| ogg_int64_t | totalGranulepos = 0 |
|
inlinevirtualinherited |
Adds target to be notified about audio changes.
Reimplemented in CodecNOP, EncodedAudioOutput, EncodedAudioStream, AACDecoderFDK, DecoderBasic, CodecChain, MP3DecoderHelix, MP3DecoderMAD, OggContainerDecoder, RTSPClient< TcpClient, UdpSocket >, Pipeline, and Pipeline::ModifyingStreamAdapter.
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in AdapterPrintToAudioOutput, EncodedAudioOutput, and AdapterAudioStreamToAudioOutput.
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 >.
Reimplemented from Print.
Reimplemented in AudioESP32ULP, RTSPOutput< Platform >, SPIAudioMaster, EncodedAudioOutput, AudioServerEx, AudioSyncWriter, AdapterAudioStreamToAudioOutput, CsvOutput< T >, MemoryOutput, and PWMAudioOutput< PWMDriverT >.
starts the processing using the actual AudioInfo
Reimplemented from AudioOutput.
Reimplemented in AudioESP32ULP, RTSPOutput< Platform >, RTTTLOutput< T >, ChannelsSelectOutput, CsvOutput< T >, and EncodedAudioOutput.
Deletes all change notify subscriptions.
Reimplemented in RTSPClient< TcpClient, UdpSocket >.
|
inlineprotected |
|
inlineoverridevirtual |
stops the processing
Reimplemented from OggContainerOutput.
Reimplemented from Print.
Reimplemented in MultiOutput, and HexDumpOutput.
If true we need to release the related memory in the destructor.
Reimplemented in AdapterPrintToAudioOutput, and AdapterAudioStreamToAudioOutput.
|
inlineinherited |
|
inlinestaticprotectedinherited |
Reimplemented in RTSPOutput< Platform >, EncodedAudioOutput, and AdapterAudioStreamToAudioOutput.
|
inlinevirtualinherited |
Removes a target in order not to be notified about audio changes.
Reimplemented in RTSPClient< TcpClient, UdpSocket >.
Defines the input AudioInfo.
Implements AudioInfoSupport.
Reimplemented in ChannelsSelectOutput, AdapterPrintToAudioOutput, MultiOutput, SPIAudioMaster, AdapterAudioStreamToAudioOutput, CsvOutput< T >, PWMAudioOutput< PWMDriverT >, and EncodedAudioOutput.
|
inline |
Deactivate/Reactivate automatic AudioInfo updates: (default is active)
Writes raw data to be encoded and packaged.
Reimplemented from OggContainerOutput.
Reimplemented in MetaDataOutput, and MultiOutput.
|
inlineoverrideprotectedvirtual |
Reimplemented from OggContainerOutput.
|
inlineprotectedvirtualinherited |
Writes n 0 values (= silence)
| len |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |