From 80cbf7cbaeb8ce3c8b7e6a63bc7a857e9b9ee61d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 13 Mar 2023 00:23:57 +0900 Subject: [PATCH] examples: bug fix: wrong sample rate --- 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 b924f7963..b50cb7cb6 100644 --- a/examples/audioinfiniteloop/main.go +++ b/examples/audioinfiniteloop/main.go @@ -30,7 +30,7 @@ import ( const ( screenWidth = 640 screenHeight = 480 - sampleRate = 32000 + sampleRate = 48000 bytesPerSample = 4 // 2 channels * 2 bytes (16 bit) introLengthInSecond = 5 diff --git a/examples/audiopanning/main.go b/examples/audiopanning/main.go index 10e1224c0..34924978c 100644 --- a/examples/audiopanning/main.go +++ b/examples/audiopanning/main.go @@ -35,7 +35,7 @@ import ( const ( screenWidth = 640 screenHeight = 480 - sampleRate = 32000 + sampleRate = 48000 ) var ebitenImage *ebiten.Image