-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayer.h
54 lines (43 loc) · 934 Bytes
/
player.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
#ifndef PLAYER_H
#define PLAYER_H
#include <QDialog>
#include <QFile>
#include <QAudioFormat>
#include <QAudioOutput>
namespace Ui {
class Player;
}
namespace Aquila {
class SignalSource;
class Spectrogram;
}
class Player : public QDialog
{
Q_OBJECT
public:
explicit Player(QAudioFormat* format, QWidget *parent = 0);
~Player();
void showPlayer(QString path);
public slots:
void play();
void stop();
void changed();
void remove();
void showWaveForm();
void showHighpassFilter();
void showHamming();
void showFFT();
void showChanels();
void showFormantProcessor();
void compare();
private:
Ui::Player *ui;
QString path;
QAudioFormat* format;
QAudioOutput* outputAudio;
QFile * wavFile;
void makeItemsList();
Aquila::SignalSource * getRawData();
Aquila::SignalSource * getParamsData(int i);
};
#endif // PLAYER_H