5 #include <QAudioBuffer>
6 #include <QAudioDeviceInfo>
10 #include <QFileDialog>
12 #include <QHeaderView>
15 #include <QMainWindow>
16 #include <QMediaMetaData>
17 #include <QMediaPlaylist>
18 #include <QMessageBox>
19 #include <QMimeDatabase>
21 #include <QStandardItemModel>
23 #include <QtMultimedia>
24 #include <QtMultimedia/QMediaPlayer>
30 #include "playlistmodel.h"
50 void goToItem(
const QModelIndex &index);
53 void onAddMediaToPlayList(QString media);
54 void mediaStatusChanged(QMediaPlayer::MediaStatus status);
55 void metaDataChanged();
58 void slotPositionChanged(qint64 e);
60 void processBuffer(QAudioBuffer buffer);
61 void setMediaAt(qint32 percent);
62 void setVolume(
int volume);
63 void spectrumAvailable(QVector<double> spectrum);
64 void metaDataAvailableChanged(
bool);
73 QMediaPlaylist *playlist;
76 QAudioDeviceInfo audioInfo;
88 QStandardItemModel *model;
94 QVector<double> sample;
97 QVector<double> spectrum;
102 double levelLeft, levelRight;
105 int spectrumChanged(QVector<double> &sample);
109 int positionChanged(qint64 position);
112 int levels(
double left,
double right);
116 int elapsedTimeChanged(qint64 elapsed);
119 int addFolderToLibrary(QString folder);
125 #endif // MAINWINDOW_H
Definition: mainwindow.h:39
Definition: playlistmodel.h:19