arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | Protected Attributes | List of all members
VolumeSupport Class Reference

Supports the setting and getting of the volume. More...

#include <AudioTypes.h>

Inheritance diagram for VolumeSupport:
A2DPStream AudioPlayer Boost GeneratorFromStream< T > I2SCodecStream Maximilian MozziStream VS1053Stream VolumeStream

Public Member Functions

virtual bool setVolume (float volume)
 define 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

float volume_value = 1.0f
 

Detailed Description

Supports the setting and getting of the volume.

Member Function Documentation

◆ setVolume()

virtual bool setVolume ( float  volume)
inlinevirtual

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

Reimplemented in Maximilian, I2SCodecStream, VS1053Stream, VolumeStream, A2DPStream, and AudioPlayer.

◆ volume()

virtual float volume ( )
inlinevirtual

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: