summaryrefslogtreecommitdiff
path: root/src/soundplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/soundplayer.h')
-rw-r--r--src/soundplayer.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/soundplayer.h b/src/soundplayer.h
index 8502e6e..d8ba929 100644
--- a/src/soundplayer.h
+++ b/src/soundplayer.h
@@ -31,13 +31,16 @@
#include <QString>
#include <QList>
#include <QMutex>
+#include <QMap>
+
+#include <cstdlib>
class QueueItem
{
public:
float *samples;
- size_t pos;
- size_t size;
+ std::size_t pos;
+ std::size_t size;
};
class SoundPlayer
@@ -57,4 +60,12 @@ private:
QList<QueueItem> queue;
QList<QueueItem> active;
+
+ struct Samples
+ {
+ float *data;
+ std::size_t size;
+ };
+ Samples getSampleData(QString file);
+ QMap<QString, Samples> cache;
};