aboutsummaryrefslogtreecommitdiff
path: root/test/sound/audiostream.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/sound/audiostream.h')
-rw-r--r--test/sound/audiostream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/sound/audiostream.h b/test/sound/audiostream.h
index 57ea27f62e..4efbdba7cb 100644
--- a/test/sound/audiostream.h
+++ b/test/sound/audiostream.h
@@ -26,6 +26,10 @@ public:
// for 11kHz and mono
const Audio::Timestamp d = Audio::convertTimeToStreamPos(Audio::Timestamp(0, 50, 75), 11025, false);
TS_ASSERT_EQUALS(d.totalNumberOfFrames(), 50 * 11025 / 75);
+
+ // Some misc test
+ const Audio::Timestamp e = Audio::convertTimeToStreamPos(Audio::Timestamp(1, 1, 4), 11025, false);
+ TS_ASSERT_EQUALS(e.totalNumberOfFrames(), 5 * 11025 / 4);
}
};