From dba7124e38c666bb7b41118c10bf814a970ee5a4 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 23 Nov 2017 23:31:21 +0900 Subject: [PATCH] audio: Use safer buffer size as experiment (#451) --- audio/buffersize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/buffersize.go b/audio/buffersize.go index 70c469544..9024789f5 100644 --- a/audio/buffersize.go +++ b/audio/buffersize.go @@ -18,5 +18,5 @@ package audio func (c *Context) bufferSize() int { - return c.sampleRate * channelNum * bytesPerSample / 30 + return c.sampleRate * channelNum * bytesPerSample / 20 }