examples: bug fix: wrong sample rate

This commit is contained in:
Hajime Hoshi 2023-03-13 00:23:57 +09:00
parent 597fe171a4
commit 80cbf7cbae
2 changed files with 2 additions and 2 deletions

View File

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

View File

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