Граф коммитов

1726 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot d558cd8795 Bug 1767549 - Ensure that AudioContext state transition happen at the right time w.r.t. cubeb stream initialization time. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D146713
2022-05-24 11:41:07 +00:00
Paul Adenot 126921cf95 Bug 1767549 - Fix test_currentTime.html to wait for the initial "suspended" -> "running" transition. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D147086
2022-05-24 11:41:06 +00:00
Bogdan Szekely 0f9ad660dd Backed out 4 changesets (bug 1767549) for causing mda failures on test_slowStart.html
Backed out changeset 859a07722632 (bug 1767549)
Backed out changeset 46187304029d (bug 1767549)
Backed out changeset 8aa67afb67c4 (bug 1767549)
Backed out changeset 75326cb6e15e (bug 1767549)
2022-05-24 12:47:50 +03:00
Paul Adenot 376ac34fe5 Bug 1767549 - Ensure that AudioContext state transition happen at the right time w.r.t. cubeb stream initialization time. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D146713
2022-05-24 08:52:13 +00:00
Paul Adenot 5f88cd32c1 Bug 1767549 - Fix test_currentTime.html to wait for the initial "suspended" -> "running" transition. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D147086
2022-05-24 08:52:12 +00:00
Kagami Sascha Rosylight c4ef20eca6 Bug 1768189 - Part 21: Apply modernize-concat-nested-namespaces to dom/media/webaudio/IIRFilterNode.h ... r=andi
Depends on D145754

Differential Revision: https://phabricator.services.mozilla.com/D145755
2022-05-09 20:41:11 +00:00
Kagami Sascha Rosylight 4283c3f1dc Bug 1768189 - Part 20: Apply modernize-concat-nested-namespaces to dom/media/systemservices/CamerasParent.h ... r=andi
Depends on D145753

Differential Revision: https://phabricator.services.mozilla.com/D145754
2022-05-09 20:41:10 +00:00
Nika Layzell 052cba0853 Bug 1738106 - Part 3: Switch to TaskQueue::Create, r=xpcom-reviewers,necko-reviewers,media-playback-reviewers,dragana,alwu,barret
In future parts, TaskQueue will require extra initialization to be performed
which cannot happen in a constructor, as it takes references to the TaskQueue
object itself, which will require the introduction of a helper method. This
patch switches all callers of the TaskQueue constructor to use the new method.

Differential Revision: https://phabricator.services.mozilla.com/D142604
2022-05-02 20:37:34 +00:00
Butkovits Atila bbb5b8e7c6 Backed out changeset 116072b466c3 (bug 1758780) as requested by the dev. 2022-04-20 09:50:56 +03:00
Mike Hommey 7bd595e50e Bug 1758780 - Increase test's fuzzTolerance to accomodate clang 14. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D143668
2022-04-15 05:26:50 +00:00
Nika Layzell 7743d4fd62 Bug 1761536 - Part 2: Replace nsTArray::elem_type with value_type, r=mccr8
There weren't that many uses of the existing typedef, so it seemed like
it might be worthwhile to just replace all uses of the previous typedef
with the stl-like one.

Differential Revision: https://phabricator.services.mozilla.com/D142705
2022-04-01 17:00:25 +00:00
Randell Jesup ec34ccc22e Bug 1761771: Adding missing mutex to AudioBufferMemoryTracker::CollectReports r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D142212
2022-03-28 14:26:48 +00:00
Randell Jesup 6ba2bca6f4 Bug 1207753 - webaudio thread-safety annotations r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D130588
2022-03-22 14:07:34 +00:00
Paul Adenot ccbb18aba2 Bug 1752917 - Check that a ScriptProcessorNode still has a track after marking it as inactive while updating its connection status. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D141247
2022-03-17 11:09:35 +00:00
Randell Jesup fcaf70841e Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 18:47:08 +00:00
Noemi Erli 2390d257e6 Backed out changeset 12a59e5a50bf (bug 1207753) for causing build bustage CLOSED TREE 2022-03-16 18:32:51 +02:00
Randell Jesup 4b033a5256 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 16:16:14 +00:00
Butkovits Atila 927ad62c6a Backed out changeset a68ee4b09f92 (bug 1207753) for causing Hazard bustages. CLOSED TREE 2022-03-16 14:38:14 +02:00
Randell Jesup 7d4b5fae04 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 12:01:14 +00:00
Emilio Cobos Álvarez 2dd7088690 Bug 1759163 - Add origin trial support for worklets. r=asuth
Move the trial getter to nsIGlobalObject, make every implementation
provide a reasonable value, and add a test.

