|
arduino-audio-tools
|
Integration into Faust DSP see https://faust.grame.fr/ To generate code from faust, select src and cpp. More...
#include <AudioFaust.h>
Public Member Functions | |
| FaustStream (bool useSeparateOutputBuffer=true) | |
| Constructor for Faust as Audio Source. | |
| FaustStream (Print &out, bool useSeparateOutputBuffer=true) | |
| Constructor for Faust as signal Processor - changing an input signal and sending it to out. | |
| ~FaustStream () | |
| virtual void | addNotifyAudioChange (AudioInfoSupport &bi) |
| Adds target to be notified about audio changes. | |
| virtual AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfoOut () |
| int | available () override |
| int | availableForWrite () override |
| virtual bool | begin () |
| bool | begin (AudioInfo cfg) |
| Checks the parameters and starts the processing. | |
| virtual FAUSTFLOAT | bend () |
| virtual void | clearNotifyAudioChange () |
| Deletes all change notify subscriptions. | |
| AudioInfo | defaultConfig () |
| void | end () |
| Ends the processing. | |
| virtual void | flush () override |
| virtual FAUSTFLOAT | frequency () |
| virtual FAUSTFLOAT | gain () |
| dsp * | getDSP () |
| Provides a pointer to the actual dsp object. | |
| bool | isNotifyActive () |
| Checks if the automatic AudioInfo update is active. | |
| virtual FAUSTFLOAT | labelValue (const char *label) |
| Determines the value of a parameter. | |
| virtual bool | midiOff (int note) |
| virtual bool | midiOn (int note, FAUSTFLOAT gain) |
| virtual | operator bool () |
| size_t | readBytes (uint8_t *data, size_t len) override |
| Used if FaustStream is used as audio source. | |
| virtual size_t | readSilence (uint8_t *buffer, size_t length) |
| Source to generate silence: just sets the buffer to 0. | |
| 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 bool | setBend (FAUSTFLOAT bend) |
| virtual bool | setFrequency (FAUSTFLOAT freq) |
| virtual bool | setGain (FAUSTFLOAT gain) |
| virtual bool | setLabelValue (const char *label, FAUSTFLOAT value) |
| Defines the value of a parameter. | |
| virtual bool | setMidiNote (int note) |
| void | setNotifyActive (bool flag) |
| Deactivate/Reactivate automatic AudioInfo updates: (default is active) | |
| void | setWriteBufferSize (int size) |
| size_t | write (const uint8_t *data, size_t len) override |
| Used if FaustStream is used as audio sink or filter. | |
| virtual size_t | write (uint8_t ch) override |
| virtual void | writeSilence (size_t len) |
| Writes len bytes of silence (=0). | |
Protected Member Functions | |
| void | allocateFloatBuffer (int samples, bool allocate_out) |
| Allocate the buffer that is needed by faust. | |
| bool | checkChannels () |
| Checks the input and output channels and updates the is_write or is_read scenario flags. | |
| template<class T > | |
| void | convertFloatBufferToInt (int samples, FAUSTFLOAT **p_float_in, void *data_out) |
| Converts the float buffer to int values. | |
| template<class T > | |
| void | convertIntBufferToFloat (int samples, void *data_in, FAUSTFLOAT **p_float_out) |
| Converts the int buffer to float values. | |
| void | deleteFloatBuffer () |
| virtual int | not_supported (int out, const char *msg="") |
| FAUSTFLOAT | noteToFrequency (uint8_t x) |
| void | notifyAudioChange (AudioInfo info) |
| void | refillReadBuffer () |
| Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read() | |
| template<class T > | |
| size_t | writeT (const uint8_t *write_data, size_t len) |
| Used if FaustStream is used as audio sink or filter. | |
Protected Attributes | |
| int | _timeout = 10 |
| int | buffer_allocated |
| int | bytes_per_frame |
| int | bytes_per_sample |
| AudioInfo | cfg |
| float | float_to_int_factor = 32767 |
| bool | gate_exists = false |
| AudioInfo | info |
| bool | is_init = false |
| bool | is_notify_active = true |
| bool | is_read = false |
| bool | is_write = false |
| Vector< AudioInfoSupport * > | notify_vector |
| FAUSTFLOAT ** | p_buffer =nullptr |
| FAUSTFLOAT ** | p_buffer_out =nullptr |
| DSP * | p_dsp = nullptr |
| Print * | p_out =nullptr |
| RingBuffer< uint8_t > | tmp_in {0} |
| RingBuffer< uint8_t > | tmp_out {0} |
| UI | ui |
| bool | with_output_buffer |
| int | write_buffer_size = MAX_SINGLE_CHARS |
Integration into Faust DSP see https://faust.grame.fr/ To generate code from faust, select src and cpp.
|
inline |
Constructor for Faust as Audio Source.
Constructor for Faust as signal Processor - changing an input signal and sending it to out.
|
inline |
|
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.
Allocate the buffer that is needed by faust.
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 >.
Reimplemented from BaseStream.
Reimplemented from BaseStream.
Reimplemented in AudioOutputWithCallback, AudioMP34DT05, I2SCodecStream, MozziStream, PureDataStream, SPDIFOutput, VS1053Stream, WM8960Stream, AdaptiveResamplingStream, AudioLoRa, ESPNowStream, VBANStream, AudioEffectStreamT< T >, Equalizer3Bands, Equalizer3BandsPerChannel, I2SStream, AudioStreamWrapper, TimerCallbackAudioStream, FrequencyDetectorAutoCorrelation, GoertzelStream, ResampleStreamT< TInterpolator >, FileLoopT< FileType >, FileLoopT< File >, LoRaStream, EncodedAudioStream, AudioBoardStream, AudioFFTBase, AudioKitStream, MiniAudioStream, PortAudioStream, StdioStream, HLSStreamT< URLStream >, AnalogAudioArduino, AnalogAudioStream, AdapterAudioOutputToAudioStream, TimedStream, MemoryStream, GeneratedSoundStream< T >, GeneratedSoundStream< int16_t >, MeasuringStream, ProgressStream, Throttle, InputMerge< T >, CallbackStream, FilteredStream< T, TF >, FilteredStream< int16_t, int16_t >, VolumeMeter, AudioInputMonitor, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, CatStream, QueueStream< T >, QueueStream< uint8_t >, DynamicMemoryStream, Pipeline, Pipeline::ModifyingStreamAdapter, ResampleStream, VolumeStream, and EqualizerNBands< SampleT, AccT, NUM_TAPS, NUM_BANDS >.
Checks the parameters and starts the processing.
|
inlinevirtual |
Checks the input and output channels and updates the is_write or is_read scenario flags.
Deletes all change notify subscriptions.
Reimplemented in RTSPClient< TcpClient, UdpSocket >.
|
inlineprotected |
Converts the float buffer to int values.
|
inlineprotected |
Converts the int buffer to float values.
Ends the processing.
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.
|
inlinevirtual |
|
inlinevirtual |
Determines the value of a parameter.
|
inlineprotected |
Used if FaustStream is used as audio source.
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.
Implements AudioInfoSupport.
Reimplemented in VS1053Stream, WM8960Stream, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, VolumeStream, MiniAudioStream, PortAudioStream, I2SCodecStream, MozziStream, SPDIFOutput, AudioLoRa, AnalogAudioStream, I2SStream, TimerCallbackAudioStream, AudioBLEStream, LoRaStream, AudioFFTBase, AudioKitStream, VBANStream, AnalogAudioArduino, Equalizer3Bands, Equalizer3BandsPerChannel, AdapterAudioOutputToAudioStream, TimedStream, MeasuringStream, ProgressStream, CallbackStream, VolumeMeter, AudioInputMonitor, FormatConverterStream, FadeStream, GoertzelStream, Pipeline::ModifyingStreamAdapter, MDFEchoCancellationStream< Allocator >, EncodedAudioStream, PureDataStream, GeneratedSoundStream< T >, GeneratedSoundStream< int16_t >, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Defines the value of a parameter.
Deactivate/Reactivate automatic AudioInfo updates: (default is active)
Used if FaustStream is used as audio sink or filter.
Reimplemented from AudioStream.
Reimplemented in MemoryStream, AudioStreamWrapper, BufferedTaskStream, RingBufferStream, BufferedStream, and URLStream.
Used if FaustStream is used as audio sink or filter.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |