web: Bump audio buffer size to 4096

Avoid stuttering on some browser & hardware configurations.
This commit is contained in:
Mike Welsh 2022-08-14 18:52:30 -07:00
parent 6f20e8882d
commit 82cc097084
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ pub struct WebAudioBackend {
}
impl WebAudioBackend {
const BUFFER_SIZE: u32 = 2048;
const BUFFER_SIZE: u32 = 4096;
pub fn new() -> Result<Self, Error> {
let context = AudioContext::new().into_js_result()?;