Browse Source

Fix start offset

main
meutraa 6 months ago
parent
commit
efee7b9e74
Signed by: meutraa GPG Key ID: 82664A5F8DAC3400
  1. 1
      go.mod
  2. 2
      go.sum
  3. 2
      main.go

1
go.mod

@ -6,6 +6,7 @@ require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
github.com/faiface/beep v1.0.2
github.com/gen2brain/raylib-go v0.0.0-20210526111428-ace572fead21 // indirect
github.com/hajimehoshi/go-mp3 v0.3.2 // indirect
github.com/hajimehoshi/oto v0.7.1 // indirect
github.com/mattn/go-sqlite3 v1.14.7

2
go.sum

@ -10,6 +10,8 @@ github.com/faiface/beep v1.0.2 h1:UB5DiRNmA4erfUYnHbgU4UB6DlBOrsdEFRtcc8sCkdQ=
github.com/faiface/beep v1.0.2/go.mod h1:1yLb5yRdHMsovYYWVqYLioXkVuziCSITW1oarTeduQM=
github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
github.com/gdamore/tcell v1.1.1/go.mod h1:K1udHkiR3cOtlpKG5tZPD5XxrF7v2y7lDq7Whcj+xkQ=
github.com/gen2brain/raylib-go v0.0.0-20210526111428-ace572fead21 h1:w1duHOKelNSXQ3VKCKiTz5zuzTBma/E6RunaTtGZNsk=
github.com/gen2brain/raylib-go v0.0.0-20210526111428-ace572fead21/go.mod h1:LUVRDQbnxUaOgzLzW5lMS+IcbqlXHIqIA9wq8wxzmcA=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/gopherjs/gopherjs v0.0.0-20180628210949-0892b62f0d9f/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/gopherjs/gopherjs v0.0.0-20180825215210-0210a2f0f73c/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=

2
main.go

@ -210,9 +210,9 @@ func run() error {
r.Fill(uint16(18+i), sideCol, judgement.Name+": ")
}
song := buffer.Streamer(0, buffer.Len())
go func() {
time.Sleep(*config.Delay + *config.Offset)
song := buffer.Streamer(0, buffer.Len())
speaker.Play(song)
for {
if song.Position() == song.Len() {

Loading…
Cancel
Save