diff options
Diffstat (limited to 'src/soundplayer.h')
-rw-r--r-- | src/soundplayer.h | 36 |
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__*/ |