-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsqueezebox.h
64 lines (48 loc) · 1.2 KB
/
squeezebox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* service.h
*
* See the README file for copyright information
*
*/
#ifndef __LMC_SERVICE_H
#define __LMC_SERVICE_H
#include <inttypes.h>
#include "lib/common.h"
struct PlayerState
{
PlayerState() { memset(this, 0, sizeof(PlayerState)); }
uint64_t updatedAt;
char mode[20+TB];
char version[50+TB];
int volume;
int muted;
int trackTime; // playtime of the current song
// playlist state
char plName[300+TB];
int plIndex;
int plCount;
int plShuffle;
int plRepeat;
};
struct TrackInfo
{
TrackInfo() { memset(this, 0, sizeof(TrackInfo)); }
uint64_t updatedAt;
char genre[100+TB];
char album[100+TB];
char artist[100+TB];
char title[200+TB];
char artworkTrackId[500+TB];
char artworkurl[500+TB];
char remoteTitle[500+TB];
char contentType[100+TB];
char lyrics[10000+TB];
unsigned int bitrate;
unsigned short remote;
unsigned int year;
int index; // index in current playlist
int id; // track ID
int duration;
};
#define SQUEEZEBOX_CURRENT_TRACK "squeezebox_current_track-v1.0"
#endif // __LMCCOM_H