-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathradio.h
41 lines (34 loc) · 1.11 KB
/
radio.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
/*
* radio.h: OSD2WEB plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef _RADIO_SERVICE_H_
#define _RADIO_SERVICE_H_
//***************************************************************************
// RADIO - RDS Service
//***************************************************************************
#define RT_MEL 65
struct RadioTextService_v1_0 {
int rds_info; // 0= no / 1= Text / 2= Text + RTplus-Tags (Item,Artist)
int rds_pty; // 0-31
char *rds_text;
char *rds_title;
char *rds_artist;
struct tm *title_start;
};
struct RadioTextService_v1_1 {
int rds_info; // 0= no / 1= Text / 2= Text + RTplus-Tags (Item,Artist)
int rds_pty; // 0-31
std::string rds_pty_info;
std::string rds_text;
std::string rds_title;
std::string rds_artist;
time_t title_start;
std::string bitrate;
};
#define RADIO_TEXT_SERVICE0 "RadioTextService-v1.0"
#define RADIO_TEXT_SERVICE1 "RadioTextService-v1.1"
#define RADIO_TEXT_UPDATE "RadioTextUpdate-v1.0"
#endif // _RADIO_SERVICE_H_