|
pianod2
multisource multiuser scriptable networked music player
|
Command handlers for audio engine. More...
#include <config.h>#include <cstdlib>#include <exception>#include <memory>#include <initializer_list>#include <iomanip>#include <sstream>#include <football/football.h>#include <parsnip/parsnip.h>#include "fundamentals.h"#include "lookup.h"#include "utility.h"#include "interpreter.h"#include "engine.h"#include "predicate.h"#include "tuner.h"#include "connection.h"#include "response.h"#include "filter.h"#include "querylist.h"#include "servicemanager.h"#include "mediaunit.h"#include "mediaplayer.h"#include "mediamanager.h"#include "audiooptionsparser.h"
Macros | |
| #define | KEY_VERB "verb" |
| #define | KEY_QUEUEMODE "queueMode" |
| #define | KEY_PLAYBACK "playback" |
| #define | KEY_SELECTION "select" |
| #define | SEEDVERB " <" KEY_VERB ":add|delete|toggle>" |
Typedefs | |
| typedef enum engine_commands_t | ENGINECOMMAND |
| Audio engine commands such as start, stop, pause, change playlists or seeds. More... | |
Enumerations | |
| enum | engine_commands_t { TIMESTATUS = CMD_RANGE_ENGINE , GETVOLUME , SETVOLUME , GETCROSSFADETIME , SETCROSSFADETIME , GETCROSSFADELEVEL , SETCROSSFADELEVEL , ADJUSTVOLUME , GETHISTORYSIZE , SETHISTORYSIZE , WAITFORENDOFSONG , WAITFORNEXTSONG , QUERYSTATUS , QUERYHISTORY , QUERYQUEUE , NEXTSONG , STOPPLAYBACK , PAUSEPLAYBACK , RESUMEPLAYBACK , TOGGLEPLAYBACK , PLAY , SELECT , PLAYLISTRENAME , PLAYLISTDELETE , PLAYLISTCREATE , PLAYLISTFROMFILTER , PLAYLISTALTERFILTER , GETSUGGESTIONS , LISTSONGSBYFILTER , LISTSONGSBYPLAYLIST , REQUESTMUSIC , REQUESTCLEAR , REQUESTCANCEL , RATE , RATEPLAYLIST , SEEDLIST , SEEDALTER , ALTERAUDIOCONFIG , FILTERECHO } |
| Audio engine commands such as start, stop, pause, change playlists or seeds. More... | |
| enum class | SkipManner { NORMAL , ABRUPT } |
| enum class | StopTime { NOW , SONGEND } |
Functions | |
| template<typename ListType > | |
| ListType | AuthorizedUse (const ListType &items_to_check, User *user, CommandReply *diagnostics, Ownership::Action usage) |
| Check a list of somethings for authorized use. More... | |
| static MusicThingie * | thingie_cast (MusicThingie *thing, MusicThingie::Type want) |
| Validate and/or convert a thingie to a requested type. More... | |
| static void | seedAction (const CartsVerb action, const ThingieList &seeds, const PlaylistList &targets, const bool fixed_type, MusicThingie::Type seed_type, CommandReply *diagnostics) |
| Add, remove, or toggle some seeds to/from some playlists. More... | |
Variables | |
| static const LookupTable< SearchRange > | SearchRanges |
| static const LookupTable< SkipManner > | SkipManners |
| static const LookupTable< StopTime > | StopTimes |
Command handlers for audio engine.
Control playback, select music, rate songs and playlists, create/remove playlists and add/remove seeds.
| #define KEY_PLAYBACK "playback" |
| #define KEY_QUEUEMODE "queueMode" |
| #define KEY_SELECTION "select" |
| #define KEY_VERB "verb" |
| #define SEEDVERB " <" KEY_VERB ":add|delete|toggle>" |
| typedef enum engine_commands_t ENGINECOMMAND |
Audio engine commands such as start, stop, pause, change playlists or seeds.
| enum engine_commands_t |
Audio engine commands such as start, stop, pause, change playlists or seeds.
|
strong |
|
strong |
| ListType AuthorizedUse | ( | const ListType & | items_to_check, |
| User * | user, | ||
| CommandReply * | diagnostics, | ||
| Ownership::Action | usage | ||
| ) |
Check a list of somethings for authorized use.
| ListType | The type of the list. |
| items_to_check | The list of items. |
| user | The user requesting authorization. |
| diagnostics | A diagnostics collector for failed authorizations. |
| usage | The manner in which the items are to be used. |


|
static |
Add, remove, or toggle some seeds to/from some playlists.
| action | Indicates add, remove or toggle. |
| seeds | The list of seeds to add/remove. |
| targets | the playlists to add/remove from. |
| fixed_type | If true, typecast seeds to seed_type when adding/removing. |
| seed_type | Type of seed to typecast to. |
| diagnostics | Status aggregator for problems encountered. |


|
static |
Validate and/or convert a thingie to a requested type.
| thing | The thing to convert |
| want | The type to convert it to. |
| CommandError | When converting a song to a playlist, but the song has no playlist. |


|
static |
|
static |
|
static |