Skip to content

Commit

Permalink
Improve audio reset. Less chance to trip OBS due to timestamps.
Browse files Browse the repository at this point in the history
  • Loading branch information
fzwoch authored Mar 25, 2024
1 parent 69c79f4 commit 09e754d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"fmt"
"image"
"io"
"math"
"net"
"os"
"runtime/cgo"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 09e754d

Please sign in to comment.