-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkaraoke.h
91 lines (84 loc) · 2.03 KB
/
karaoke.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifndef KARAOKE_H
#define KARAOKE_H
#include <stdlib.h>
#include <getopt.h>
#include <strings.h>
#include <typeinfo>
#include <vdr/menuitems.h>
#include <vdr/status.h>
#include <vdr/plugin.h>
#include <vdr/osd.h>
#include <vdr/interface.h>
#include <vdr/skins.h>
#include <vdr/menu.h>
#include "common.h"
#include "setup.h"
#include "setup-karaoke.h"
#include "data-mp3.h"
#include "player-mp3.h"
#include "menu.h"
#include "menu-async.h"
#include "decoder.h"
#include "decoder-mp3.h"
#include "version.h"
// --- cKaraokeControl
// --------------------------------------------------------
#define eDvbColor int
#define MAXROWS 120
#define INLINE
class cKaraokeControl:public cControl
{
private:
public:
cOsd * osd;
std::string imagefile;
const cFont *font;
int fw, fh;
//
cMP3Player *player;
bool showtrans, visible, statusActive, copyfile, recordstream, pressedOk,
flush;
time_t timeoutShow, greentime, oktime;
int lastkeytime, num, number, tracknr, oldtracknr;
bool selecting, selecthide;
//
cMP3PlayInfo *lastMode;
time_t fliptime, listtime;
int hashlist[MAXROWS];
int flip, flipint, top, rows, lh;
int lastIndex, lastTotal, lastTop;
int framesPerSecond;
//
//
bool jumpactive, jumphide, jumpsecs;
int jumpmm;
//
int clrBackground;
int clrBackground2;
int clrNormalText;
int clrTracklistText;
int clrListItemActiveBackground;
int clrListItemActiveText;
int clrProgress;
int clrProgressBackground;
//
void ShowTimed( int Seconds = 0 );
void ShowProgress( bool open = false );
void ShowStatus( bool force );
void HideStatus( void );
void DisplayInfo( const char *s = 0 );
void JumpDisplay( void );
void JumpProcess( eKeys Key );
void Jump( void );
void Stop( void );
inline void Flush( void );
public:
cKaraokeControl( void );
virtual ~cKaraokeControl( );
virtual eOSState ProcessKey( eKeys Key );
virtual void Show( void ) { ShowTimed( ); }
virtual void Hide( void );
bool Visible( void ) { return visible; }
static bool SetPlayList( cPlayList * plist );
};
#endif