use std::{cell::RefCell, collections::HashMap};
pub struct Context {
pub audio: web_sys::AudioContext,
}
impl Context {
pub fn new() -> Self {
let audio = web_sys::AudioContext::new()
.expect("failed to create audio context");
Self {
audio,
}
}
}
pub struct Audio {
pub buffer: &'static RefCell