From 98be54fe60e36888e686966cdc84ea94ea7bed2b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 15 Apr 2016 01:58:27 +0900 Subject: [PATCH] audio: Bug fix: Compile error and noise on Windows --- exp/audio/internal/driver/driver_windows.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exp/audio/internal/driver/driver_windows.go b/exp/audio/internal/driver/driver_windows.go index 677065f5f..a954133c7 100644 --- a/exp/audio/internal/driver/driver_windows.go +++ b/exp/audio/internal/driver/driver_windows.go @@ -80,7 +80,7 @@ type Player struct { headers []*header } -const bufferSize = 1024 +const bufferSize = 4096 func NewPlayer(sampleRate, channelNum, bytesPerSample int) (*Player, error) { numBlockAlign := channelNum * bytesPerSample @@ -135,6 +135,7 @@ func (p *Player) Proceed(data []byte) error { return nil } -func (p *Player) Close() { +func (p *Player) Close() error { // TODO: Implement this + return nil }