Simplify Source playback offset tracking to only store the integer sample offset, and convert to seconds when requested.

This commit is contained in:
Alex Szpakowski
2019-05-16 19:17:19 -03:00
parent c4b21b6efe
commit 33186430af
2 changed files with 21 additions and 36 deletions
+1 -2
View File
@@ -213,8 +213,7 @@ private:
float outerHighGain = 1.0f;
} cone;
float offsetSamples = 0.0f;
float offsetSeconds = 0.0f;
int offsetSamples = 0;
int sampleRate = 0;
int channels = 0;