mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Use servo-media-auto and call ServoMedia::init where required
This commit is contained in:
parent
36825b82f3
commit
bc74dc0e85
6 changed files with 493 additions and 0 deletions
|
@ -51,6 +51,7 @@ use servo_media::audio::context::{OfflineAudioContextOptions, RealTimeAudioConte
|
|||
use servo_media::audio::decoder::AudioDecoderCallbacks;
|
||||
use servo_media::audio::graph::NodeId;
|
||||
use servo_media::ServoMedia;
|
||||
use servo_media_auto::Backend;
|
||||
use std::cell::Cell;
|
||||
use std::collections::{HashMap, VecDeque};
|
||||
use std::mem;
|
||||
|
@ -108,6 +109,8 @@ impl BaseAudioContext {
|
|||
},
|
||||
};
|
||||
|
||||
ServoMedia::init::<Backend>();
|
||||
|
||||
let context = BaseAudioContext {
|
||||
eventtarget: EventTarget::new_inherited(),
|
||||
audio_context_impl: ServoMedia::get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue