Skip to content

Commit

Permalink
examples/audio: remove unneeded resampling
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed May 18, 2024
1 parent a612e74 commit 002e375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/audio/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func NewPlayer(game *Game, audioContext *audio.Context, musicType musicType) (*P

player.audioPlayer.Play()
go func() {
s, err := wav.DecodeWithSampleRate(sampleRate, bytes.NewReader(raudio.Jab_wav))
s, err := wav.DecodeWithoutResampling(bytes.NewReader(raudio.Jab_wav))
if err != nil {
log.Fatal(err)
return
Expand Down

0 comments on commit 002e375

Please sign in to comment.