Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upStereoPannerNode DOM #23281
StereoPannerNode DOM #23281
Conversation
highfive
commented
Apr 27, 2019
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @SimonSapin (or someone else) soon. |
highfive
commented
Apr 27, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Apr 27, 2019
|
r? @Manishearth |
|
@Manishearth Okay, I believe I added the constraints appropriately. Thank you. |
|
|
|
@Manishearth I see that there are build errors for this, but a lot of them seem to be related to the fact that it can't find stereo_panner_node in servo_media. That's being implemented in a different pull request, servo/media#243 . Is there anything else I can do for this one before I get that one working? |
|
Nah, get that one working first. There's a way to locally redirect dependencies but I'd rather just merge that first and look at this one later. |
|
@Manishearth Now that servo/media#243 has been merged, what is the best way to update this branch to reflect those changes? Should I pull the master branch, or something else? |
|
Also, you should first rebase and squash this (there will be a small merge conflict that needs fixing) so you won't have the same problem you had in the other PR. Ideally if you can, make the commit that updates servo-media a separate commit before the main one (it's easier to rebase this in case of lockfile issues), but don't worry about that if you don't know how. |
|
@Manishearth Are you saying I should squash before running the |
Run Yes, squash first. |
|
@Manishearth I ran |
|
If you remove all of the entries and close the editor, the rebase will be cancelled without making any changes. |
|
@jdm Thanks for the tip! Sorry, I don't have a lot of experience using git before this project. |
|
On a bus right now, will push later. Is This worked for me locally. |
|
@Manishearth |
|
Pushed. I also included the update of servo-media. Run the following to get the update locally
|
|
@Manishearth I'm getting the following build error:
I've searched the repo for AudioNodeTypeId, but I can't figure out where I need to add StereoPannerNode in order to get rid of this error? |
|
this gets subclassed twice, so the type id is a bit more complex |
|
@Manishearth This builds without issues for me now and I ran |
|
Looks good! Now we need to update test expectations. Please run
and commit the changes |
|
There shouldn't be any `MIN`, just `-1.`.
You'll need to wait for a full build before running tests.
…On Tue, Apr 30, 2019, 9:22 AM Maria Sable ***@***.***> wrote:
*@PurpleHairEngineer* commented on this pull request.
------------------------------
In components/script/dom/stereopannernode.rs
<#23281 (comment)>:
> + let source_node = AudioScheduledSourceNode::new_inherited(
+ AudioNodeInit::StereoPannerNode(options.into()),
+ context,
+ node_options,
+ 0, /* inputs */
+ 1, /* outputs */
+ )?;
+ let node_id = source_node.node().node_id();
+ let pan = AudioParam::new(
+ window,
+ context,
+ node_id,
+ ParamType::Pan,
+ AutomationRate::A_rate,
+ *options.pan,
+ f32::MIN,
@Manishearth <https://github.com/Manishearth> Okay, I changed it to
-1::MIN and did the same for MAX. However, when I run mach.bat test-wpt
/webaudio/the-audio-api --log-raw log, it says Binary path
C:\Users\Maria\servo\target\debug\servo.exe does not exist.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23281 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAMK6SG3KTVFKIFYFVIELD3PTBW5BANCNFSM4HI4JHJA>
.
|
StereoPannerNode DOM <!-- Please describe your changes on the following line: --> This is the DOM implementation for StereoPannerNode. Backend implemented in servo/media#243. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/23281) <!-- Reviewable:end -->
|
@bors-servo r+ |
|
|
StereoPannerNode DOM <!-- Please describe your changes on the following line: --> This is the DOM implementation for StereoPannerNode. Backend implemented in servo/media#243. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/23281) <!-- Reviewable:end -->
|
|
|
@bors r+ |
|
@Manishearth Thank you so much for all your help! It looks like you approved the merge but it is still open. Is there anything else I can do for this? |
|
No, our CI robot will eventually test and merge this |
|
@Manishearth Oh okay, I was just wondering because it has the label awaiting review. |
|
@bors-servo r+ ah, did it the wrong way |
|
|
StereoPannerNode DOM <!-- Please describe your changes on the following line: --> This is the DOM implementation for StereoPannerNode. Backend implemented in servo/media#243. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/23281) <!-- Reviewable:end -->
|
|
PurpleHairEngineer commentedApr 27, 2019
•
edited
This is the DOM implementation for StereoPannerNode. Backend implemented in servo/media#243.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is