Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/soundtouch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/FIFOSampleBuffer.h')
-rw-r--r--include/FIFOSampleBuffer.h6
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;