Skip to content

Commit 3f14867

Browse files
committed
increase the buffer size for macOS
Glitch noises can happen on MacBook 2020 with a small buffer size.
1 parent b794c02 commit 3f14867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver_macos.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/ebitengine/purego/objc"
2424
)
2525

26-
const defaultOneBufferSizeInBytes = 2048
26+
const defaultOneBufferSizeInBytes = 8192
2727

2828
// setNotificationHandler sets a handler for sleep/wake notifications.
2929
func setNotificationHandler() error {

0 commit comments

Comments
 (0)