Skip to content

Commit

Permalink
increase the buffer size for macOS
Browse files Browse the repository at this point in the history
Glitch noises can happen on MacBook 2020 with a small buffer size.
  • Loading branch information
hajimehoshi committed Jan 2, 2024
1 parent b794c02 commit 3f14867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver_macos.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/ebitengine/purego/objc"
)

const defaultOneBufferSizeInBytes = 2048
const defaultOneBufferSizeInBytes = 8192

// setNotificationHandler sets a handler for sleep/wake notifications.
func setNotificationHandler() error {
Expand Down

0 comments on commit 3f14867

Please sign in to comment.