Differential Revision: https://phabricator.services.mozilla.com/D140848
2022-03-15 23:16:14 +00:00
Marian-Vasile Laza f0b42c159c Backed out changeset 558e256fcb31 (bug 1759163) for causing mochitest failures on test_header_simple.html. 2022-03-15 15:23:04 -07:00
Emilio Cobos Álvarez 7961a431ef Bug 1759163 - Add origin trial support for worklets. r=asuth
Move the trial getter to nsIGlobalObject, make every implementation
provide a reasonable value, and add a test.

Differential Revision: https://phabricator.services.mozilla.com/D140848
2022-03-15 17:50:03 +00:00
Mike Hommey 526e84fa47 Bug 1757122 - Replace unqualified uses of std::move. r=xpcom-reviewers,media-playback-reviewers,mccr8,bryce
Clang trunk added a warning about unqualified uses of std::move.
https://reviews.llvm.org/D119670

Differential Revision: https://phabricator.services.mozilla.com/D139681
2022-03-01 04:15:26 +00:00
Joel Maher d6153ea6ee Bug 1755075 - split up webrtc tests and dom tests for smaller manifest chunks. r=bwc,media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D139153
2022-02-23 23:13:34 +00:00
Sylvestre Ledru 98949ee751 Bug 1754767 - Remove duplicate includes r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D138441
2022-02-11 10:01:15 +00:00
Paul Adenot 5dc3029a55 Bug 1749308 - Don't attempt to send a message to the graph after a ScriptProcessorNode has been marked for collection. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D135612
2022-01-31 10:17:04 +00:00
Paul Adenot b4d94a971f Bug 1748272 - Compare graphs instead of sample-rates when creating an AudioNodeExternalInputTrack. r=karlt
What is happening here is that the left hand side operand of the equality
operator is an integer, and the right hand side operand is a float, that has a
fractional value that is not null. The left hand side gets promoted to a float
and the equality check fails.

In practice, the graph is always instantiated with a sample-rate that is an
integer, and this conversion happens without explicit rounding, so it's a floor
operation. However, the sample-rate of an AudioContext is a float, so there is
an edge case where the graph and the AudioContext don't have the same
sample-rate.

I don't think this matters in practice.

Switching to comparing that the graph passed as a parameter is the same as the
graph the AudioNode is in is enough to assert here and doesn't suffer from the
sample-rate problem.

Differential Revision: https://phabricator.services.mozilla.com/D135044
2022-01-05 12:16:25 +00:00
Ryan VanderMeulen 71a2f0ddf6 Bug 906752 - Re-enable some tests in dom/media/webaudio. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D133090
2021-12-07 14:49:28 +00:00
Chris Peterson f6fdbf028a Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium
-Wshadow warnings are not enabled globally, so these -Wno-shadow suppressions have no effect. I had intended to enable -Wshadow globally along with these suppressions in some directories (in bug 1272513), but that was blocked by other issues.

There are too many -Wshadow warnings (now over 2000) to realistically fix them all. We should remove all these unnecessary -Wno-shadow flags cluttering many moz.build files.

Differential Revision: https://phabricator.services.mozilla.com/D132289
2021-12-01 06:40:04 +00:00
Andi-Bogdan Postelnicu c8e0f87391 Bug 1519636 - First reformat with clang-format 13.0.0. r=firefox-build-system-reviewers,sylvestre,mhentges
Updated with clang-format version 13.0.0 (taskcluster-OgjH5lasS5K_fvefdRcJVg)

Depends on D131114

Differential Revision: https://phabricator.services.mozilla.com/D129119
2021-11-16 08:07:30 +00:00
Dhruv Rajvanshi b7e0ca6df2 Bug 1689894 - Make createPeriodicWave accept a pair of sequences r=karlt,webidl,smaug
https://github.com/WebAudio/web-audio-api/pull/1197

