examples: Adjust samplerate not to cause resampling

Fixes #687
This commit is contained in:
Hajime Hoshi 2018-09-28 03:55:28 +09:00
parent d243957ab1
commit eb0f0e6ced
2 changed files with 2 additions and 4 deletions

View File

@ -39,9 +39,7 @@ const (
screenWidth = 320
screenHeight = 240
// This sample rate doesn't match with wav/vorbis's sample rate,
// but decoders adjust them.
sampleRate = 48000
sampleRate = 22050
)
var (

View File

@ -31,7 +31,7 @@ import (
const (
screenWidth = 320
screenHeight = 240
sampleRate = 44100
sampleRate = 22050
introLengthInSecond = 5
loopLengthInSecond = 4