mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 04:23:55 -07:00
revert to using QAudioOutput
This commit is contained in:
parent
f78c01fa88
commit
5aaae5279c
3 changed files with 92 additions and 61 deletions
|
|
@ -6,7 +6,8 @@
|
|||
#include <QDir>
|
||||
#include <QString>
|
||||
|
||||
class QSound;
|
||||
class QAudioOutput;
|
||||
class QBuffer;
|
||||
|
||||
typedef QMap<QString, QString> QStringMap;
|
||||
|
||||
|
|
@ -18,8 +19,9 @@ public:
|
|||
void playSound(QString fileName);
|
||||
QStringMap &getAvailableThemes();
|
||||
private:
|
||||
bool enabled;
|
||||
QSound * engine;
|
||||
QMap<QString, QByteArray> audioData;
|
||||
QBuffer *inputBuffer;
|
||||
QAudioOutput * player;
|
||||
QStringMap availableThemes;
|
||||
protected:
|
||||
void ensureThemeDirectoryExists();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue