summaryrefslogtreecommitdiff
path: root/src/audiocachefile.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-28 17:03:18 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-28 17:03:18 +0100
commit9f770629606ca58c78b411e73696eec275c328a5 (patch)
tree021a18e45119f221290b42a96ff6ee8a24797066 /src/audiocachefile.h
parent83e33a14f672c2d1f9f333703867959921d40ffb (diff)
Conform to style guide.
Diffstat (limited to 'src/audiocachefile.h')
-rw-r--r--src/audiocachefile.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/audiocachefile.h b/src/audiocachefile.h
index 2f988e2..9910563 100644
--- a/src/audiocachefile.h
+++ b/src/audiocachefile.h
@@ -29,20 +29,21 @@
#include <string>
#include <list>
#include <map>
+
#include <mutex>
+#include "mutex.h"
#include <sndfile.h>
#include <audiotypes.h>
-#include "mutex.h"
-
+//! Channel data container in the cache world.
class CacheChannel {
public:
- size_t channel;
- sample_t* samples;
- size_t num_samples;
- volatile bool* ready;
+ size_t channel; //< Channel number
+ sample_t* samples; //< Sample buffer pointer.
+ size_t num_samples; //< Number of samples in the sample buffer
+ volatile bool* ready; //< Is set to tru when the loading is done.
};
using CacheChannels = std::list<CacheChannel>;