-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathThreadRequest.h
More file actions
70 lines (35 loc) · 1.12 KB
/
ThreadRequest.h
File metadata and controls
70 lines (35 loc) · 1.12 KB
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
#pragma once
#include <string>
#include <set>
#include "MusicType.h"
#include "Playlist.h"
#include "ActivePlaylist.h"
#include "PendingPlaylist.h"
using namespace std;
class ThreadRequest {
private:
//Play custom track
string customTrackPath; //This variable specifies the name of the custom track to play.
//Set playlist fade times (not used if delayed)
set<PendingPlaylist> pendingPlaylists;
float setPlaylistFadeIn = -1;
float setPlaylistFadeOut = -1;
//No music
bool holdMusicPlayer;
//Next track
bool nextTrack = false;
public:
bool hasRequestedCustomTrack () const;
bool hasRequestedHoldMusicPlayer () const;
bool hasRequestedNextTrack ();
set<PendingPlaylist>& getPendingPlaylists ();
string getCustomTrack ();
void clearCustomTrack ();
void clearRequestNextTrack ();
void requestPlayCustomTrack (const string &trackPath);
void requestSetPlaylist (ActivePlaylist *aplToSwap, Playlist *playlist, bool afterThisTrack, float delay);
bool requestHoldMusicPlayer (bool hold);
void requestNextTrack (bool noHold);
};
extern ThreadRequest threadRequest;
extern HANDLE hThreadMutex;