Home2L - C/C++ API v1.4-0-g38cc (2024-05-25)
Smart Tools for a Private Home
Functions
app_music.H File Reference
#include "base.H"
Include dependency graph for app_music.H:

Go to the source code of this file.

Functions

void AppMusicPlayerOn ()
 Switch on the music player. If necessary, a connection the the last MPD servcer is openend, and that player is set into the "play" state.
 
void AppMusicPlayerOff ()
 Stop the music player.
 
bool AppMusicSetServer (const char *id)
 Select MPD server by its ID.
 
bool AppMusicIsPlaying ()
 Return 'true' if the player is actually playing.
 
bool AppMusicIsPlayingOrShouldBe ()
 Return 'true' if the player is either actually playing or should be playing, but is not for a reason not intended by the user. Use this variant to decide if background mode can be quit.
 
bool AppMusicIsPlayingForSure (int minDb=-INT_MAX)
 Return 'true' if the player is actually playing and it is guaranteed that either the user can hear something or the player is muted. More...