|
arduino-audio-tools
|
Outputs to ESP32 DAC through the ULP (Ultra> Low Power coprocessor), freeing I2S for other uses. Connect left channel on pin 25 Connect right channel on pin 26. More...
#include <AudioESP32ULP.h>
Public Member Functions | |
| virtual void | addNotifyAudioChange (AudioInfoSupport &bi) |
| Adds target to be notified about audio changes. | |
| virtual void | addNotifyAudioChange (AudioInfoSupport &bi) |
| Adds target to be notified about audio changes. | |
| virtual AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfoOut () |
| virtual AudioInfo | audioInfoOut () |
| int | availableForWrite () |
| virtual bool | begin () |
| virtual bool | begin (AudioInfo info) |
| bool | begin (AudioInfo info) |
| Starts the processing. I the output is mono, we can determine the output pin by selecting DAC1 (gpio25) or DAC2 (gpio26). | |
| virtual void | clearNotifyAudioChange () |
| Deletes all change notify subscriptions. | |
| virtual void | clearNotifyAudioChange () |
| Deletes all change notify subscriptions. | |
| AudioInfo | defaultConfig () |
| void | end () |
| virtual void | flush () |
| virtual void | flush () |
| virtual bool | isDeletable () |
| If true we need to release the related memory in the destructor. | |
| virtual bool | isDeletable () |
| If true we need to release the related memory in the destructor. | |
| bool | isNotifyActive () |
| Checks if the automatic AudioInfo update is active. | |
| bool | isNotifyActive () |
| Checks if the automatic AudioInfo update is active. | |
| virtual | operator bool () |
| virtual | operator bool () |
| virtual bool | removeNotifyAudioChange (AudioInfoSupport &bi) |
| Removes a target in order not to be notified about audio changes. | |
| virtual bool | removeNotifyAudioChange (AudioInfoSupport &bi) |
| Removes a target in order not to be notified about audio changes. | |
| virtual void | setAudioInfo (AudioInfo newInfo) override |
| Defines the input AudioInfo. | |
| virtual void | setAudioInfo (AudioInfo newInfo) override |
| Defines the input AudioInfo. | |
| void | setMinWriteBytes (int bytes) |
| Selects the limit for the availableForWrite to report the data. | |
| void | setMonoDAC (UlpDac dac) |
| Selects the DAC when we have a mono signal. | |
| void | setNotifyActive (bool flag) |
| Deactivate/Reactivate automatic AudioInfo updates: (default is active). | |
| void | setNotifyActive (bool flag) |
| Deactivate/Reactivate automatic AudioInfo updates: (default is active). | |
| virtual size_t | write (uint8_t ch) override |
| size_t | write (const uint8_t *data, size_t len) |
| virtual void | writeSilence (size_t len) |
| virtual void | writeSilence (size_t len) |
Protected Member Functions | |
| uint32_t | create_I_BXI (uint32_t imm_pc) |
| uint32_t | create_I_WR_REG (uint32_t reg, uint32_t low_bit, uint32_t high_bit, uint32_t val) |
| void | notifyAudioChange (AudioInfo info) |
| void | notifyAudioChange (AudioInfo info) |
| bool | setup () |
| bool | writeFrame (int16_t sample[2]) |
Protected Attributes | |
| int | _timeout = 10 |
| int | activeDACs = 3 |
| uint8_t | bufferedOddSample = 128 |
| const uint32_t | bufferStart = indexAddress + 1 |
| AudioInfo | cfg |
| const uint32_t | dacTableStart1 = 2048 - 512 |
| const uint32_t | dacTableStart2 = dacTableStart1 - 512 |
| int | hertz |
| const uint32_t | indexAddress = opcodeCount |
| bool | is_active = false |
| bool | is_notify_active = true |
| int | lastFilledWord = 0 |
| int | min_write_bytes = 128 |
| Vector< AudioInfoSupport * > | notify_vector |
| const int | opcodeCount = 20 |
| UlpDac | selected_mono_dac = ULP_DAC1 |
| bool | stereoOutput = true |
| SingleBuffer< uint8_t > | tmp { 8 } |
| int | tmpPos = 0 |
| const int | totalSamples = totalSampleWords * 2 |
| uint32_t | totalSampleWords |
| bool | waitingOddSample = true |
Outputs to ESP32 DAC through the ULP (Ultra> Low Power coprocessor), freeing I2S for other uses. Connect left channel on pin 25 Connect right channel on pin 26.
|
inlinevirtualinherited |
Adds target to be notified about audio changes.
Reimplemented in CodecNOP, CodecNOP, EncodedAudioOutput, and EncodedAudioStream.
|
inlinevirtualinherited |
Adds target to be notified about audio changes.
Reimplemented in CodecNOP, CodecNOP, EncodedAudioOutput, and EncodedAudioStream.
|
inlineoverridevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in AdapterAudioStreamToAudioOutput, AdapterPrintToAudioOutput, AdapterAudioStreamToAudioOutput, AdapterPrintToAudioOutput, EncodedAudioOutput, and EncodedAudioOutput.
|
inlineoverridevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in AdapterAudioStreamToAudioOutput, AdapterPrintToAudioOutput, AdapterAudioStreamToAudioOutput, AdapterPrintToAudioOutput, EncodedAudioOutput, and EncodedAudioOutput.
|
inlinevirtualinherited |
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in ChannelFormatConverterStream, ChannelFormatConverterStreamT< T >, FormatConverterStream, MP3EncoderShine, NumberFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, Pipeline, PureDataStream, PWMAudioOutput< PWMDriverT >, ResampleStream, ResampleStreamT< TInterpolator >, and SupportedRatesStream.
|
inlinevirtualinherited |
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in ChannelFormatConverterStream, ChannelFormatConverterStreamT< T >, FormatConverterStream, MP3EncoderShine, NumberFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, Pipeline, PureDataStream, PWMAudioOutput< PWMDriverT >, ResampleStream, ResampleStreamT< TInterpolator >, and SupportedRatesStream.
|
inlinevirtual |
Reimplemented from AudioOutput.
|
inlinevirtualinherited |
Reimplemented in AdapterAudioStreamToAudioOutput, AdapterAudioStreamToAudioOutput, ChannelsSelectOutput, CsvOutput< T >, CsvOutput< T >, EncodedAudioOutput, HexDumpOutput, HexDumpOutput, MemoryOutput, MemoryOutput, AudioServerEx, ChannelsSelectOutput, CsvOutput< T >, EncodedAudioOutput, FFTEffect, FFTEqualizer, FFTPitchShift, HexDumpOutput, MemoryOutput, MetaDataFilter, OggContainerOutput, OSCContainerEncoder::OSCOutput, PitchShiftOutput< T, BufferT >, PWMAudioOutput< PWMDriverT >, R2ROutput, RTSPOutput< Platform >, and RTTTLOutput< T >.
Reimplemented in ChannelsSelectOutput, CsvOutput< T >, CsvOutput< T >, and EncodedAudioOutput.
|
inline |
Starts the processing. I the output is mono, we can determine the output pin by selecting DAC1 (gpio25) or DAC2 (gpio26).
|
inlinevirtualinherited |
Deletes all change notify subscriptions.
Reimplemented in RTSPClient< TcpClient, UdpSocket >, RTSPClient< EthernetClient, EthernetUDP >, and RTSPClient< WiFiClient, WiFiUDP >.
|
inlinevirtualinherited |
Deletes all change notify subscriptions.
Reimplemented in RTSPClient< TcpClient, UdpSocket >, RTSPClient< EthernetClient, EthernetUDP >, and RTSPClient< WiFiClient, WiFiUDP >.
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlinevirtual |
Reimplemented from AudioOutput.
|
inlinevirtualinherited |
Reimplemented from Print.
Reimplemented in HexDumpOutput, HexDumpOutput, MultiOutput, HexDumpOutput, and MultiOutput.
|
inlinevirtualinherited |
Reimplemented from Print.
Reimplemented in HexDumpOutput, HexDumpOutput, MultiOutput, HexDumpOutput, and MultiOutput.
|
inlinevirtualinherited |
If true we need to release the related memory in the destructor.
Reimplemented in AdapterAudioStreamToAudioOutput, AdapterPrintToAudioOutput, AdapterAudioStreamToAudioOutput, and AdapterPrintToAudioOutput.
|
inlinevirtualinherited |
If true we need to release the related memory in the destructor.
Reimplemented in AdapterAudioStreamToAudioOutput, AdapterPrintToAudioOutput, AdapterAudioStreamToAudioOutput, and AdapterPrintToAudioOutput.
|
inlineinherited |
Checks if the automatic AudioInfo update is active.
|
inlineinherited |
Checks if the automatic AudioInfo update is active.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlinevirtualinherited |
Reimplemented in AdapterAudioStreamToAudioOutput, AdapterAudioStreamToAudioOutput, EncodedAudioOutput, EncodedAudioOutput, and RTSPOutput< Platform >.
|
inlinevirtualinherited |
Reimplemented in AdapterAudioStreamToAudioOutput, AdapterAudioStreamToAudioOutput, EncodedAudioOutput, EncodedAudioOutput, and RTSPOutput< Platform >.
|
inlinevirtualinherited |
Removes a target in order not to be notified about audio changes.
|
inlinevirtualinherited |
Removes a target in order not to be notified about audio changes.
|
inlineoverridevirtualinherited |
Defines the input AudioInfo.
Implements AudioInfoSupport.
Reimplemented in AdapterAudioStreamToAudioOutput, AdapterPrintToAudioOutput, ChannelsSelectOutput, CsvOutput< T >, CsvOutput< T >, EncodedAudioOutput, and MultiOutput.
|
inlineoverridevirtualinherited |
Defines the input AudioInfo.
Implements AudioInfoSupport.
Reimplemented in AdapterAudioStreamToAudioOutput, AdapterPrintToAudioOutput, ChannelsSelectOutput, CsvOutput< T >, CsvOutput< T >, EncodedAudioOutput, and MultiOutput.
|
inline |
Selects the limit for the availableForWrite to report the data.
|
inline |
Selects the DAC when we have a mono signal.
|
inlineinherited |
Deactivate/Reactivate automatic AudioInfo updates: (default is active).
|
inlineinherited |
Deactivate/Reactivate automatic AudioInfo updates: (default is active).
|
inlineprotected |
|
inlineoverridevirtualinherited |
Reimplemented in MultiOutput, MetaDataOutput, and MultiOutput.
|
inlinevirtual |
Implements AudioOutput.
|
inlineprotected |
|
inlinevirtualinherited |
Writes n 0 values (= silence)
| len |
|
inlinevirtualinherited |
Writes n 0 values (= silence)
| len |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protected |