summaryrefslogtreecommitdiff
path: root/src/sound_frame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound_frame.cc')
-rw-r--r--src/sound_frame.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sound_frame.cc b/src/sound_frame.cc
index 521c990f..b5a52d02 100644
--- a/src/sound_frame.cc
+++ b/src/sound_frame.cc
@@ -54,6 +54,12 @@ SoundFrame::get (int channel, int frame) const
}
int
+SoundFrame::channels () const
+{
+ return _channels;
+}
+
+int
SoundFrame::samples () const
{
return size() / (_channels * 3);