#ifndef SOUNDVIEWER_H #define SOUNDVIEWER_H #include #include #include #include #include #include namespace Ui { class SoundViewer; } class SoundViewer : public QWidget { Q_OBJECT public: explicit SoundViewer(QWidget *parent = nullptr); ~SoundViewer(); //void SetSound(std::shared_ptr aSound); void SetOutput(QAudioOutput *aOutput); private: Ui::SoundViewer *ui; QMediaPlayer *player; QBuffer *buffer; }; #endif // SOUNDVIEWER_H