Differential Revision: https://phabricator.services.mozilla.com/D129977
2021-11-03 21:06:56 +00:00
Edgar Chen 791c03c6a7 Bug 1736564 - Create a common error message for conversion error; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D128883
2021-10-20 08:27:55 +00:00
Evgenia Kotovich 0d0980ee0d Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-18 09:26:33 +00:00
Noemi Erli 2bba3cec69 Backed out changeset 2ab6bb03dcc1 (bug 1576768) for causing failures in test_double_submit.html CLOSED TREE 2021-10-18 02:05:57 +03:00
Evgenia Kotovich 3e3dff109c Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-17 14:59:14 +00:00
Alexandru Michis dac6815201 Backed out changeset 7c08aa027893 (bug 1576768) for causing multiple failures.
CLOSED TREE
2021-10-15 16:52:43 +03:00
Evgenia Kotovich a8b32926fa Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-15 12:58:11 +00:00
Chris Peterson 79809454f8 Bug 1732840 - Fix non-unified build errors in webaudio code. r=padenot
Building with `ac_add_options --disable-unified-build` on macOS hits the following warnings-as-errors:

dom/media/GraphDriver.cpp:594:21: warning: code will never be executed [-Wunreachable-code]
dom/media/webaudio/blink/HRTFPanner.cpp:43:16 [-Wunused-const-variable] unused variable 'RenderingQuantum'

Differential Revision: https://phabricator.services.mozilla.com/D126754
2021-09-29 03:46:41 +00:00
Paul Adenot 26420d2dea Bug 1724014 - Disable audio input processing when checking tab muting. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D126251
2021-09-22 11:48:53 +00:00
Paul Adenot 0d92e0b339 Bug 1724997 - Put the AudioWorkletProcessor's name in the marker when calling its process method. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122740
2021-08-26 09:15:40 +00:00
Paul Adenot cd9af3411c Bug 1724997 - Add tracing markers for more MediaTrackGraph events. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D122739
2021-08-26 09:15:40 +00:00
Paul Adenot 6da8e045b1 Bug 1724997 - Add profiler markers on AudioWorklet.addModule. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122735
2021-08-26 09:15:38 +00:00
Paul Adenot 5a3c805491 Bug 1724997 - Add markers in AudioWorklet related methods. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122733
2021-08-26 09:15:37 +00:00
alwu 57261b2aa0 Bug 1719183 - part3 : let running audio context to keep tab awake. r=padenot,nika
Let running AudioContext also prevents tab from being suspended by asking/revoking the page awake via the browsing context.

Differential Revision: https://phabricator.services.mozilla.com/D119839
2021-08-03 21:32:27 +00:00
Tooru Fujisawa 8f6310e25c Bug 1708450 - Move call and construct functions into js/public/CallAndConstruct.h. r=nbp
Depends on D119619

Differential Revision: https://phabricator.services.mozilla.com/D119620
2021-07-13 11:52:43 +00:00
Tooru Fujisawa cc92ef732d Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D119619
2021-07-13 11:52:42 +00:00
Chun-Min Chang 54e5af0ed9 Bug 1716248 - Change AppendAndConsumeChunk's input parameter type r=padenot
It's better to change the input parameter's type of
`AppendAndConsumeChunk` from `AudioChunk*` to `AudioChunk&&` since the
`AudioChunk` will be consumed once it's fed to this function.

One benefit for doing so is to prevent the consumed `AudioChunk` from
being used again after it's moved/consumed. Gecko has a clang-tidy
check, bugprone-use-after-move [1], to avoid this kind of error. We
should utilize this check instead of catching used-after-move error by
human eyes.

[1]: https://searchfox.org/mozilla-central/rev/f351e19360729b351bfc7c1386d6e4ca4ea676e2/tools/clang-tidy/config.yaml#70

Differential Revision: https://phabricator.services.mozilla.com/D117714
2021-06-23 00:24:16 +00:00
Butkovits Atila 7f57e645d9 Backed out changeset da97faf315ee (bug 1716248) for causing Gtest failures. CLOSED TREE 2021-06-22 01:46:58 +03:00
Chun-Min Chang 757215321c Bug 1716248 - Change AppendAndConsumeChunk's input parameter type r=padenot
It's better to change the input parameter's type of
`AppendAndConsumeChunk` from `AudioChunk*` to `AudioChunk&&` since the
`AudioChunk` will be consumed once it's fed to this function.

One benefit for doing so is to prevent the consumed `AudioChunk` from
being used again after it's moved/consumed. Gecko has a clang-tidy
check, bugprone-use-after-move [1], to avoid this kind of error. We
should utilize this check instead of catching used-after-move error by
human eyes.

Differential Revision: https://phabricator.services.mozilla.com/D117714
2021-06-21 21:50:45 +00:00
Paul Bone 6191ca4916 Bug 1709526 - Fix all the lint errors for .ini files in dom/ r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D114321
2021-05-06 01:29:31 +00:00