aboutsummaryrefslogtreecommitdiffstats
path: root/core/voice.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/voice.h')
-rw-r--r--core/voice.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/voice.h b/core/voice.h
index cf558341..df0c8c9e 100644
--- a/core/voice.h
+++ b/core/voice.h
@@ -4,6 +4,7 @@
#include <array>
#include <atomic>
#include <bitset>
+#include <chrono>
#include <memory>
#include <stddef.h>
#include <string>
@@ -209,6 +210,8 @@ struct Voice {
*/
std::atomic<VoiceBufferItem*> mLoopBuffer;
+ std::chrono::nanoseconds mStartTime{};
+
/* Properties for the attached buffer(s). */
FmtChannels mFmtChannels;
FmtType mFmtType;
@@ -262,7 +265,8 @@ struct Voice {
Voice(const Voice&) = delete;
Voice& operator=(const Voice&) = delete;
- void mix(const State vstate, ContextBase *Context, const uint SamplesToDo);
+ void mix(const State vstate, ContextBase *Context, const std::chrono::nanoseconds deviceTime,
+ const uint SamplesToDo);
void prepare(DeviceBase *device);