diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-18 22:46:15 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-18 22:46:15 +0000 |
| commit | b1defe9019642dc4b80697291d40ed88f09de8be (patch) | |
| tree | 80f29e64acb805c21ea96e7e4ec070a88ca2397d /src/lib/util.h | |
| parent | 81dab3aaea745ddef97166448cb0730520798356 (diff) | |
Fix mis-alignment of copied AlignedImages; add some asserts; some docs.
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index 53e78e57c..341458155 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -219,6 +219,9 @@ private: int _buffer_data; }; +/** @class AudioBuffers + * @brief A class to hold multi-channel audio data in float format. + */ class AudioBuffers { public: @@ -249,9 +252,13 @@ public: void move (int from, int to, int frames); private: + /** Number of channels */ int _channels; + /** Number of frames (where a frame is one sample across all channels) */ int _frames; + /** Number of frames that _data can hold */ int _allocated_frames; + /** Audio data (so that, e.g. _data[2][6] is channel 2, sample 6) */ float** _data; }; |
