web: fix audio on firefox
This commit is contained in:
@@ -43,7 +43,7 @@ const PACKET_SAMPLES: u32 = 960;
|
||||
type Buffer = Arc<Mutex<dasp_ring_buffer::Bounded<Vec<i16>>>>;
|
||||
|
||||
impl AudioSystem {
|
||||
pub fn new() -> Result<Self, Error> {
|
||||
pub async fn new() -> Result<Self, Error> {
|
||||
// TODO
|
||||
let host = cpal::default_host();
|
||||
let name = host.id();
|
||||
|
||||
Reference in New Issue
Block a user