From 09e754d3fe35c3ab89ca2a374a8405c4ed65dfe5 Mon Sep 17 00:00:00 2001 From: Florian Zwoch Date: Mon, 25 Mar 2024 20:43:49 +0100 Subject: [PATCH] Improve audio reset. Less chance to trip OBS due to timestamps. --- source.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source.go b/source.go index e9f8c5a..14b3f6c 100644 --- a/source.go +++ b/source.go @@ -33,6 +33,7 @@ import ( "fmt" "image" "io" + "math" "net" "os" "runtime/cgo" @@ -424,7 +425,7 @@ func (h *teleportSource) sourceLoop() { blog(C.LOG_WARNING, "version mismatch: "+service.Payload.Version+" != "+version) } - h.audio.timestamp = 0 + h.audio.timestamp = math.MaxUint64 h.audio.samples_per_sec = 48000 h.audio.speakers = 2 h.audio.format = C.AUDIO_FORMAT_FLOAT