summaryrefslogtreecommitdiffstats
path: root/src/sources/audiosource.h
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2017-11-25 15:31:17 +0100
committerUwe Klotz <uwe_klotz@web.de>2017-11-25 16:02:02 +0100
commitee517e365d5ededd670381365669783da1bbcb75 (patch)
treef67b28a0eb343de03025b7302448b396bb9181e5 /src/sources/audiosource.h
parent755d55bd59cc4018d4813f1f2ce3fecb3ae18f02 (diff)
Use "length" for both slices and ranges
This also avoids confusion between "slice" and "size" which sound very similar.
Diffstat (limited to 'src/sources/audiosource.h')
-rw-r--r--src/sources/audiosource.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sources/audiosource.h b/src/sources/audiosource.h
index 075e6a0d59..8754014152 100644
--- a/src/sources/audiosource.h
+++ b/src/sources/audiosource.h
@@ -51,8 +51,8 @@ class ReadableSampleFrames final: public SampleFrames {
return m_readableSlice;
}
- SINT readableSize() const {
- return m_readableSlice.size();
+ SINT readableLength() const {
+ return m_readableSlice.length();
}
const CSAMPLE* readableData(SINT offset = 0) const {
@@ -87,8 +87,8 @@ class WritableSampleFrames final: public SampleFrames {
return m_writableSlice;
}
- SINT writableSize() const {
- return m_writableSlice.size();
+ SINT writableLength() const {
+ return m_writableSlice.length();
}
CSAMPLE* writableData(SINT offset = 0) const {