mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 19:43:55 -07:00
Clang-format (#3028)
* 1/3 Add .clang-format file and travis compilation check * 2/3 Run clang-format * 3/3 Fix compilation problems due to include reordering * 3bis/3 AfterControlStatement: false
This commit is contained in:
parent
8dbdd24c8e
commit
b29bd9e070
272 changed files with 13378 additions and 9535 deletions
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef SOUNDENGINE_H
|
||||
#define SOUNDENGINE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QMap>
|
||||
#include <QDir>
|
||||
#include <QMap>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
class QAudioOutput;
|
||||
|
|
@ -11,18 +11,21 @@ class QBuffer;
|
|||
|
||||
typedef QMap<QString, QString> QStringMap;
|
||||
|
||||
class SoundEngine : public QObject {
|
||||
class SoundEngine : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SoundEngine(QObject *parent = 0);
|
||||
~SoundEngine();
|
||||
void playSound(QString fileName);
|
||||
QStringMap &getAvailableThemes();
|
||||
|
||||
private:
|
||||
QMap<QString, QByteArray> audioData;
|
||||
QBuffer *inputBuffer;
|
||||
QAudioOutput * player;
|
||||
QAudioOutput *player;
|
||||
QStringMap availableThemes;
|
||||
|
||||
protected:
|
||||
void ensureThemeDirectoryExists();
|
||||
private slots:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue