Update app/soundviewer.h
This commit is contained in:
parent
1739a4686e
commit
46792b3dc6
@ -1,32 +1,32 @@
|
|||||||
#ifndef SOUNDVIEWER_H
|
#ifndef SOUNDVIEWER_H
|
||||||
#define SOUNDVIEWER_H
|
#define SOUNDVIEWER_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QMediaPlayer>
|
#include <QMediaPlayer>
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QAudioDevice>
|
#include <QAudioDevice>
|
||||||
#include <QMediaDevices>
|
#include <QMediaDevices>
|
||||||
#include <QAudioOutput>
|
#include <QAudioOutput>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class SoundViewer;
|
class SoundViewer;
|
||||||
}
|
}
|
||||||
|
|
||||||
class SoundViewer : public QWidget
|
class SoundViewer : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SoundViewer(QWidget *parent = nullptr);
|
explicit SoundViewer(QWidget *parent = nullptr);
|
||||||
~SoundViewer();
|
~SoundViewer();
|
||||||
|
|
||||||
//void SetSound(std::shared_ptr<Sound> aSound);
|
//void SetSound(std::shared_ptr<Sound> aSound);
|
||||||
|
|
||||||
void SetOutput(QAudioOutput *aOutput);
|
void SetOutput(QAudioOutput *aOutput);
|
||||||
private:
|
private:
|
||||||
Ui::SoundViewer *ui;
|
Ui::SoundViewer *ui;
|
||||||
QMediaPlayer *player;
|
QMediaPlayer *player;
|
||||||
QBuffer *buffer;
|
QBuffer *buffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SOUNDVIEWER_H
|
#endif // SOUNDVIEWER_H
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user