arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | Protected Attributes | List of all members
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)
 
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
 

Protected Attributes

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

Detailed Description

AudioTools integration with Maximilian.

Member Function Documentation

◆ setVolume()

bool setVolume ( float  f)
inlineoverridevirtual

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

Reimplemented from VolumeSupport.

◆ volume()

virtual float volume ( )
inlinevirtualinherited

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

Reimplemented in I2SCodecStream, VS1053Stream, AudioPlayer, and VolumeStream.


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