Sayonara Player
|
The CrossFader class. More...
#include <Fadeable.h>
Public Types | |
enum class | FadeMode : unsigned char { NoFading =0 , FadeIn , FadeOut } |
Public Member Functions | |
Fadeable (const Fadeable &other)=delete | |
MilliSeconds | fadingTimeMs () const |
get fading time in ms. This is useful to calculate the beginning of the next track More... | |
void | fadeIn () |
start to fade in | |
void | fadeOut () |
start to fade out | |
Protected Member Functions | |
virtual void | stop ()=0 |
virtual void | play ()=0 |
virtual void | postProcessFadeOut ()=0 |
Some additional stuff the implementation class wants to do when fading out. | |
virtual void | postProcessFadeIn ()=0 |
Some additional stuff the implementation class wants to do when fading in. | |
virtual double | internalVolume () const =0 |
get current volume of pipeline More... | |
virtual void | setInternalVolume (double vol)=0 |
set current volume of pipeline More... | |
void | abortFader () |
Stops the current fader process. | |
Friends | |
class | CrossFadeableTimer |
The CrossFader class.
MilliSeconds PipelineExtensions::Fadeable::fadingTimeMs | ( | ) | const |
get fading time in ms. This is useful to calculate the beginning of the next track
|
protectedpure virtual |
get current volume of pipeline
|
protectedpure virtual |
set current volume of pipeline
vol | value between 0 and 1.0 |