summaryrefslogtreecommitdiff
path: root/src/soundplayer.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-12-26 19:53:20 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2018-12-26 19:53:20 +0100
commit41c30cdf376730a68fcda69b57b1139f143a5543 (patch)
treea109688cfa7d7a946d6a5268e484e220ed994af5 /src/soundplayer.h
parent1d1b1e025087fc99702beb14d70ead9291ed6470 (diff)
Fix indentation and code-style.
Diffstat (limited to 'src/soundplayer.h')
-rw-r--r--src/soundplayer.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/soundplayer.h b/src/soundplayer.h
index c5b36d4..8502e6e 100644
--- a/src/soundplayer.h
+++ b/src/soundplayer.h
@@ -25,36 +25,36 @@
* along with Kaiman; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __KAIMAN_SOUNDPLAYER_H__
-#define __KAIMAN_SOUNDPLAYER_H__
+#pragma once
#include <QThread>
#include <QString>
#include <QList>
#include <QMutex>
-class QueueItem {
+class QueueItem
+{
public:
- float *samples;
- size_t pos;
- size_t size;
+ float *samples;
+ size_t pos;
+ size_t size;
};
-class SoundPlayer : public QThread {
+class SoundPlayer
+ : public QThread
+{
public:
- SoundPlayer();
- ~SoundPlayer();
-
- void playFile(QString file);
+ SoundPlayer();
+ ~SoundPlayer();
- void run();
+ void playFile(QString file);
+
+ void run();
private:
- volatile bool running;
- QMutex mutex;
+ volatile bool running;
+ QMutex mutex;
- QList<QueueItem> queue;
- QList<QueueItem> active;
+ QList<QueueItem> queue;
+ QList<QueueItem> active;
};
-
-#endif/*__KAIMAN_SOUNDPLAYER_H__*/