diff options
Diffstat (limited to 'include/FIFOSampleBuffer.h')
-rw-r--r-- | include/FIFOSampleBuffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/FIFOSampleBuffer.h b/include/FIFOSampleBuffer.h index c315e65..d8704b2 100644 --- a/include/FIFOSampleBuffer.h +++ b/include/FIFOSampleBuffer.h @@ -162,6 +162,12 @@ public: /// Sets number of channels, 1 = mono, 2 = stereo.
void setChannels(int numChannels);
+ /// Get number of channels
+ int getChannels()
+ {
+ return channels;
+ }
+
/// Returns nonzero if there aren't any samples available for outputting.
virtual int isEmpty() const;
|