aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/audioscheduledsourcenode.rs
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-4/+7
| | | | | * strict imports formatting * Reformat all imports
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Unify the task source and task canceller APIAgustin Chiappe Berrini2018-11-141-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I moved away from the `Window` struct all the logic to handle task sources, into a new struct called `TaskManager`. In a happy world, I'd be able to just have there two functions, of the types: ```rust fn task_source<T: TaskSource>(&self, name: TaskSourceName) -> Box<T> fn task_source_with_canceller<T: TaskSource>(&self, name: TaskSourceName) -> (Box<T>, TaskSourceCanceller) ``` And not so much duplicated code. However, because TaskSource can't be a trait object (because it has generic type parameters), that's not possible. Instead, I decided to reduce duplicated logic through macros. For reasons[1], I have to pass both the name of the function with canceller and the name of the function without, as I'm not able to concatenate them in the macro itself. I could probably use `concat_idents` to create both types already defined and reduce the amount of arguments by one, but that macro is nightly only. At the same time, not being able to declare macros inside `impl` forces me to pass `self` as an argument. All this makes this solution more verbose than it would be ideally. It does reduce duplication, but it doesn't reduce the size of the file. [1](https://github.com/rust-lang/rust/issues/29599)
* Reorder importsPyfisch2018-11-061-1/+1
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-9/+9
|
* More accurate names for .started and .stoppedManish Goregaokar2018-10-111-10/+10
|
* Throw if time given to AudioScheduledSourceNode.stop is negativeFernando Jiménez Moreno2018-09-251-0/+8
|
* Format script componentchansuke2018-09-191-3/+4
|
* Pass down ChannelInfo to create_nodeManish Goregaokar2018-09-111-3/+2
|
* Throw on out-of-bounds channelCount in AudioNodesManish Goregaokar2018-09-031-4/+5
|
* Upgrade to latest servo-mediaManish Goregaokar2018-08-231-1/+0
|
* Fire AudioScheduledSourceNode.onended when playback stopsFernando Jiménez Moreno2018-07-301-1/+31
|
* test-tidy fixesFernando Jiménez Moreno2018-07-301-1/+1
|
* Reference issue to support the AudioScheduledSourceNode.ended eventFernando Jiménez Moreno2018-07-301-0/+1
|
* rustfmtFernando Jiménez Moreno2018-07-301-15/+25
|
* Use new params impl (#4)Manish Goregaokar2018-07-301-2/+2
| | | | | | * AudioNodeType -> AudioNodeInit * Use new param type system, clean up
* createBufferSource and buffer setter on buffer source nodeFernando Jiménez Moreno2018-07-301-5/+24
|
* Initial AudioParam bindingsFernando Jiménez Moreno2018-07-301-0/+5
|
* Get destination node engine from contextFernando Jiménez Moreno2018-07-301-1/+2
|
* AudioScheduledSourceNode start and stopFernando Jiménez Moreno2018-07-301-3/+9
|
* Update to use latest servo-media APIFernando Jiménez Moreno2018-07-301-15/+4
|
* Test OscillatorNode with servo_mediaFernando Jiménez Moreno2018-07-301-0/+13
|
* Initial WebAudio API stubsFernando Jiménez Moreno2018-07-301-0/+38