examples/audioinfiniteloop, examples/audiopanning: avoid resamplings

This commit is contained in:
Hajime Hoshi 2022-04-10 19:41:44 +09:00
parent a65631bccc
commit 535e64f2bf
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ import (
const ( const (
screenWidth = 640 screenWidth = 640
screenHeight = 480 screenHeight = 480
sampleRate = 22050 sampleRate = 32000
bytesPerSample = 4 // 2 channels * 2 bytes (16 bit) bytesPerSample = 4 // 2 channels * 2 bytes (16 bit)
introLengthInSecond = 5 introLengthInSecond = 5

View File

@ -38,7 +38,7 @@ import (
const ( const (
screenWidth = 640 screenWidth = 640
screenHeight = 480 screenHeight = 480
sampleRate = 22050 sampleRate = 32000
) )
var ebitenImage *ebiten.Image var ebitenImage *ebiten.Image