|
arduino-audio-tools
|
Analog Data IO using a timer and the Arduino analogRead() method and writing using analogWrite();. More...
#include <AnalogAudioArduino.h>
Protected Member Functions | |
| int | decimation () |
| int | effectiveOutputSampleRate () |
| Returns the effective output sample rate. | |
| bool | isCombinedChannel () |
| bool | isDecimateActive () |
| virtual int | not_supported (int out, const char *msg="") |
| void | notifyAudioChange (AudioInfo info) |
| void | refillReadBuffer () |
| Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read() | |
| bool | setupBuffer () |
| bool | setupPins () |
| pinmode input for defined analog pins | |
| bool | setupTimer () |
| bool | setupTx () |
| void | updateAvg () |
| void | updateMinMax (int value) |
Static Protected Member Functions | |
| static void | callback (void *arg) |
| Sample data and write to buffer. | |
Protected Attributes | |
| int | _timeout = 10 |
| int | avg_value |
| BaseBuffer< uint8_t > * | buffer = nullptr |
| AnalogConfigStd | config |
| int | count |
| int | decim = 1 |
| uint16_t | frame_size = 0 |
| AudioInfo | info |
| bool | is_active = false |
| bool | is_combined_channels = false |
| bool | is_notify_active = true |
| int | max |
| int | min |
| Vector< AudioInfoSupport * > | notify_vector |
| int | result_factor = 1 |
| TimerAlarmRepeating | timer |
| RingBuffer< uint8_t > | tmp_in {0} |
| RingBuffer< uint8_t > | tmp_out {0} |
| int | write_buffer_size = MAX_SINGLE_CHARS |
Analog Data IO using a timer and the Arduino analogRead() method and writing using analogWrite();.
|
default |
|
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 JupyterAudioT< T >, MozziStream, TimerCallbackAudioStream, EncodedAudioStream, PureDataStream, AdapterAudioOutputToAudioStream, GeneratedSoundStream< T >, GeneratedSoundStream< int16_t >, and InputMerge< T >.
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 >.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Reopen with last config.
Reimplemented from BaseStream.
|
inline |
Deletes all change notify subscriptions.
Reimplemented in RTSPClient< TcpClient, UdpSocket >.
|
inlineprotected |
|
inline |
provides the default configuration
|
inlineprotected |
Returns the effective output sample rate.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
Reimplemented from Print.
Reimplemented in PureDataStream, URLStreamBufferedT< T >, URLStreamBufferedT< ICYStream >, AudioStreamWrapper, ResampleStream, URLStream, BufferedTaskStream, I2SStream, MemoryStream, RingBufferStream, GeneratedSoundStream< T >, GeneratedSoundStream< int16_t >, and BufferedStream.
|
inlineprotected |
|
inlineprotected |
The requested sampling rate is too hight: we only process half of the samples so we can half the sampling rate
Provides the sampled audio data.
Reimplemented from AudioStream.
Source to generate silence: just sets the buffer to 0.
|
inlineprotectedinherited |
Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read()
|
inlinevirtualinherited |
Removes a target in order not to be notified about audio changes.
Reimplemented in RTSPClient< TcpClient, UdpSocket >.
Defines the input AudioInfo.
Reimplemented from AudioStream.
Deactivate/Reactivate automatic AudioInfo updates: (default is active)
|
inlineprotected |
|
inlineprotected |
pinmode input for defined analog pins
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Reimplemented from AudioStream.
Reimplemented in MemoryStream, AudioStreamWrapper, BufferedTaskStream, RingBufferStream, BufferedStream, and URLStream.
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |