web: Bump audio buffer size to 4096
Avoid stuttering on some browser & hardware configurations.
This commit is contained in:
parent
6f20e8882d
commit
82cc097084
|
@ -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()?;
|
||||
|
|
Loading…
Reference in New Issue