examples/audio: remove unneeded resampling

This commit is contained in:
Hajime Hoshi 2024-05-18 22:15:24 +09:00
parent a612e74031
commit 002e375d64

View File

@ -171,7 +171,7 @@ func NewPlayer(game *Game, audioContext *audio.Context, musicType musicType) (*P
player.audioPlayer.Play() player.audioPlayer.Play()
go func() { go func() {
s, err := wav.DecodeWithSampleRate(sampleRate, bytes.NewReader(raudio.Jab_wav)) s, err := wav.DecodeWithoutResampling(bytes.NewReader(raudio.Jab_wav))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
return return