web: don't panic if failing to create an audio buffer
This commit is contained in:
parent
167b5a45de
commit
2abea5aeba
|
@ -681,7 +681,7 @@ impl WebAudioBackend {
|
|||
num_sample_frames,
|
||||
f32::from(sample_rate),
|
||||
)
|
||||
.unwrap();
|
||||
.map_err(|e| format!("Failed to create AudioBuffer: {:?}", e))?;
|
||||
|
||||
copy_to_audio_buffer(
|
||||
&audio_buffer,
|
||||
|
|
Loading…
Reference in New Issue