mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
AudioNode connection
This commit is contained in:
parent
aed57252b1
commit
9eebcb31c5
2 changed files with 25 additions and 11 deletions
|
@ -23,8 +23,6 @@ use dom_struct::dom_struct;
|
|||
use servo_media::ServoMedia;
|
||||
use servo_media::audio::context::{AudioContext, ProcessingState};
|
||||
use servo_media::audio::context::{OfflineAudioContextOptions, RealTimeAudioContextOptions};
|
||||
use servo_media::audio::graph::NodeId;
|
||||
use servo_media::audio::node::AudioNodeType;
|
||||
use std::cell::Cell;
|
||||
use std::collections::VecDeque;
|
||||
use std::mem;
|
||||
|
@ -97,10 +95,6 @@ impl BaseAudioContext {
|
|||
&self.audio_context_impl
|
||||
}
|
||||
|
||||
pub fn create_node_engine(&self, node_type: AudioNodeType) -> NodeId {
|
||||
self.audio_context_impl.create_node(node_type)
|
||||
}
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#allowed-to-start
|
||||
pub fn is_allowed_to_start(&self) -> bool {
|
||||
self.state.get() == AudioContextState::Suspended
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue