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

1218 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard 3cf8c6d0df Bug 1524890 - P7. No longer access AudioData::mFrames directly. r=bryce
This will allow to remove mFrames member and calculate from the size of the content, which will dynamically change depending on a cropping filter.

Differential Revision: https://phabricator.services.mozilla.com/D20165

--HG--
extra : moz-landing-system : lando
2019-02-22 09:18:47 +00:00
Karl Tomlinson 45ab39f95a Bug 1519562 throw in AudioWorkletNode constructor if name is not registered r=padenot
Depends on D20274

Differential Revision: https://phabricator.services.mozilla.com/D20275

--HG--
extra : moz-landing-system : lando
2019-02-19 12:57:57 +00:00
Karl Tomlinson 25a27ff34a bug 1519562 send AudioParamDescriptors from registerProcessor() to AudioContext r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D20274

--HG--
extra : moz-landing-system : lando
2019-02-21 03:12:59 +00:00
Karl Tomlinson 6e6824aff1 Bug 1518378 set panningModel on warm-up panner r=padenot
This is required since changes in
https://hg.mozilla.org/mozilla-central/rev/5636007e3d1a

Differential Revision: https://phabricator.services.mozilla.com/D19121

--HG--
extra : moz-landing-system : lando
2019-02-15 14:38:48 +00:00
alwu a844fb97f3 Bug 1526044 - part2 : resume from Chrome should only take effect when the AudioContext was suspended from Chrome. r=padenot
If the AudioContext is suspended by content or by Autoplay policy, it shouldn't be resumed by chrome.

Differential Revision: https://phabricator.services.mozilla.com/D19451

--HG--
extra : moz-landing-system : lando
2019-02-15 14:41:46 +00:00
alwu 1c2aaaf683 Bug 1526044 - part1 : do not append duplicated stream. r=padenot
Different nodes might have same AudioParam, so we shouldn't append same stream multiple times.

Differential Revision: https://phabricator.services.mozilla.com/D19450

--HG--
extra : moz-landing-system : lando
2019-02-15 14:41:22 +00:00
Sylvestre Ledru 41d1d79094 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D19663

--HG--
extra : moz-landing-system : lando
2019-02-15 08:15:57 +00:00
Alastor Wu 154304a084 Bug 1517324 - part1 : try to start blocked AudioContext with active MediaStreamAudioSourceNode stream r=karlt
This patch would try to start a blocked AudioContext when it creates a MediaStreamAudioSourceNode which has an active input stream or when a node's inactive stream becomes active, which means someone is feeding input data to AudioContext.

Therefore, we can do the similar thing like what we did for AudioScheduledSourceNode and MediaElementAudioSourceNode, to start AudioContext if current autoplay policy has allowed AudioContext to start.

Differential Revision: https://phabricator.services.mozilla.com/D18576

--HG--
extra : moz-landing-system : lando
2019-02-06 23:14:09 +00:00
Karl Tomlinson ad3740ae59 bug 1516956 keep AudioContext alive from AudioWorklet r=baku
to keep the graph/worklet thread running as long as the Worklet is alive.

Differential Revision: https://phabricator.services.mozilla.com/D15802

--HG--
extra : moz-landing-system : lando
2019-01-31 07:16:31 +00:00
Karl Tomlinson f5728da157 Bug 1516956 traverse AudioWorklet from AudioContext r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15801

--HG--
extra : moz-landing-system : lando
2019-01-09 18:51:51 +00:00
Alastor Wu 9b9c5c38d9 Bug 1524026 - part 2 : add test. r=padenot,smaug
Differential Revision: https://phabricator.services.mozilla.com/D18408

--HG--
extra : moz-landing-system : lando
2019-02-05 22:50:42 +00:00
Alastor Wu 0d138f528c Bug 1524026 - part1 : to allow 'AudioContext::GetAllStreams()' to get helper streams. r=padenot
The helper stream which is created by the AudioParam can't be directly got from the AudioNode, which means that we can't suspend/resume all streams related with the AudioNode.

Therefore, we should also append these streams when AudioContext requires all streams.

Differential Revision: https://phabricator.services.mozilla.com/D18296

--HG--
extra : moz-landing-system : lando
2019-02-05 22:54:09 +00:00
Alastor Wu edbdb185d6 Bug 1412231 - do not suspend/resume the AudioContext after the shutdown. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D18581

