Network-Music
0.1
An audible representation of network traffic
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
Pages
tonemanager.h
Go to the documentation of this file.
1
#ifndef TONEMANAGER_H
2
#define TONEMANAGER_H
3
4
#include <QObject>
5
6
#include <QHash>
7
#include <QList>
8
#include <QAudioFormat>
9
10
class
tone
;
11
12
class
QByteArray;
13
class
QAudioFormat;
14
class
QThread;
15
16
struct
ToneObject
{
17
tone
*
theTone
;
18
QThread*
theThread
;
19
};
20
22
class
ToneManager
:
public
QObject
23
{
24
Q_OBJECT
25
26
public
:
27
ToneManager
();
28
ToneManager
(
int
BaseNumberOfTones);
29
~ToneManager
();
30
31
protected
:
32
ToneObject
*
AddTone
(
int
i);
33
34
int
numberOfTones
;
35
int
currentTone
;
36
int
currentUncommonTone
;
37
38
int
toneBaseFrequency
;
39
QAudioFormat
m_format
;
40
41
QHash<int, QByteArray*>
toneBuffers
;
42
QList<ToneObject*>
Tones
;
43
44
public
slots:
45
void
SLOT_NumberOfTonesChanged
(
int
newNumberOfTones);
46
void
SLOT_VolumeChanged
(
int
newVolume);
47
void
SLOT_SetFrequency
(
int
frequency,
int
often);
48
void
SLOT_SetBaseFrequency
(
int
baseFrequency);
49
void
SLOT_InitializeTones
();
50
51
signals:
52
void
Set_Volume
(
int
);
53
void
Resume_Audio
();
54
void
Pause_Audio
();
55
void
Start_Audio
();
56
};
57
58
#endif // TONEMANAGER_H
Network-Music
tonemanager.h
Generated on Wed Apr 29 2015 17:40:05 for Network-Music by
1.8.1.2