AudioNode channel related properties getter and setter fixes

This commit is contained in:
Fernando Jiménez Moreno 2018-07-11 15:02:10 +02:00
parent abccf68a47
commit 758ae94aa1
2 changed files with 73 additions and 0 deletions

View file

@ -112,6 +112,11 @@ impl BaseAudioContext {
context
}
/// Tells whether this is an OfflineAudioContext or not.
pub fn is_offline(&self) -> bool {
false
}
pub fn audio_context_impl(&self) -> Rc<AudioContext> {
self.audio_context_impl.clone()
}