mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-12 22:17:26 +01:00
examples/audioinfiniteloop, examples/audiopanning: avoid resamplings
This commit is contained in:
parent
a65631bccc
commit
535e64f2bf
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user