Skip to content

Commit

Permalink
perf(apu): Decrease default buffer size to prevent audio lag
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jan 30, 2025
1 parent 95893c4 commit 71b32fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config_example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ enabled = true
# Output volume (between 0 and 1).
volume = 1.0
# Audio buffer size. Try increasing this if audio pops or stutters.
buffer_size = '70 KiB'
buffer_size = '40 KiB'

# Toggles specific audio channels.
[audio.channels]
Expand Down
2 changes: 1 addition & 1 deletion internal/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func NewDefault() *Config {
Noise: true,
PCM: true,
},
BufferSize: 70 * bytefmt.KiB,
BufferSize: 40 * bytefmt.KiB,
},
}
}

0 comments on commit 71b32fa

Please sign in to comment.