From f00bdc99f733e9d406e597c81c2ab12ee953e13d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 23 Sep 2021 01:34:43 +0900 Subject: [PATCH] examples: Change the sample rate to 48000 Closes #1649 --- examples/pcm/main.go | 2 +- examples/piano/main.go | 2 +- examples/sinewave/main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/pcm/main.go b/examples/pcm/main.go index e336707ac..b5dd0933e 100644 --- a/examples/pcm/main.go +++ b/examples/pcm/main.go @@ -30,7 +30,7 @@ import ( const ( screenWidth = 640 screenHeight = 480 - sampleRate = 44100 + sampleRate = 48000 ) const ( diff --git a/examples/piano/main.go b/examples/piano/main.go index 376d4b46e..186e90d06 100644 --- a/examples/piano/main.go +++ b/examples/piano/main.go @@ -61,7 +61,7 @@ func init() { const ( screenWidth = 320 screenHeight = 240 - sampleRate = 44100 + sampleRate = 48000 baseFreq = 220 ) diff --git a/examples/sinewave/main.go b/examples/sinewave/main.go index 4014b1fe3..859b7c9c3 100644 --- a/examples/sinewave/main.go +++ b/examples/sinewave/main.go @@ -30,7 +30,7 @@ import ( const ( screenWidth = 640 screenHeight = 480 - sampleRate = 44100 + sampleRate = 48000 frequency = 440 )