Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsuki105 committed Apr 14, 2021
1 parent bf4922e commit ac62239
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/gba/apu.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const (
BUFF_SAMPLES_MSK = ((BUFF_SAMPLES) - 1)
SAMPLE_TIME float64 = 1.0 / SND_FREQUENCY
SAMPLE_RATE = SND_FREQUENCY
STREAM_LEN = (SAMPLE_RATE / 60) * 4
STREAM_LEN = 2940 // 2 * 2 * sampleRate * (1/60)
)

const (
Expand Down Expand Up @@ -111,10 +111,6 @@ func (g *GBA) playSound() {
go func() {
for range time.Tick(time.Second / 60) {
g.soundMix()
}
}()
go func() {
for range time.Tick(time.Second / 60) {
g.apu.player.Write(stream)
}
}()
Expand Down

0 comments on commit ac62239

Please sign in to comment.