--HG--
extra : moz-landing-system : lando
2019-02-05 15:33:11 +00:00
Boris Zbarsky 12266da44b Bug 1521907 part 4. Start using CheckedUnwrapStatic/Dynamic in non-binding DOM code. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D17884

--HG--
extra : moz-landing-system : lando
2019-02-02 03:24:22 +00:00
Gurzau Raul 44e4d42e8a Backed out 7 changesets (bug 1521907) for failing at unit/test_bug1151385.js on a CLOSED TREE.
Backed out changeset ef04359ccf0d (bug 1521907)
Backed out changeset ac1c61bf61e9 (bug 1521907)
Backed out changeset df09b7be63c5 (bug 1521907)
Backed out changeset 585fa0024d46 (bug 1521907)
Backed out changeset e593c29aaff4 (bug 1521907)
Backed out changeset ac2e180a35b6 (bug 1521907)
Backed out changeset 270b1db9ea81 (bug 1521907)
2019-02-02 00:58:16 +02:00
Boris Zbarsky 76e1fab0c7 Bug 1521907 part 4. Start using CheckedUnwrapStatic/Dynamic in non-binding DOM code. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D17884

--HG--
extra : moz-landing-system : lando
2019-02-01 18:48:36 +00:00
Ciure Andrei 63b0f3f854 Backed out 7 changesets (bug 1521907) for JSObject Wrapper.cpp bustages and failures CLOSED TREE
Backed out changeset ce3108090e77 (bug 1521907)
Backed out changeset efd05f4979f1 (bug 1521907)
Backed out changeset 2d0895148907 (bug 1521907)
Backed out changeset 192152fe986a (bug 1521907)
Backed out changeset ca65b46b0d37 (bug 1521907)
Backed out changeset b3daf5ca3d11 (bug 1521907)
Backed out changeset 1b0a09a46c70 (bug 1521907)
2019-02-01 19:38:25 +02:00
Boris Zbarsky b014cb9758 Bug 1521907 part 4. Start using CheckedUnwrapStatic/Dynamic in non-binding DOM code. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D17884

--HG--
extra : moz-landing-system : lando
2019-01-31 15:51:52 +00:00
David Major 1ad5d6e1f1 Bug 1524087 - Use exp2 instead of pow in OscillatorNode r=padenot
Clang 7 was making the pow => exp2 optimization for us, and for some reason clang 8 stopped doing so. This resulted in a surprisingly large regression in raptor numbers.

Differential Revision: https://phabricator.services.mozilla.com/D18148

--HG--
extra : moz-landing-system : lando
2019-01-31 15:11:35 +00:00
Cosmin Sabou 7ccc9d8b0b Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
Alastor Wu 9bb36dab32 Bug 1519430 - part2 : only resume AudioContext which is blocked by autoplay policy. r=padenot
We would only start the AudioContext blocked by our autoplay policy, won't resume AudioContext which is suspended explictly by page.

Differential Revision: https://phabricator.services.mozilla.com/D16613

--HG--
extra : moz-landing-system : lando
2019-01-18 18:23:58 +00:00
Alastor Wu 7915740446 Bug 1519430 - part1 : add new methods for calling suspend/resume from chrome. r=padenot
In order to separate resume/suspend called from chrome and content side, we need to create new methods.

Differential Revision: https://phabricator.services.mozilla.com/D16612

--HG--
extra : moz-landing-system : lando
2019-01-18 18:35:07 +00:00
Paul Adenot 9829894232 Bug 1520457 - Adjust the message written in the console when the auto-play policy block an AudioContext. r=flod,cpearce
Differential Revision: https://phabricator.services.mozilla.com/D16692

--HG--
extra : moz-landing-system : lando
2019-01-16 22:14:08 +00:00
Coroiu Cristina 576b2b1b23 Backed out 3 changesets (bug 1519430) for mda failures at test_autoplay_policy_web_audio_notResumePageInvokedSuspendedAudioContext.html
Backed out changeset b7bc38b0f9c5 (bug 1519430)
Backed out changeset 987aa2594ba6 (bug 1519430)
Backed out changeset 521176ad7ae8 (bug 1519430)
2019-01-17 09:45:15 +02:00
Alastor Wu 736d0d470b Bug 1519430 - part2 : only resume AudioContext which is blocked by autoplay policy. r=padenot
We would only start the AudioContext blocked by our autoplay policy, won't resume AudioContext which is suspended explictly by page.

Differential Revision: https://phabricator.services.mozilla.com/D16613

--HG--
extra : moz-landing-system : lando
2019-01-17 02:58:03 +00:00
Alastor Wu c3a0523cce Bug 1519430 - part1 : add new methods for calling suspend/resume from chrome. r=padenot
In order to separate resume/suspend called from chrome and content side, we need to create new methods.

Differential Revision: https://phabricator.services.mozilla.com/D16612

--HG--
extra : moz-landing-system : lando
2019-01-17 02:56:22 +00:00
David Major f68118a2d1 Bug 1520021 - clang-cl should not use AudioNodeEngine's NEON workarounds. r=drno 2019-01-14 18:34:57 -05:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Ehsan Akhgari 06c3d29113 Bug 1521000 - Part 1: Reformat the tree to ensure everything is formatted correctly with clang-format r=sylvestre
Summary: # ignore-this-changeset

Reviewers: sylvestre

Reviewed By: sylvestre

Subscribers: reviewbot, emilio, jandem, bbouvier, karlt, jya

Bug #: 1521000

Differential Revision: https://phabricator.services.mozilla.com/D16936

--HG--
extra : histedit_source : 4add583bfa729ccc1aef934629ed45ff095189b0
2019-01-18 10:12:56 +01:00
Makoto Kato 6de3261d9f Bug 1518994 - Enable NEON in AudioNodeEngine on aarch64. r=drno
Although we don't define BUILD_ARM_NEON on aarch64 (bug 1303952), aarch64
supports NEON, so we should turn on NEON for AudioNodeEngine.

OpenMAX DL doesn't support aarch64 since we modify some codes.  So FFTBlock.h
still use ARM32 only.

Also, MSVC cannot use arm_neon.h header, doesn't allow
`float32x4_t zero = {0, 0, 0, 0};` and throws compiler warning.
So we need some workarounds to use this on MSVC.

Differential Revision: https://phabricator.services.mozilla.com/D16278

--HG--
extra : moz-landing-system : lando
2019-01-11 14:39:51 +00:00
alwu a48d405c9e Bug 1513733 - part4 : do not call suspendInternal() when constructing AudioContext r=karlt
As setting `mSuspendCalled` is enough to prevent the stream from starting, we have no need to apply unnessary audio context operation to MSG. In addition, it can avoid incorrect AudioContext's state because of out of order resume/suspend operation (https://bugzilla.mozilla.org/show_bug.cgi?id=1285290).

Differential Revision: https://phabricator.services.mozilla.com/D15679

--HG--
extra : moz-landing-system : lando
2019-01-11 18:54:43 +00:00
alwu ab5249684b Bug 1513733 - part2 : try to start AudioContext when media element which is as a source for web audio starts r=cpearce,karlt
If media element is used as a source for AudioContext, we would try to start AudioContext which was not allowed
to start when media element starts playing.

Differential Revision: https://phabricator.services.mozilla.com/D14593

--HG--
extra : moz-landing-system : lando
2019-01-11 20:43:01 +00:00
alwu 38e9580406 Bug 1513733 - part1 : rename 'NotifyScheduledSourceNodeStarted()' r=karlt
In order to call this method on other situations, rename it to 'StartBlockedAudioContextIfAllowed()'.

Differential Revision: https://phabricator.services.mozilla.com/D14592

--HG--
extra : moz-landing-system : lando
2019-01-11 20:42:02 +00:00
Arnaud Bienner 0de7c09e8d Bug 1501709 - AudioWorkletGlobalScope::RegisterProcessor: check descriptors and convert them to an internal representation. r=karlt,baku,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D11741

--HG--
extra : moz-landing-system : lando
2019-01-10 18:45:38 +00:00
Nathan Froyd a299b06741 Bug 1062533 - part 6 - change ReverbConvolver to use mozilla locking constructs; r=padenot
We are cargo-culting ipc/chromium/ code for this, and ReverbConvolver is
essentially the only outside consumer of Chromium IPC locks at this
point.
2019-01-09 11:09:24 -04:00
Karl Tomlinson 930c7dff0f Bug 1518352 remove unnecessary WeakPtr support from PannerNode r=padenot
This is no longer used since https://hg.mozilla.org/mozilla-central/rev/11b4729e92ec#l3.101

Differential Revision: https://phabricator.services.mozilla.com/D15890

--HG--
extra : moz-landing-system : lando
2019-01-08 10:07:15 +00:00
alwu 15cbe4a2c3 Bug 1512277 - Add Telemetry to know AudioContext blocking status if we enable blocking autoplay for web audio. r=karlt,Dexter
Differential Revision: https://phabricator.services.mozilla.com/D14118

--HG--
extra : moz-landing-system : lando
2019-01-08 21:52:31 +00:00
Karl Tomlinson f470a0dcbc Bug 1512737 assign HRTF to panningModel attribute instead of adding type property r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D14494

--HG--
extra : moz-landing-system : lando
2019-01-07 08:51:31 +00:00
alwu 6b72f94b2f Bug 1513039 - part14 : add new error message for web audio. r=baku,flod
Differential Revision: https://phabricator.services.mozilla.com/D14637

--HG--
extra : moz-landing-system : lando
2019-01-07 18:44:03 +00:00
alwu a4a90d4976 Bug 1513039 - part13 : set 'mWasAllowedToStart' flag. r=karlt
'mWasAllowedToStart' would be set to false if AudioContext is not allowed to start, and would be set to true if AudioContext has been allowed to start.

Differential Revision: https://phabricator.services.mozilla.com/D14636

--HG--
extra : moz-landing-system : lando
2019-01-07 18:43:31 +00:00
alwu 2e3f453263 Bug 1513039 - part5 : log warning when autoplay is blocked. r=cpearce,karlt
Wrap 'nsContentUtils::ReportToConsole()' to reduce necessary input parameters and call it when we need to log error or warning message. Show the warning when autoplay is blocked.

For web audio, this restores the console messages removed in part4 and also reports the same message when the AudioContext is blocked in the constructor.

Differential Revision: https://phabricator.services.mozilla.com/D14330

--HG--
extra : moz-landing-system : lando
2019-01-07 19:57:48 +00:00
alwu 28a21fe0ad Bug 1513039 - part4 : remove permission request logic in AudioContext. r=karlt
AudioContext won't need to ask permission request anymore, and we will report error message in patch5.

Differential Revision: https://phabricator.services.mozilla.com/D14329

--HG--
extra : moz-landing-system : lando
2019-01-07 18:33:36 +00:00
Andreea Pavel 95c3660e27 Bug 1485407 - test disabled on android debug r=jmaher 2019-01-03 15:46:00 +02:00
Emilio Cobos Álvarez d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Blake Kaplan 730f9f9bf9 Bug 1509442 - Enter a realm here. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D13481

--HG--
extra : moz-landing-system : lando
2018-12-20 05:40:20 +00:00
Karl Tomlinson d5065c1a5d Bug 1513722 run AudioWorklet for OfflineAudioContext on MSG thread r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13220

--HG--
extra : moz-landing-system : lando
2018-12-20 07:58:13 +00:00
Andreea Pavel d5f0aa2919 Backed out 2 changesets (bug 1513722) for build bustages
Backed out changeset 8e2c3015fc95 (bug 1513722)
Backed out changeset 0c454fd1dbcb (bug 1513722)
2018-12-20 06:57:15 +02:00
Karl Tomlinson 880bb5a5a9 Bug 1513722 run AudioWorklet for OfflineAudioContext on MSG thread r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13220

--HG--
extra : moz-landing-system : lando
2018-12-20 04:22:15 +00:00
Andreas Pehrson 88cb071d63 Bug 1513638 - Rename DispatchToMainThreadAfterStreamStateUpdate to DispatchToMainThreadStableState. r=jya,karlt
Differential Revision: https://phabricator.services.mozilla.com/D14421

--HG--
extra : moz-landing-system : lando
2018-12-19 04:34:10 +00:00
Bogdan Tara a5963704c0 Backed out changeset 134d6c86e984 (bug 1509442) for browser_webAudio_silentData.js failures CLOSED TREE 2018-12-19 03:03:42 +02:00