mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Format remaining files
This commit is contained in:
parent
bf47f90da6
commit
cb07debcb6
252 changed files with 5944 additions and 3744 deletions
|
@ -348,7 +348,11 @@ impl BaseAudioContextMethods for BaseAudioContext {
|
|||
|
||||
/// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createbiquadfilter
|
||||
fn CreateBiquadFilter(&self) -> Fallible<DomRoot<BiquadFilterNode>> {
|
||||
BiquadFilterNode::new(&self.global().as_window(), &self, &BiquadFilterOptions::empty())
|
||||
BiquadFilterNode::new(
|
||||
&self.global().as_window(),
|
||||
&self,
|
||||
&BiquadFilterOptions::empty(),
|
||||
)
|
||||
}
|
||||
|
||||
/// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createchannelmerger
|
||||
|
@ -432,10 +436,12 @@ impl BaseAudioContextMethods for BaseAudioContext {
|
|||
.lock()
|
||||
.unwrap()
|
||||
.resize(channel_count as usize, Vec::new());
|
||||
}).progress(move |buffer, channel| {
|
||||
})
|
||||
.progress(move |buffer, channel| {
|
||||
let mut decoded_audio = decoded_audio_.lock().unwrap();
|
||||
decoded_audio[(channel - 1) as usize].extend_from_slice((*buffer).as_ref());
|
||||
}).eos(move || {
|
||||
})
|
||||
.eos(move || {
|
||||
let _ = task_source.queue_with_canceller(
|
||||
task!(audio_decode_eos: move || {
|
||||
let this = this.root();
|
||||
|
@ -461,7 +467,8 @@ impl BaseAudioContextMethods for BaseAudioContext {
|
|||
}),
|
||||
&canceller,
|
||||
);
|
||||
}).error(move |error| {
|
||||
})
|
||||
.error(move |error| {
|
||||
let _ = task_source_.queue_with_canceller(
|
||||
task!(audio_decode_eos: move || {
|
||||
let this = this_.root();
|
||||
|
@ -478,7 +485,8 @@ impl BaseAudioContextMethods for BaseAudioContext {
|
|||
}),
|
||||
&canceller_,
|
||||
);
|
||||
}).build();
|
||||
})
|
||||
.build();
|
||||
self.audio_context_impl
|
||||
.decode_audio_data(audio_data, callbacks);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue