diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-20 18:39:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-20 20:05:26 +0100 |
| commit | e9ca66f0d8897739cdef22f5011e0866f5a3f741 (patch) | |
| tree | facd02deef05a75094efec59b7d04f26786d1599 /src/lib/util.h | |
| parent | 068f8fe319aad390788bdea24ad21ef758d6dd03 (diff) | |
Clean up audio passing round a bit.
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index f2087b3f0..c98049f62 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -203,5 +203,29 @@ private: int _buffer_data; }; +class AudioBuffers +{ +public: + AudioBuffers (int channels, int frames); + ~AudioBuffers (); + + float** data () const { + return _data; + } + + float* data (int) const; + + int frames () const { + return _frames; + } + + void set_frames (int f); + +private: + int _channels; + int _frames; + float** _data; +}; + #endif |
