diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-07-31 09:00:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 09:00:06 -0400 |
commit | 0051597525797c4404cdc460389fe27780729626 (patch) | |
tree | 10c7e68a45f2b6568a27b50d813521dfea9ea38c /python/servo/devenv_commands.py | |
parent | 6e7f7fc8eba432ca5f34c55f668fd7968263f52d (diff) | |
parent | 2daf9ff3eb3006101b36aa2e1a31b9024d9f3b0d (diff) | |
download | servo-0051597525797c4404cdc460389fe27780729626.tar.gz servo-0051597525797c4404cdc460389fe27780729626.zip |
Auto merge of #21158 - ferjm:webaudio, r=manishearth,nox,ferjm
WebAudio API
- [X] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #6710
- [X] There are tests for these changes
This PR adds basic support for the WebAudio API using [servo-media](https://github.com/servo/media) with GStreamer as the audio backend.
There are still some major stuff to fix like:
- [x] Detach ArrayBuffer during the [AudioBuffer "acquire the content" operation](https://webaudio.github.io/web-audio-api/#acquire-the-content). I am naively using `JS_StealArrayBufferContents()` directly, because it is what Gecko uses, but this should probably be part of the [rust-mozjs](https://github.com/servo/rust-mozjs) [TypedArray](https://github.com/servo/rust-mozjs/blob/master/src/typedarray.rs) API. And, in any case, I am not even sure if that's the proper way to do it. According to the results of the WPTs it may not even be right since [this assertion](https://github.com/servo/rust-mozjs/blob/master/src/typedarray.rs#L285) is failing in some cases. I need to dig more about this.
- [x] Disable the GStreamer dependency on Android. Unfortunately gstreamer-rs requires an NDK version upgrade, so we need to disable this for Android until then. I tried adding [different features to servo-media](https://github.com/servo/media/pull/79), but I am currently hitting [this issue](https://github.com/rust-lang/cargo/issues/1197)
I still need to run servo-tidy, change the servo-media dependency to use the git repo and add/fix some comments and TODOs.
The remaining feature work should be done in future PRs.
Note that most of the failing WPTs are failing because we don't implement the tested features yet (we only implement a few AudioNodes) and we have no OfflineAudioContext support, which most WPTs rely on.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21158)
<!-- Reviewable:end -->
Diffstat (limited to 'python/servo/devenv_commands.py')
0 files changed, 0 insertions, 0 deletions