From 535e64f2bf891e89946337d98cae1c9f60a8a11e Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 10 Apr 2022 19:41:44 +0900 Subject: [PATCH] examples/audioinfiniteloop, examples/audiopanning: avoid resamplings --- examples/audioinfiniteloop/main.go | 2 +- examples/audiopanning/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/audioinfiniteloop/main.go b/examples/audioinfiniteloop/main.go index 6850375a5..9bf75d0f6 100644 --- a/examples/audioinfiniteloop/main.go +++ b/examples/audioinfiniteloop/main.go @@ -33,7 +33,7 @@ import ( const ( screenWidth = 640 screenHeight = 480 - sampleRate = 22050 + sampleRate = 32000 bytesPerSample = 4 // 2 channels * 2 bytes (16 bit) introLengthInSecond = 5 diff --git a/examples/audiopanning/main.go b/examples/audiopanning/main.go index 501b6c493..43f5a1591 100644 --- a/examples/audiopanning/main.go +++ b/examples/audiopanning/main.go @@ -38,7 +38,7 @@ import ( const ( screenWidth = 640 screenHeight = 480 - sampleRate = 22050 + sampleRate = 32000 ) var ebitenImage *ebiten.Image