![]() |
Sayonara Player
|
#include <Crossfader.h>
The CrossFader class.
Public Types | |
enum | FadeMode : unsigned char { NoFading =0, FadeIn, FadeOut } |
Public Member Functions | |
virtual double | get_current_volume () const =0 |
get current volume of pipeline More... | |
virtual void | set_current_volume (double vol)=0 |
set current volume of pipeline More... | |
uint64_t | get_fading_time_ms () const |
get fading time in ms More... | |
void | fade_in () |
start to fade in | |
void | fade_out () |
start to fade out | |
bool | is_fading_out () const |
bool | is_fading_int () const |
void | fader_timed_out () |
function is called periodically. This function should not be used from outside TODO | |
Protected Member Functions | |
void | abort_fader () |
virtual void | stop ()=0 |
virtual void | play ()=0 |
|
pure virtual |
uint64_t Pipeline::CrossFader::get_fading_time_ms | ( | ) | const |
get fading time in ms
|
pure virtual |
set current volume of pipeline
vol | value between 0 and 1.0 |
Implemented in Pipeline::Playback.