-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrack.h
79 lines (68 loc) · 1.23 KB
/
Track.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
/**
* @file Track.h
*
* @brief Track class
*
* This file implements the API for the Track class. The Track class simply
* keeps track of if the track is currently playing, recording, or both (or
* neither).
*
* @author Bryan Cisneros
*/
#pragma once
class Track
{
public:
/**
* @brief Track constructor
*
* @return void
*/
Track();
/**
* @brief Track destructor
*
* @return void
*/
~Track();
/**
* @brief is track playing?
*
* @return true if playing, false otherwise
*/
bool isPlaying();
/**
* @brief is track recording?
*
* @return true if recording, false otherwise
*/
bool isRecording();
/**
* @brief start playing the track
*
* @return void
*/
void startPlaying();
/**
* @brief start recording the track
*
* @return void
*/
void startRecording();
/**
* @brief stop playing the track
*
* @return void
*/
void stopPlaying();
/**
* @brief stop recording the track
*
* @return void
*/
void stopRecording();
private:
// variables to store playing and recording state
bool playing;
bool recording;
};