arduino-audio-tools
Loading...
Searching...
No Matches
Maximilian Class Reference

AudioTools integration with Maximilian. More...

#include <MaximilianDSP.h>

Inheritance diagram for Maximilian:
VolumeSupport

Public Member Functions

 Maximilian (Print &out, int bufferSize=DEFAULT_BUFFER_SIZE, void(*callback)(maxi_float_t *channels)=play)
 ~Maximilian ()
void begin (AudioInfo cfg)
 Setup Maximilian with audio parameters.
void copy ()
 Copies the audio data from maximilian to the audio sink, Call this method from the Arduino Loop.
bool setVolume (float f) override
 Defines the volume. The values are between 0.0 and 1.0.
virtual float volume ()
 provides the actual volume in the range of 0.0f to 1.0f
virtual float volume ()
 provides the actual volume in the range of 0.0f to 1.0f

Protected Attributes

Vector< uint8_t > buffer
int buffer_size =256
void(* callback )(maxi_float_t *channels)
AudioInfo cfg
Print * p_sink =nullptr
float volume_value = 1.0f

Detailed Description

AudioTools integration with Maximilian.

Constructor & Destructor Documentation

◆ Maximilian()

Maximilian ( Print & out,
int bufferSize = DEFAULT_BUFFER_SIZE,
void(* callback )(maxi_float_t *channels) = play )
inline

◆ ~Maximilian()

~Maximilian ( )
inline

Member Function Documentation

◆ begin()

void begin ( AudioInfo cfg)
inline

Setup Maximilian with audio parameters.

◆ copy()

void copy ( )
inline

Copies the audio data from maximilian to the audio sink, Call this method from the Arduino Loop.

◆ setVolume()

bool setVolume ( float f)
inlineoverridevirtual

Defines the volume. The values are between 0.0 and 1.0.

Reimplemented from VolumeSupport.

◆ volume() [1/2]

virtual float volume ( )
inlinevirtualinherited

provides the actual volume in the range of 0.0f to 1.0f

Reimplemented in AudioPlayer, I2SCodecStream, USBAudioStreamBase, VolumeStream, and VS1053Stream.

◆ volume() [2/2]

virtual float volume ( )
inlinevirtualinherited

provides the actual volume in the range of 0.0f to 1.0f

Reimplemented in AudioPlayer, I2SCodecStream, USBAudioStreamBase, VolumeStream, and VS1053Stream.

Member Data Documentation

◆ buffer

Vector<uint8_t> buffer
protected

◆ buffer_size

int buffer_size =256
protected

◆ callback

void(* callback) (maxi_float_t *channels)
protected

◆ cfg

AudioInfo cfg
protected

◆ p_sink

Print* p_sink =nullptr
protected

◆ volume_value

float volume_value = 1.0f
protectedinherited

The documentation for this class was generated from the following file: