summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-04-08 09:28:17 +0200
committerUwe Klotz <uklotz@mixxx.org>2020-04-08 09:28:38 +0200
commit55c760ec2bef677de032940be7bd5ddadca0de80 (patch)
tree825033926b86e37dc7376371ce77d2bd070addc3 /src/audio
parent9c2e38c7390ee116f9f5296604f5b3a6d6610f5a (diff)
Delete error prone and ambiguous legacy sample conversion funcs
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/signalinfo.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/audio/signalinfo.h b/src/audio/signalinfo.h
index 684ac660b5..996ce8422b 100644
--- a/src/audio/signalinfo.h
+++ b/src/audio/signalinfo.h
@@ -78,42 +78,6 @@ class SignalInfo final {
double millis2frames(double milliseconds) const {
return secs2frames(milliseconds / 1000);
}
-
- // Conversion: #samples / sample offset -> second offset
- // Only works for integer sample offsets on frame boundaries!
- //
- // Remark: Only generalize for arbitrary sample offsets when
- // actually needed. Existing code may rely on the debug
- // assertions that checks for frame boundary alignment!
- // It is very unlikely that an integer sample offset/count
- // is NOT supposed to address a frame boundary!!
- double samples2secs(SINT samples) const {
- return frames2secs(samples2frames(samples));
- }
-
- // Conversion: second offset -> #samples / sample offset
- // May return sample offsets that are not on frame boundaries!
- double secs2samples(double seconds) const {
- return frames2samples(secs2frames(seconds));
- }
-
- // Conversion: #samples / sample offset -> millisecond offset
- // Only works for integer sample offsets on frame boundaries!
- //
- // Remark: Only generalize for arbitrary sample offsets when
- // actually needed. Existing code may rely on the debug
- // assertions that checks for frame boundary alignment!
- // It is very unlikely that an integer sample offset/count
- // is NOT supposed to address a frame boundary!!
- double samples2millis(SINT samples) const {
- return frames2millis(samples2frames(samples));
- }
-
- // Conversion: millisecond offset -> #samples / sample offset
- // May return sample offsets that are not on frame boundaries!
- double millis2samples(double milliseconds) const {
- return frames2samples(millis2frames(milliseconds));
- }
};
bool operator==(