Commit Graph

857 Commits

Author SHA1 Message Date
Andreas Pehrson
091e8c0b00 Bug 1259788 - Support MediaStream sources for HTMLMediaElement.mozCaptureStream(). r=jesup
This adds support for HTMLMediaElement.mozCaptureStream() and
mozCaptureStreamUntilEnded() for a HTMLMediaElement playing a MediaStream.

This is up to spec, while capturing a HTMLMediaElement playing a file is not.
This incompatibility means we cannot mix sources for the returned MediaStream.

As such, a MediaStream returned while the HTMLMediaElement was playing a file
will only have content while the element is playing files. If the src changes
to a MediaStream, the stream will be empty.

It works the same way if a MediaStream was captured while the HTMLMediaElement
was playing another MediaStream.

This is due to TrackID management - MediaDecoder doesn't care, and creates new
tracks when you seek, so users are unable to keep track, while for MediaStream
we control everything from main thread and keep track of the TrackIDs used
previously.

This also adds a separate path from MediaElementAudioSourceNode so that we don't
forward video tracks when the returned MediaStream is only used internally for
WebAudio. We should in that case not require a DOMMediaStream but just forwarding
tracks to a TrackUnionStream should be enough, and will save us some cpu cycles.
This is however fine for now as it's simpler.

MozReview-Commit-ID: Bg8hESDISDU

--HG--
extra : rebase_source : 83885a73ec8cfc5fbe3c30a9330a52cd6b6dff12
extra : source : f1aec79078869c0a6435a1c06957c649d7a40dd9
2016-08-23 17:51:50 +02:00
Andreas Pehrson
83dcc7266e Bug 1259788 - Break out AddTrackInternal() from DOMMediaStream::CreateDOMTrack. r=jesup
Sometimes a track is added to a stream synchronously (before the stream is
exposed to script), and sometimes asynchronously (see the mediacapture-main spec
on the "addtrack" event).

In the latter case we might still need to create the MediaStreamTrack object
synchronously for tracking purposes. CaptureStream of Media element playing a
MediaStream wants this.

MozReview-Commit-ID: 7me8xzN7rwj

--HG--
extra : rebase_source : 4f129b127b855e47aad2ae9ab3981ffde057412d
2016-08-12 13:50:41 +02:00
Nicholas Nethercote
c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Thomas Wisniewski
6c4149c011 Bug 1017704 - Move DropJSObjects into the destructor in AudioBuffer.cpp. r=mccr8
--HG--
extra : rebase_source : a4c5ee7e40bf26814df7b9397b9862fb08684069
2016-08-20 20:32:52 -04:00
Andreas Pehrson
dc0f8c6c81 Bug 1295296 - Add a mochitest. r=jesup
MozReview-Commit-ID: OolLgdIQy9

--HG--
extra : rebase_source : ed1ba6c14885f17e1d11fb4cb76fe5184f9a0e2a
extra : source : 4c3c88e0fdc55930c9bc2c43667513932417d6c4
2016-08-18 18:39:19 +02:00
Wes Kocher
a58f8b89a0 Merge m-c to inbound, a=merge 2016-08-18 16:32:58 -07:00
Wes Kocher
75891668b5 Merge m-c to fx-team, a=merge 2016-08-17 17:26:23 -07:00
Randell Jesup
bb59c9e52f Backed out changeset 3fb31d11633e (bug 1295296) 2016-08-17 16:22:41 -04:00
Andreas Pehrson
0083eb9342 Bug 1295296 - Ignore video tracks in MediaStreamAudioSourceNode. r=jesup
MozReview-Commit-ID: 1NeFS5wIpxC

--HG--
extra : transplant_source : %CB%0A%A7c%5C%EF%9A%EA%E6D%AE%9C%8F%CC%16%3E%9E%9E2a
2016-08-17 14:26:47 +02:00
Andreas Pehrson
0dd38ea89e Bug 1295296 - Assert that we don't see video tracks in ExternalAudioInputStream. r=jesup
MozReview-Commit-ID: Cw7KMFhY5Ai

--HG--
extra : transplant_source : w_U%C6%0DVL%3F%22%03D%0F%8E%05%86%8A%97%D6%7C%8D
2016-08-17 14:26:15 +02:00
Andreas Pehrson
97c077fd3e Bug 1295296 - Add a mochitest. r=jesup
MozReview-Commit-ID: OolLgdIQy9

--HG--
extra : transplant_source : %87%0E%B2K%BFr%D4%2B%F4%B99r%F7%F3%92%BA%D3%90%A7%FD
2016-08-17 14:25:33 +02:00
Dan Minor
3de6cf478f Bug 1281382 - Fix setTargetAtTime using incorrect starting value when earlier event is skipped; r=karlt
This updates mLastComputedValue when removing events during the call to
CleanupEventsOlderThan.

MozReview-Commit-ID: 1Veyv8kLIna

--HG--
extra : rebase_source : 9ee9aeb458b60316f93616e3310ad26f9e85e79c
2016-08-12 14:57:19 -04:00
Wes Kocher
4aec37ca6e Merge m-c to autoland, a=merge 2016-08-12 16:30:03 -07:00
Nicholas Nethercote
bab6d17ebf Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.

--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
Dan Minor
37a83aa8e1 Bug 1113634 - Update mLastComputedValue in AudioEventTimeline when skipping events of same time; r=karlt
We need to update mLastComputedValue while processing events that occur at the
same time rather than just skipping over them.

MozReview-Commit-ID: LuxSK6PHFHv

--HG--
extra : rebase_source : be323da2a50ea32838aef322267115d153a14c3d
2016-08-08 16:00:35 -04:00
Kaku Kuo
a6ed727230 Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz
MozReview-Commit-ID: KNbxVcCVqts

--HG--
extra : transplant_source : %1D%18%E5%C9o%F0%29%E7%E0%93%EEcR%C7B%3BeX%B3%87
2016-08-09 17:15:13 +08:00
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Dan Minor
de25516000 Bug 11130010 - Backout new AudioNode.disconnect methods; r=mreavy,karlt,smaug
MozReview-Commit-ID: AgHScRbICYU

--HG--
extra : rebase_source : 9ee0a1b35e5e292059f47fdea9f3782943b2ba5f
extra : amend_source : 40c16a7338c89cbce9ad550453fadbe1b7963aa0
2016-08-16 15:26:35 -04:00
Sebastian Hengst
8c139b8da8 Backed out changeset 74b1d84ac6aa (bug 1113634) for failing Cpp unit test TestAudioEventTimeline. r=backout 2016-08-11 17:30:54 +02:00
Dan Minor
540fbdb6bd Bug 1113634 - Update mLastComputedValue in AudioEventTimeline when skipping events of same time; r=karlt
MozReview-Commit-ID: LuxSK6PHFHv

--HG--
extra : rebase_source : 2f0a906e747f30a83aa7237850245c056e932bd6
2016-08-08 16:00:35 -04:00
Michael Layzell
2513a13f51 Bug 1291741 - Relax setTimeout throttling in background tabs when an AudioContext is present, rather than only when audio is playing, r=bkelly 2016-08-04 16:53:58 -04:00
JW Wang
32c54a1d7b Bug 1290028 - Remove the check for IsShutdown() from MediaDecoder::OwnerHasError(). r=gerald
MozReview-Commit-ID: Cg5UoFngxFr

--HG--
extra : rebase_source : afece4f66454cf7b2c68ede4b5802fc445be96fa
2016-07-28 17:21:09 +08:00
Gerald Squelart
7bea2e1262 Bug 1289668 - Refactor FrameStatistics writers to use Data struct - r=kamidphish
Decoders now use FrameStatisticsData to gather data for their frame-related
notifications. This will ease introducing new members later on.

MozReview-Commit-ID: DWdOSPX3JM

--HG--
extra : rebase_source : a3e05f34353a397d1c82b3f4d935c0864f90556e
2016-07-18 10:41:40 +10:00
Andrea Marchesini
60ab8339e0 Bug 1288736 - Add some missing rv.SuppressException(), r=smaug 2016-07-22 16:50:10 +02:00
Carsten "Tomcat" Book
8b6316ec5f Merge mozilla-central to mozilla-inbound 2016-07-22 11:59:06 +02:00
Carsten "Tomcat" Book
336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Andrew McCreight
623b56a3f1 Bug 1287143 - Remove the window argument to SpecialPowers.exactGC(). r=jmaher
Cu.forceCC() is the same as DOMWindowUtils.cycleCollect(), but does
not require a window.
2016-07-19 13:13:00 +08:00
Karl Tomlinson
791610c158 mochitest for bug 1255618 r=ehsan
--HG--
extra : transplant_source : %00%09%7E%28%2C%F2%AA%5E%BA0%F6K%0F%06%9A%9E%7C%91%CD%85
2016-03-14 16:58:18 +13:00
Karl Tomlinson
42c4a689dc bug 1242268 collect memory reports of AudioNode dom objects on the main thread r=padenot
This will permit allowing the main thread to run while collecting
reports from graph thread objects.

MozReview-Commit-ID: 7xChGz7xJ8M

--HG--
extra : rebase_source : a69dd197bfd3173c9a46979bac35e654d7d0771e
2016-07-01 18:46:34 +12:00
Karl Tomlinson
c69534f446 bug 1242268 store a node type string pointer on engines and use that for memory reporting r=padenot
removing some off-main-thread usage of AudioNodeEngine::mNode.

MozReview-Commit-ID: GYgFzPJQjjm

--HG--
extra : rebase_source : 9c4697b27bdfee971d9502c4b0573cdb7c740774
2016-07-01 16:26:15 +12:00
Karl Tomlinson
dc9ad2f5b2 bug 1242268 use pointers instead of copies of string literals in AudioNode memory reporting r=padenot
MozReview-Commit-ID: E85FGrmfOWI

--HG--
extra : rebase_source : 0895e91ca000164f70251ae0fbb61fcca39cbe56
2016-07-04 16:24:47 +12:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
Paul Adenot
d408de78ad Bug 1130010 - Add tests for the new {AudioParam,AudioNode}.disconnect() methods. r=dminor
Initial patch by Thomas Escalon <tesc.bugzilla@gmail.com>.

MozReview-Commit-ID: 2cptcTYuzDQ
2016-07-18 18:53:24 +02:00
Jan-Ivar Bruaroey
594073da3e Bug 1213517 - make getUserMedia store initial constraints on resulting tracks. r=jesup
MozReview-Commit-ID: 291CrmVmq4x

--HG--
extra : rebase_source : d29e6996ee93b01c8abe3a98a3f6d05e98bce3c5
2015-11-24 23:42:26 -05:00
Iris Hsiao
725d265c2c Backed out changeset 0fc93ec9ccd7 (bug 1213517) 2016-07-18 15:41:37 +08:00
Jan-Ivar Bruaroey
e7503fa4a5 Bug 1213517 - make getUserMedia store initial constraints on resulting tracks. r=jesup
MozReview-Commit-ID: 291CrmVmq4x

--HG--
extra : rebase_source : d29e6996ee93b01c8abe3a98a3f6d05e98bce3c5
2015-11-24 23:42:26 -05:00
Dan Minor
6f4290af81 Bug 1265394 - Handle infinite values in SetPosition and SetOrientation; r=padenot
Passing infinite values into an AudioParam will trigger an assert in debug
builds. Returning early here mimics the non-debug behaviour of refusing to
insert an event with an infinite value.

MozReview-Commit-ID: BaAtiAnh1s

--HG--
extra : rebase_source : 29b0e9a1f889c96725afb3abb71541e485330433
extra : histedit_source : 9281990becd2fbc934e121675d3075a40158049d
2016-07-05 14:29:59 -04:00
Dan Minor
de75e41852 Bug 1265394 - Update tests; r=padenot
MozReview-Commit-ID: 1G42f5ct8d4

--HG--
extra : rebase_source : 3c5bace5e1566f9c27a6fbb2f7ec817e094c2759
extra : histedit_source : 9ff9612c0332d05fd5001c1a3eabb04f34f9d05e
2016-06-23 13:41:52 -04:00
Dan Minor
8f422cb76a Bug 1265394 - Use new PannerNode AudioParams; r=padenot
MozReview-Commit-ID: 80n4dp8IrbM

--HG--
extra : rebase_source : 0a987b7e1fdc568a85bbf6824fb2074b07e81e68
extra : histedit_source : 34c7954fb256299ddc1e4df0774d7ffeeeb16eb7
2016-06-23 13:42:12 -04:00
Schwartz Clement
be454b970c Bug 1265394 - Add new PannerNode AudioParams to webidl; r=smaug
MozReview-Commit-ID: I09QSCU9pIr

--HG--
extra : rebase_source : 51f1737285ce7e8f821797c2f2ca43f12dde2958
2016-06-03 14:15:15 +02:00
Paul Adenot
9fe74fa149 Bug 1266646 - Disable assert temporarily to not cause too much pain to sherrifs.
This happens because we take a shortcut sometimes when resolving events, and
this de-linearizes the event queue.

MozReview-Commit-ID: AzJKGfnMNDi
2016-07-07 18:42:23 +02:00
Gregory Szorc
021d3fdfc7 Merge mozilla-central to mozilla-inbound 2016-07-06 18:26:17 -07:00
Wes Kocher
7c9b5f12a6 Merge m-c to autoland, a=merge 2016-07-05 17:14:16 -07:00
Paul Adenot
f754b752be Bug 1273009 - Prune AudioParam events in the main thread when inserting new events. r=karlt
Running the test-case in the bug, and profiling under OSX using Instruments'
time profiler, the time spent in `AudioEventTimeline::ValidateEvent` was the
highest Web Audio API-related function. This patch makes it disappear from the
profile. We already use the same technique on the MSG thread to keep the number
of events low.

MozReview-Commit-ID: GJLPRWBh7nQ
2016-06-29 10:25:58 +02:00
Andreas Pehrson
123a522376 Bug 934512 - Mark MediaStream source node as active while it has live audio tracks. r=padenot
MozReview-Commit-ID: F78FmUMMm6N

--HG--
extra : rebase_source : 707fdcba94859cecc20df3d8c7cbf572fbee10a3
2016-06-27 17:30:01 +02:00
Andreas Pehrson
982874d771 Bug 934512 - Test that MediaStreamAudioSourceNode does not get GCed while it has live audio tracks. r=padenot
MozReview-Commit-ID: u5Qh2aC7gI

--HG--
extra : rebase_source : 471f19f67f6beefb0d3183fe266c6b05c88cd584
2016-06-29 12:27:44 +02:00
Andreas Pehrson
c2f3b97171 Bug 1280445 - Clean up MediaStreamAudioSourceNode's TrackListener on destruction. r=padenot
MozReview-Commit-ID: L8ZOwiiFO15

--HG--
extra : rebase_source : cf0b489701a718950728b5324bbe7ec001ba03d0
2016-06-21 13:45:52 +02:00
Andreas Pehrson
e028368c0f Bug 1280445 - Remove wrapper from MediaStream. r=jesup, r=padenot
MozReview-Commit-ID: CTCFloIUXKa

--HG--
extra : rebase_source : b1c2073c638bb65c19a0f40e8d17e9a5bae15c98
extra : source : c6d854b3209e7de7d97153c0bfc492c1d5f1e6b5
2016-06-29 12:27:13 +02:00
ctai
fd36b32d94 Bug 1266646 - Move group of MediaStreamListener to a new header file. r=pehrsons
This can reduce the include header dependency. MediaStreamVideoSink will inherit from DirectMediaStreamTrackListener. But we can't use forward declaration on MediaStreamListener because the usage of nsTArray<RefPtr<MediaStreamVideoSink>>.

MozReview-Commit-ID: 328s4Kw9NvW

--HG--
extra : transplant_source : %D2%18%E3%3B%0C%D8%F04%F3%EB%EB%A0%A7%8B%B1%A9%AB%97rY
2016-06-30 15:07:48 +08:00
Dan Minor
db1eb8620e Bug 1283910 - Fix initialization of WaveShaperNode output buffer in null input case; r=padenot
MozReview-Commit-ID: 1YtpEvTa5vd

--HG--
extra : rebase_source : e84883081549df585673c87e3d77bc342f1d6522
2016-07-04 13:38:35 -04:00
Paul Adenot
bcad05ddff Bug 1283056 - Cast the enum to int to fix a bustage on a CLOSED TREE.
MozReview-Commit-ID: 8g6gJpz66cu

--HG--
extra : amend_source : 963759b6f8cd4f13ecbde08eb8863d5b5ae06481
2016-07-04 10:19:18 +02:00
Paul Adenot
2a30934f3d Bug 1283056 - Print the invalid state transition before crashing on the assert in AudioContext::OnStateChange. r=karlt
MozReview-Commit-ID: 6m6wmlzDtWk
2016-07-01 09:38:43 +02:00
Chris Pearce
0b88ff590f Bug 1267918 - Add GMPCrashHelper for WebAudio buffer decoder. r=karlt
This means if WebAudio is using the Adobe GMP for decoding and it crashes,
we'll get a crash report for the GMP.

MozReview-Commit-ID: FOZoPxvUwq5

--HG--
extra : rebase_source : 0641e4c46619693b2983a7d7297af525f1ac5bea
2016-06-29 11:42:10 +12:00
Paul Adenot
5e9d303d47 Bug 1269741 - Allow resuming a suspended AudioContext in the same event loop run. r=karlt
MozReview-Commit-ID: L7WlO96d2vh
2016-06-27 14:17:38 +02:00
Paul Adenot
a3c568891c Bug 1269741 - Test. r=karlt
MozReview-Commit-ID: 9dl3e5eTOKV
2016-05-04 14:25:52 +02:00
Paul Adenot
05d76a6ef9 Bug 1281408 - Nullcheck mInputPort in MediaStreamAudioSourceNode to prevent crashing when getting memory reports after the underlying MediaStream has been destroyed. r=pehrsons
MozReview-Commit-ID: 7OzFPmLVJA5

--HG--
extra : rebase_source : 50af142059a0d45521f42cf00c8f22344ffa72ec
2016-06-22 18:20:46 +02:00
Michael Layzell
62918c47a1 Bug 1279092 - Wait for the webaudio-node-demise event, r=padenot 2016-06-24 12:49:51 -04:00
Karl Tomlinson
8f6ffacf7d bug 1213313 set mComputedValue for each tick so that SetTarget values are calculated correctly r=padenot
from mLastComputedValue.

MozReview-Commit-ID: 28lYzlarp8U

--HG--
extra : rebase_source : fc8aca3718d9857b75cd835ffac1940d20e9d943
2016-06-21 18:02:06 +12:00
Karl Tomlinson
470d8c9d1d bug 1257718 replace bailOut variable with more descriptive timeMatchesEventIndex r=padenot
with the new variable matching the loop exit status of interest.

MozReview-Commit-ID: 8xy5ipo4trp

--HG--
extra : rebase_source : e951177af0699a550a4fb56a6192720207e74cb2
2016-06-21 17:48:31 +12:00
Karl Tomlinson
5d244c17fc bug 1257718 look for new events as time advances r=padenot
|bailout| is reset for each aTime, so that the appropriate events for that
time can be found.

The |eventIndex| loop is adjusted so that, when it is re-entered, it keeps
the current set of events if they are appropriate (instead of advancing
every time it is entered).

|previous| and |next| are now advanced even when passing the last event,
removing the special case when past all events.

MozReview-Commit-ID: 8ZSIzKKGQbd

--HG--
extra : rebase_source : bfc899287abaf12d5cdbfbc1b22d6626ab2299dd
2016-06-21 17:01:18 +12:00
Karl Tomlinson
ba91bfca8e bug 1257718 use is() for comparison with more info on failure than ok() r=padenot
MozReview-Commit-ID: 3XgQCq4Gg0S

--HG--
extra : rebase_source : 35a4c0c8a626350f96ba0d2359b28f557235aae4
2016-06-17 14:28:39 +12:00
Karl Tomlinson
b92cb079fc bug 1257718 introduce function-scope TimeOf() to simplify templated event time getter calls r=padenot
MozReview-Commit-ID: 7uKqlT2BpcS

--HG--
extra : rebase_source : 2670536946bde0e1a6911bacbaa68d1c636e6455
2016-06-17 10:54:54 +12:00
Karl Tomlinson
fc997c1ba1 bug 1257718 rename lastEventId to eventIndex r=padenot
This is not necessarily related to the last event and it is not the
previous event.

MozReview-Commit-ID: 6hhv184BHfg

--HG--
extra : rebase_source : 8013606e27a159bb2598217db40df926539227c6
2016-06-17 09:36:24 +12:00
Karl Tomlinson
9d3453793f bug 1257718 don't export implementation of complex timeline methods r=padenot
This limits recompilation required when modifying the methods, and
makes the public interface easier to read.

MozReview-Commit-ID: Lo2f7xmIdGu

--HG--
rename : dom/media/webaudio/AudioEventTimeline.h => dom/media/webaudio/AudioEventTimeline.cpp
extra : rebase_source : 75586bb320dd2e5606e691919b1c6a7c48c2065f
2016-06-17 05:26:13 +12:00
Karl Tomlinson
6fca9ca1b9 bug 1257718 move comment to within the code path it describes r=padenot
The comment was not necessarily true where it was previously positioned.

MozReview-Commit-ID: FMYkGkmuvVS

--HG--
extra : rebase_source : a6ae6958b9486c92c7830fcc334dac66c643dc29
2016-06-17 03:29:40 +12:00
Dan Minor
1b06c54c9f Bug 1276483 - Fix WaveShaper when connected from a silent GainNode; r=padenot
MozReview-Commit-ID: CUEO6PDwo5B

--HG--
extra : rebase_source : 4ef158a3bf8f9752d584982b01f0ad3e66ac3fe4
2016-06-20 10:42:50 -04:00
Dan Minor
0c66b656d9 Bug 1265395 - Implement new high pass filter equation; r=padenot
If run against the version of the test using the old equations, 8 of the
26460 values would be larger than the maximum difference threshold, so I
updated the test code to use the new equations as well.

MozReview-Commit-ID: 7gJb8rFQPq1

--HG--
extra : rebase_source : 53e13932e05053355e5f3fe69d06aa007c9314ac
2016-05-16 15:16:17 -04:00
Dan Minor
bdb8a133ee Bug 1265395 - Implement new low pass filter equation; r=padenot
If run against the version of the test using the old equations, 18 of the
26460 values would be larger than the maximum difference threshold, so I
updated the test code to use the new equations as well.

I also had to make a small increase to the maximum allowable glitch for
the tail test.

MozReview-Commit-ID: LrB3HufFWpJ

--HG--
extra : rebase_source : 5b011653b3c0d8a00c2a96185c703b5457058936
2016-06-08 12:49:40 -04:00
Dan Minor
b01574924b Bug 1265395 - Use blink biquad filter tests; r=padenot
MozReview-Commit-ID: 3cOAraspIR4

--HG--
rename : dom/media/webaudio/test/blink/biquad-allpass.html => dom/media/webaudio/test/blink/test_biquadFilterNodeAllPass.html
rename : dom/media/webaudio/test/blink/biquad-automation.html => dom/media/webaudio/test/blink/test_biquadFilterNodeAutomation.html
rename : dom/media/webaudio/test/blink/biquad-bandpass.html => dom/media/webaudio/test/blink/test_biquadFilterNodeBandPass.html
rename : dom/media/webaudio/test/blink/biquad-getFrequencyResponse.html => dom/media/webaudio/test/blink/test_biquadFilterNodeGetFrequencyResponse.html
rename : dom/media/webaudio/test/blink/biquad-highpass.html => dom/media/webaudio/test/blink/test_biquadFilterNodeHighPass.html
rename : dom/media/webaudio/test/blink/biquad-highshelf.html => dom/media/webaudio/test/blink/test_biquadFilterNodeHighShelf.html
rename : dom/media/webaudio/test/blink/biquad-lowpass.html => dom/media/webaudio/test/blink/test_biquadFilterNodeLowPass.html
rename : dom/media/webaudio/test/blink/biquad-lowshelf.html => dom/media/webaudio/test/blink/test_biquadFilterNodeLowShelf.html
rename : dom/media/webaudio/test/blink/biquad-notch.html => dom/media/webaudio/test/blink/test_biquadFilterNodeNotch.html
rename : dom/media/webaudio/test/blink/biquad-peaking.html => dom/media/webaudio/test/blink/test_biquadFilterNodePeaking.html
rename : dom/media/webaudio/test/blink/biquad-tail.html => dom/media/webaudio/test/blink/test_biquadFilterNodeTail.html
extra : rebase_source : 3fff8a2e63593efee1e93ec3780ed86541376c88
2016-06-08 14:37:21 -04:00
Dan Minor
ee7445c176 Bug 1265395 - Import blink biquad filter tests; r=padenot
Imported from git revision b1fd9cf76c2e80540100262b09911600936f2ae3.

MozReview-Commit-ID: HzfHxOExJxq

--HG--
extra : rebase_source : 977261aefc956d0f6e733eacc5c7c17a2bb29236
2016-05-13 10:36:41 -04:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Dan Minor
967be91752 Bug 1261168 - Add AlignedAutoTArray type in Web Audio; r=padenot
MozReview-Commit-ID: uQfTWkzKKB

--HG--
extra : rebase_source : c733e8bd17db57acaa0f0be4eefbf144ed2629af
2016-05-17 15:47:56 -04:00
Michael Layzell
b0efb7ddb3 Bug 1181073 - Relax setTimeout throttling for background tabs using web audio, r=bkelly 2016-06-07 18:05:55 -04:00
Dan Minor
072334bcdb Bug 1265408 - Log biquad channel change warning to console; r=padenot
MozReview-Commit-ID: G16wgfKr4I6

--HG--
extra : rebase_source : d4c205b6d30c9d583e2f9f76cdb06b6b32f1500f
extra : source : 5aa770304f2a519fda0989790b2d059d85a1db58
2016-06-03 14:17:41 -04:00
Dan Minor
c2d0856c53 Bug 1265408 - Use blink IIRFilterNode tests; r=padenot
MozReview-Commit-ID: 972FZ6lC7vr

--HG--
rename : dom/media/webaudio/test/blink/iirfilter.html => dom/media/webaudio/test/blink/test_iirFilterNode.html
rename : dom/media/webaudio/test/blink/iirfilter-getFrequencyResponse.html => dom/media/webaudio/test/blink/test_iirFilterNodeGetFrequencyResponse.html
extra : rebase_source : 3a667012669eda8d166692a13fbb2845506a8914
extra : source : 465412cecc515aa2c3d52239d8fd8c02f033b318
2016-05-06 15:07:11 -04:00
Dan Minor
7ab383e609 Bug 1265408 - Import blink IIRFilterNode tests; r=padenot
Imported from git revision 57f70919a0a3da5ba002b896778b580986343e08.

MozReview-Commit-ID: 1HTS2AfgSEN

--HG--
extra : rebase_source : 84cb9a6e93d2960ea48e267d96ab3ee54f3cbb3f
extra : source : d7d5bbd33e0e94f6cb024680b9efe3494aa10f3c
2016-05-03 10:51:24 -04:00
Dan Minor
7c5f125b1c Bug 1265408 - Avoid complex division in getFrequencyResponse; r=padenot
Using the division operator on std::complex values fails on our linux64
AWS test machines, yielding infinities and NaNs for valid inputs. Presumably
this could affect machines in the wild as well. This patch removes the use
of the division operator and replaces it with real operations.

MozReview-Commit-ID: 4s7xUf9ja0F

--HG--
extra : rebase_source : 9c1946c812be78aa25845402866795655bfc9af1
extra : source : 4dd3a54d766d9960319f6356064ccdd9d3feda88
2016-05-12 09:15:18 -04:00
Dan Minor
231c8ebb0a Bug 1265408 - Add test for IIRFilterNode pass through; r=padenot
MozReview-Commit-ID: HbZJT1vEOo8

--HG--
extra : rebase_source : 04dd74427a8cac1b73935b7b64d4c7b6552d2477
extra : source : 24d271e05ae2268c96f1ffefe68a722b8b56765a
2016-05-12 09:23:28 -04:00
Dan Minor
399a5ec86f Bug 1265408 - Implement IIRFilterNode; r=padenot
MozReview-Commit-ID: EZvTIwTDVPE

--HG--
extra : rebase_source : 82af34db0b5879020d32e760eb5a99fefd25f835
extra : source : 4bd3f7f5a431f9124b3a7ca6858980c4447cfdd9
2016-06-03 13:42:03 -04:00
Dan Minor
908021cb71 Bug 1265408 - Add LogToDeveloperConsole to WebAudioUtils; r=padenot
MozReview-Commit-ID: 2Zf59JjQX9u

--HG--
extra : rebase_source : 92f9b7923af18ad394c215774d3c9177f84942c7
extra : source : 1b0ec5cf4d30e4f1d738f98cef1cfa5157c5822e
2016-06-03 14:23:11 -04:00
Dan Minor
b2e65a7924 Bug 1265408 - Avoid subnormals in IIRFilter; r=karlt
MozReview-Commit-ID: F4NUE8834tM

--HG--
extra : rebase_source : 1a5d118f7aed0f4803bc83feda482f940218d65d
extra : source : 784521a9cc94ad399d1405ada007f06d255c6c29
2016-05-30 05:36:11 -04:00
Dan Minor
db283dba06 Bug 1265408 - Add buffersAreZero to IIRFilter; r=karlt
MozReview-Commit-ID: CM5x62GMXcj

--HG--
extra : rebase_source : 065b4a8d362ce4239e8bdf96c258ae147fd4b3c9
extra : source : 9ab327850c5fc9e21b41a29d091ba35ee69e454e
2016-05-31 09:28:06 -04:00
Dan Minor
6f4a6a5c03 Bug 1265408 - Use IIRFilter from blink; r=padenot
MozReview-Commit-ID: 5QUGMFcZ6ZI

--HG--
extra : rebase_source : 40e8fa6a5183d66a023bd14df0eefe8f245942f8
extra : source : 388a95b0520288b8377092a8e21dd1eebdf3a4e0
2016-05-10 10:46:40 -04:00
Dan Minor
c5fd0b4422 Bug 1265408 - Import IIRFilter from blink; r=padenot
Imported from git revision 57f70919a0a3da5ba002b896778b580986343e08.

MozReview-Commit-ID: 8QF0wWEHI8

--HG--
extra : rebase_source : 01e98737b7744a19988673f147fea27a42960f97
extra : source : 2d59146a43fedb8cecf73ab37e728763f7243215
2016-04-23 04:54:48 -04:00
Dan Minor
b3ffeb37b7 Bug 1265408 - Add webidl for IIRFilterNode; r=smaug
MozReview-Commit-ID: FdaXR22KwUf

--HG--
extra : rebase_source : cdebad52ab4770de7f733826fd580ec76828b58d
extra : source : 84fab8755ac9df83a36bce68070b9354f59d2a50
2016-06-07 05:50:16 -04:00
Wes Kocher
44c9e5473a Backed out 13 changesets (bug 1265408) for test_interfaces bustage CLOSED TREE
Backed out changeset 5aa770304f2a (bug 1265408)
Backed out changeset 465412cecc51 (bug 1265408)
Backed out changeset d7d5bbd33e0e (bug 1265408)
Backed out changeset 4dd3a54d766d (bug 1265408)
Backed out changeset 24d271e05ae2 (bug 1265408)
Backed out changeset 56d602e3a9e6 (bug 1265408)
Backed out changeset 4bd3f7f5a431 (bug 1265408)
Backed out changeset 1b0ec5cf4d30 (bug 1265408)
Backed out changeset 784521a9cc94 (bug 1265408)
Backed out changeset 9ab327850c5f (bug 1265408)
Backed out changeset 388a95b05202 (bug 1265408)
Backed out changeset 2d59146a43fe (bug 1265408)
Backed out changeset 84fab8755ac9 (bug 1265408)
2016-06-06 12:09:14 -07:00
Dan Minor
e72edaf704 Bug 1265408 - Log biquad channel change warning to console; r=padenot
MozReview-Commit-ID: G16wgfKr4I6

--HG--
extra : rebase_source : 7c80e41af24a801f80ca9fb0ac389836e455e8c4
2016-06-03 14:17:41 -04:00
Dan Minor
86406e1e13 Bug 1265408 - Use blink IIRFilterNode tests; r=padenot
MozReview-Commit-ID: 972FZ6lC7vr

--HG--
rename : dom/media/webaudio/test/blink/iirfilter.html => dom/media/webaudio/test/blink/test_iirFilterNode.html
rename : dom/media/webaudio/test/blink/iirfilter-getFrequencyResponse.html => dom/media/webaudio/test/blink/test_iirFilterNodeGetFrequencyResponse.html
extra : rebase_source : f72140da18350771def483c73fa44eda3c0bf8bc
2016-05-06 15:07:11 -04:00
Dan Minor
7c022ed83f Bug 1265408 - Import blink IIRFilterNode tests; r=padenot
Imported from git revision 57f70919a0a3da5ba002b896778b580986343e08.

MozReview-Commit-ID: 1HTS2AfgSEN

--HG--
extra : rebase_source : 53db59ffbeab76d19a983efd337394efc54b7737
2016-05-03 10:51:24 -04:00
Dan Minor
2b6abdb28d Bug 1265408 - Avoid complex division in getFrequencyResponse; r=padenot
Using the division operator on std::complex values fails on our linux64
AWS test machines, yielding infinities and NaNs for valid inputs. Presumably
this could affect machines in the wild as well. This patch removes the use
of the division operator and replaces it with real operations.

MozReview-Commit-ID: 4s7xUf9ja0F

--HG--
extra : rebase_source : cdfee7070a50eefbf8e50aee3993cf8993cd32b4
2016-05-12 09:15:18 -04:00
Dan Minor
77a0cbd919 Bug 1265408 - Add test for IIRFilterNode pass through; r=padenot
MozReview-Commit-ID: HbZJT1vEOo8

--HG--
extra : rebase_source : bf9cda954254908e9fa3148e24761815be3efae2
2016-05-12 09:23:28 -04:00
Dan Minor
c846a288b4 Bug 1265408 - Implement IIRFilterNode; r=padenot
MozReview-Commit-ID: EZvTIwTDVPE

--HG--
extra : rebase_source : 2dddd4d387bd4ecb58bf5fa7dbd26d916a114c82
2016-06-03 13:42:03 -04:00
Dan Minor
8c9dd5b3be Bug 1265408 - Add LogToDeveloperConsole to WebAudioUtils; r=padenot
MozReview-Commit-ID: 2Zf59JjQX9u

--HG--
extra : rebase_source : 8b3a228f853c1936d1f67c337874885bde3cc23f
2016-06-03 14:23:11 -04:00
Dan Minor
9242944484 Bug 1265408 - Avoid subnormals in IIRFilter; r=karlt
MozReview-Commit-ID: F4NUE8834tM

--HG--
extra : rebase_source : b2cdbe67760003adb0a4c12ba97e1fe461348af6
2016-05-30 05:36:11 -04:00
Dan Minor
63bac3a6eb Bug 1265408 - Add buffersAreZero to IIRFilter; r=karlt
MozReview-Commit-ID: CM5x62GMXcj

--HG--
extra : rebase_source : 05b1b7a1fac3bffaf6e143c046ccd46d047248d3
2016-05-31 09:28:06 -04:00
Dan Minor
75164114ba Bug 1265408 - Use IIRFilter from blink; r=padenot
MozReview-Commit-ID: 5QUGMFcZ6ZI

--HG--
extra : rebase_source : 93b36c58cc96867b25cff96035b8c7cc2c742117
2016-05-10 10:46:40 -04:00
Dan Minor
7438883f8d Bug 1265408 - Import IIRFilter from blink; r=padenot
Imported from git revision 57f70919a0a3da5ba002b896778b580986343e08.

MozReview-Commit-ID: 8QF0wWEHI8

--HG--
extra : rebase_source : 27aee27da149883fe7c1c4b6067c6610b64033e0
2016-04-23 04:54:48 -04:00
Dan Minor
5b7dd78413 Bug 1265408 - Add webidl for IIRFilterNode; r=smaug
MozReview-Commit-ID: FdaXR22KwUf

--HG--
extra : rebase_source : 28dd38c8e755b9325875ba3a2e951daf7d5c011e
2016-04-26 13:59:11 -04:00
Andreas Pehrson
1d2085e59f Bug 1275596 - Ignore ended tracks when selecting new track in MediaStreamAudioSourceNode and MediaElementSourceNode. r=padenot
This is how it was meant to work when the refactor landed in Bug 1208371.
We have no test coverage of seeking apparently.

MozReview-Commit-ID: IhyGbjctO7E

--HG--
extra : rebase_source : 70f1ab777d8f7d6632d24f7134415ad13f73d166
2016-05-26 15:56:58 +02:00
Randell Jesup
486d30379d Bug 1274083: don't return early from rate changes if we overflow r=jmspeex
MozReview-Commit-ID: DVSp3VpiIJw
2016-05-20 01:53:27 -04:00
Wes Kocher
9f7d2279d9 Backed out changeset e96398029a1c (bug 1181073) for failing the test it added CLOSED TREE 2016-05-19 10:17:55 -07:00
Michael Layzell
6274f21dc8 Bug 1181073 - Relax setTimeout throttling for background tabs using web audio, r=bkelly 2016-05-19 09:34:01 -04:00
Chris Peterson
353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Paul Adenot
4616d008f9 Bug 1130010: Implement the new AudioNode.disconnect methods. r=dminor,ehsan
Initial patch by Thomas Escalon <tesc.bugzilla@gmail.com>.

MozReview-Commit-ID: KDnmKIGWYL
2015-06-05 11:17:14 +02:00
Sebastian Hengst
39bd9f8b8e Backed out changeset ac56ced6aba2 (bug 1130010) for bustage. r=backout 2016-07-18 19:45:12 +02:00
Sebastian Hengst
dc8c385089 Backed out changeset 6acd35b64dc9 (bug 1130010) 2016-07-18 19:44:37 +02:00
Paul Adenot
9e394fe9b6 Bug 1130010 - Add tests for the new {AudioParam,AudioNode}.disconnect() methods. r=dminor
Initial patch by Thomas Escalon <tesc.bugzilla@gmail.com>.

MozReview-Commit-ID: 2cptcTYuzDQ
2016-07-18 18:53:24 +02:00
Paul Adenot
c1df31800a Bug 1130010: Implement the new AudioNode.disconnect methods. r=dminor,ehsan
Initial patch by Thomas Escalon <tesc.bugzilla@gmail.com>.

MozReview-Commit-ID: KDnmKIGWYL
2015-06-05 11:17:14 +02:00
Dan Minor
de01c6c54d Bug 1263910 - Make AudioBufferAddWithScale handle unaligned buffers; r=padenot
ReverbAccumulationBuffer often produces unaligned buffers due to the way
it wraps around results. This modifies AudioBufferAddWithScale on SSE2
platforms to handle unaligned buffers by performing scalar operations
until both the input and output buffers are aligned to 16 bytes. It then
does as many vector operations as possible and switches back to scalar
operations for anything that is left over.

This could also be done within the ReverbAccumulationBuffer code but doing
it directly within the AudioNodeEngine code makes it available to other
callers in the future, at the cost of a few extra branches in the case
where everything was aligned anyway.

MozReview-Commit-ID: Ky0uIe5LMVq

--HG--
extra : rebase_source : 0c9970807262c8a13be5ad866e470d78ff6c1bb9
2016-05-10 06:37:45 -04:00
Jean-Yves Avenard
d31cb0499b Bug 1206637: P2. Replace all cached preferences with MediaPrefs ones. r=cpearce
Additionally, clean up stray and unused Preferences.h header.

MozReview-Commit-ID: IcPrD2inkDE

--HG--
extra : rebase_source : c3c6e37767627db3601090c2855a3dfa98cb4368
2016-05-10 11:02:28 +10:00
Dan Minor
b34705d0d2 Bug 1270055 - Add test for DynamicsCompressor with gain; r=karlt
MozReview-Commit-ID: 7vT7oaheZaS

--HG--
extra : rebase_source : 5885808d29139e468003b3414297494decf9ee1f
2016-05-05 09:20:52 -04:00
Alastor Wu
b5d99318b3 Bug 1235612 - Part 3: Implement the logic of audible state notification for agent owners. r=baku
MozReview-Commit-ID: 6CueLPpuXWm

--HG--
extra : rebase_source : d40603e2ecc006a7b21f8b9adeb3a244e9821a2f
2016-05-03 17:59:32 +08:00
Dan Minor
68f5130961 Bug 1270055 - Unaligned buffer used in DynamicsCompressor; r=padenot
MozReview-Commit-ID: 4xVYjCGblTV

--HG--
extra : rebase_source : 28400783fa926ebc2832529e32688033e3420e3c
2016-05-04 06:49:07 -04:00
Kyle Huey
941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Kyle Huey
7311b10562 Bug 1268313: Part 2 - Replace some NewRunnableMethods with NS_NewNonOwningRunnableMethod. r=froydnj 2016-05-05 01:44:59 -07:00
Alastor Wu
c8fae1998b Bug 1242874 - part4 : wrap the volume/mute/suspend for notifyStartedPlaying. r=baku
MozReview-Commit-ID: 2FMfEVuODmu

--HG--
extra : rebase_source : 96e49e6e8d074a9bd5d9a7e6a60e7ec01cc88402
2016-05-03 09:52:44 +08:00
Alastor Wu
30466d68e1 Bug 1242874 - part3 : implement different suspended methods. r=baku, r=jwwang
MozReview-Commit-ID: HHYX29gbLwk

--HG--
extra : rebase_source : d774e1338c6e0cd2ce8b4329b28ad9650011a7e5
2016-05-03 09:52:38 +08:00
Alastor Wu
40bc1f6803 Bug 1242874 - part1 : create suspened types. r=baku
MozReview-Commit-ID: FUAPZAdPVse

--HG--
extra : rebase_source : c9faf34965d7e2be9b76881c95dfeff62036587f
2016-05-03 09:50:24 +08:00
Dan Minor
1eb1d5f91e Bug 1266112 - Remove unnecessary alignment checks from AudioNodeEngine.cpp; r=padenot
Assuming that Bug 1266405 fixed the underlying cause for the unaligned
buffers we were seeing, the checks in AudioBufferAddWithScale and
AudioBlockCopyWithScale shoudl no longer be necessary.


MozReview-Commit-ID: 4OQ4qQVjEP3

--HG--
extra : rebase_source : fda9b1f7604a2732c9dea4985bfd47ce9293bc0f
2016-04-29 08:35:30 -04:00
Paul Adenot
00e45c5141 Bug 1259831 - Remove the auto-suspend logic for AudioContext. r=karlt
MozReview-Commit-ID: JoSMPVfbgJb
2016-03-29 16:57:19 +02:00
Carsten "Tomcat" Book
dfff02b90d Backed out changeset fd833da413ad (bug 1268313)
--HG--
extra : rebase_source : f857127091900871034f44d89095895abe9932dc
2016-04-29 14:21:25 +02:00
Carsten "Tomcat" Book
ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Carsten "Tomcat" Book
2dc450ceba Backed out changeset a8bae4554679 (bug 1259831)
--HG--
extra : rebase_source : 18ccc0c8c21d4d42afa5e8db22921b5468117b30
2016-04-29 14:21:12 +02:00
Paul Adenot
1011bcc2a0 Bug 1259831 - Remove the auto-suspend logic for AudioContext. r=karlt
MozReview-Commit-ID: JoSMPVfbgJb
2016-03-29 16:57:19 +02:00
Nicholas Nethercote
2511b2c327 Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.

MozReview-Commit-ID: 1VS4Dney4WX

--HG--
extra : rebase_source : b26919c1b0fcb32e5339adeef5be5becae6032cf
2016-04-27 14:16:50 +10:00
Kyle Huey
48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Kyle Huey
72c9966484 Bug 1268313: Part 2 - Replace some NewRunnableMethods with NS_NewNonOwningRunnableMethod. r=froydnj 2016-04-28 14:08:24 -07:00
Carsten "Tomcat" Book
7fcba36865 Backed out changeset 1681062d82dd (bug 1242874) for timeouts in own test browser_mediaPlayback_suspended_multipleAudio.js 2016-04-28 13:59:23 +02:00
Carsten "Tomcat" Book
b4a55fdcfc Backed out changeset d09b20eeb382 (bug 1242874) 2016-04-28 13:59:04 +02:00
Carsten "Tomcat" Book
0a62793b79 Backed out changeset df13b449ffcc (bug 1242874) 2016-04-28 13:59:02 +02:00
Alastor Wu
4e7da2f687 Bug 1242874 - part4 : wrap the volume/mute/suspend for notifyStartedPlaying. r=baku
MozReview-Commit-ID: GRjxz1E0C9r

--HG--
extra : transplant_source : %88%D7%C7q%3C%8A%98%C0%84k%AF%90%F7%5D%83%CC%BEa%B1%F2
2016-04-28 00:23:48 +08:00
Alastor Wu
daaa9802c9 Bug 1242874 - part3 : implement different suspended methods. r=baku, r=jwwang
MozReview-Commit-ID: Co4avRLWGRK

--HG--
extra : transplant_source : b%17%81%60%94_%F1%C2%5D%B1%B3%D5%F3%5C%7D4p%7F%03%EB
2016-04-28 00:23:42 +08:00
Alastor Wu
14fb7102ce Bug 1242874 - part1 : create suspened types. r=baku
MozReview-Commit-ID: 1RJvbzMOCpu

--HG--
extra : transplant_source : %E8%3F%7BLD%F3%B8%98%3E%CA%A5%5C7%B7%9B%D0%BEFrr
2016-04-28 00:21:22 +08:00
Kyle Huey
7579799b01 Bug 1266595: Replace Chromium Task with Runnable. r=froydnj 2016-04-27 17:06:05 -07:00
Dan Minor
4b3726dd99 Bug 1265405 - Add test case for PeriodicWave normalization; r=padenot
MozReview-Commit-ID: B85kaip1xQT

--HG--
extra : rebase_source : 565fe160a510cad0bf1f406404e33121a0783a3c
2016-04-22 09:47:07 -04:00
Dan Minor
c86fe66751 Bug 1265405 - Use a dictionary to specify how PeriodicWave should be normalized (or not); r=padenot
MozReview-Commit-ID: IH7no48COML

--HG--
extra : rebase_source : 649afa948369812a93667929e1b9bf1cba93172a
2016-04-25 11:37:20 -04:00
Dan Minor
11d3cf6d22 Bug 1265405 - Add a dictionary to specify how PeriodicWave should be normalized (or not); r=smaug
MozReview-Commit-ID: CR5kO8MXdZv

--HG--
extra : rebase_source : 10ac8c5f18b18fdc92d8eb2013354bbbf2da0c9e
2016-04-26 06:54:38 -04:00
Dan Minor
317ceb9c8e Bug 1267579 - Add test case; r=padenot
MozReview-Commit-ID: KQQKuw7KSXg

--HG--
extra : rebase_source : a5360f568149c32b279dfdec206773acf5b943f7
2016-04-26 09:24:42 -04:00
Dan Minor
d9f8adcc4b Bug 1267579 - Unexpected result when using OscillatorNode with custom wave shape; r=padenot
This fixes some division by zero errors introduced by Bug 1222405 when the
fundamental frequency is zero.

MozReview-Commit-ID: A7qfJjJOJ3H

--HG--
extra : rebase_source : 02506b547c5f78495c449bba9f476d3f42cf7ed0
2016-04-26 09:41:54 -04:00
Paul Adenot
0d3dbc04dc Bug 996685 - Report an error in the console when a cross-origin media element is used with a Media(ElementAudio|Stream)SourceNode. r=pehrsons
MozReview-Commit-ID: 8VP7Sv8unUq
2016-04-26 17:46:31 +02:00
ctai
4e89100cf8 Bug 1266644 - Rename DOMMediaStream:: CreateXXXStream to DOMMediaStream:: CreateXXXStreamAsInput. r=jesup r=pehrsons
MozReview-Commit-ID: 4X0Q1XuENa4
2016-04-25 11:43:27 +08:00
ctai
8fcb64e480 Bug 1266644 - Rename StreamBuffer to StreamTracks. r=jesup r=pehrsons
Rename StreamBuffer to StreamTracks. We still need a place to keep the track information in every MediaStream, even the StreamBuffer::Track::mSegment is empty.

--HG--
rename : dom/media/StreamBuffer.cpp => StreamTracks.cpp
rename : dom/media/StreamBuffer.h => StreamTracks.h
2016-01-26 10:49:01 +08:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Paul Adenot
62993a3f50 Bug 1265397 - Add a length attribute to OfflineAudioContext. r=smaug
MozReview-Commit-ID: J3TqIDI4saW
2016-04-25 11:45:59 +02:00
Paul Adenot
d6dc2d1ec6 Bug 1267096 - Check the return value of Promise::Create in AudioContext::StartRendering. r=smaug
MozReview-Commit-ID: 6w6XDDPbbiV

--HG--
extra : rebase_source : b4019e46f164af4cbe53e6437dddda4b8c1292a9
2016-04-25 11:16:08 +02:00
Jan Beich
d8d938eb8b Bug 1266772 - Unbreak FreeBSD build after bug 881587. r=dminor
MozReview-Commit-ID: 5oZ1R0vYnRm

--HG--
extra : transplant_source : %BDk%E1x%29%1E%D5%92%40%24%ACVN%CB%F0U%2A%B6_%B2
2016-04-22 15:31:09 +00:00
Dan Minor
48b7390289 Bug 1266405 - AudioBufferSourceNode::CopyFromBuffer should not borrow unaligned buffers; r=padenot
MozReview-Commit-ID: 82DZJ8BFWaq

--HG--
extra : rebase_source : 20d5a43df87cf826971bef149a1f29ee75c1c0d2
2016-04-21 10:01:19 -04:00
Dan Minor
3fde1b5f43 Bug 1265400 - Use unsigned long for AudioBuffer length and numberOfChannels; r=smaug
MozReview-Commit-ID: 47ZDDvj5QrA

--HG--
extra : rebase_source : 2c441c7d04ec84eeec526a9a93607ffcac263617
2016-04-20 12:32:17 -04:00
Dan Minor
eb586d648d Bug 1266047 - Fix crash in mozilla::AudioBufferAddWithScale_SSE r=padenot
This adds alignment checks to fallback to scalar operations if the
received buffers are not properly aligned. Bug 1266112 is the follow on
to either fix the alignment problem or add a vector path for the aligned
portion of the buffers.

MozReview-Commit-ID: 5HCXzipXlqD

--HG--
extra : rebase_source : 0dff8258c4cc0d468c18267680f053ff1a240ad5
2016-04-20 11:54:50 -04:00
JW Wang
e7a6f22684 Bug 1265629 - Remove unused MediaDecoderReader::BreakCycles(). r=kaku. 2016-04-20 14:45:19 +08:00
Paul Adenot
ec07e4a3d1 Bug 1265403 - Support chaining AudioParam automation methods. r=smaug
MozReview-Commit-ID: 7Jh5eWtfU4t
2016-04-19 14:52:27 +02:00
Dan Minor
d54abe3ef7 Bug 881587 - Use SSE2 version of AudioNodeEngine.cpp routines added in bug 815643. r=padenot
MozReview-Commit-ID: 3cfU3oTruAC

--HG--
extra : rebase_source : 527061c1b0ff8b9905f6b91f5d29f61adbdfe2d2
2016-04-14 08:57:21 -04:00
Paul Adenot
ed065c9fa9 Bug 881587 - Add SSE2 version of AudioNodeEngine.cpp routines added in bug 815643. r=tterribe
MozReview-Commit-ID: 4aTdyTQEuuj

--HG--
extra : rebase_source : 30c6be909791d4310ea98eaa02139cb8aca24ed9
2013-06-12 02:56:44 +02:00
Dan Minor
80b9a8662f Bug 877662 - Use SSE2 versions of AudioNodeEngine functions r=padenot
MozReview-Commit-ID: AJ2f5YBobPv

--HG--
extra : rebase_source : 6dcf2eda9ba92ec960ffd8aa538008c49c474dd2
2016-03-18 16:24:02 -04:00
Dan Minor
ff12a068d6 Bug 877662 - Update SSE2 versions of AudioNodeEngine functions r=padenot
This updates the original SSE2 implementations to match the current
AudioNodeEngine API and adds them to the build.

MozReview-Commit-ID: KULBD7KTr3n

--HG--
extra : rebase_source : 05adf8a26cb33a4b9d9c9d200d3ed8b1831f6995
2016-04-11 16:10:45 -04:00
Paul Adenot
1bc7b6b66f Bug 877662 - Add an SSE2 implementation of AudioNodeEngine.cpp functions. r=ehsan
MozReview-Commit-ID: GhxFwFlmqPr

--HG--
extra : rebase_source : 73c3ca69123b8ffafa010d0fe3b7205fe5f6f89b
2013-06-11 02:01:54 +02:00
Dan Minor
8c7cbbbf79 Bug 877662 - Align audio buffer allocations to 16 byte boundaries r=padenot
To be able to use SSE2 routines, we need to audio buffers to be allocated
on 16 byte boundaries.

MozReview-Commit-ID: 2mjxMWqysFd

--HG--
extra : rebase_source : 8bd7d48b767b7bcfa5874061586b9b41c26a18ae
2016-04-13 15:31:50 -04:00
Dan Minor
7bd057f84a Bug 877662 - Add AlignmentUtils.h r=padenot
MozReview-Commit-ID: E5peJVX2qFo

--HG--
extra : rebase_source : 5b54f30f4013dd03731b8332b773b7c06484d901
2016-04-12 10:51:35 -04:00
Andreas Pehrson
ee5913bb8b Bug 1208371 - Move MediaStreamTrack's label to MediaStreamTrackSource. r=jib
MozReview-Commit-ID: Aj7Cht4zxc6

--HG--
extra : rebase_source : c454a9f2b81a6a1eb574c1abee0fab64abbe5b72
2016-01-22 16:27:37 +08:00
Andreas Pehrson
f33e7b4b07 Bug 1208371 - Wait for "loadedmetadata" before setting up nodes in test_mediaElementAudioSourceNodeCrossOrigin.html. r=padenot
MozReview-Commit-ID: HruqsknDHi7

--HG--
extra : rebase_source : bf83b46e1f5f46f777490163a6a6ee34190b38bb
2016-01-05 11:17:16 +08:00
Andreas Pehrson
fc68de1ab0 Bug 1208371 - Modify WebAudio source nodes tests to wait for tracks befoure measuring nr of samples. r=padenot
Otherwise we don't get an accurate nr-of-nonzero-samples measurement as
the sources now lock on to a track (main thread) before attaching a
listener.

MozReview-Commit-ID: Jhsr6kgkdcM

--HG--
extra : rebase_source : d94804a601936f456b6bf1b5abc927e9a0bd0329
2016-01-05 10:16:28 +08:00
Andreas Pehrson
c12c63404d Bug 1208371 - Lock MediaStreamAudioSourceNode onto the first AudioStreamTrack in mInputStream at time of construction. r=mt,padenot
MozReview-Commit-ID: GLE5dVLEdEL

--HG--
extra : rebase_source : 5faf4f9a7d68728545bfcf7436fb0c234502d70d
2016-01-22 11:29:40 +08:00
Andreas Pehrson
a47ce20618 Bug 1208371 - Rename CreateOwnDOMTrack/CreateClonedDOMTrack to CreateDOMTrack/CloneDOMTrack. r=jib
MozReview-Commit-ID: DOGiwcYycJY

--HG--
extra : rebase_source : 197fc7a7c5d36200f987c38f26ab77ec8ea2d290
2016-01-05 10:16:26 +08:00
Andreas Pehrson
58ac7b5fd2 Bug 1208371 - Make remaining DOMMediaStream principal sources use MediaStreamTrack. r=mt
MozReview-Commit-ID: 1hgHp5dlBZJ

--HG--
extra : rebase_source : 30d7d5bccc663ef00a640b4f385278a336191088
2016-02-01 22:46:34 +08:00
Andreas Pehrson
5cc032f3e6 Bug 1208371 - Turn DOMMediaStream::PrincipalChangeObserver into PrincipalChangeObserver<DOMMediaStream>. r=mt
MozReview-Commit-ID: JkBUEGdavZX

--HG--
extra : rebase_source : aca48148a30fc16db6a6435c592480a61174d96b
2016-01-22 12:10:41 +08:00
Andreas Pehrson
d29c47befe Bug 1208371 - Allow MediaInputPorts mapped to a destination TrackID. r=roc
This lets us know the track's TrackID in the destination stream before
the input port has been processed.
For sanity we only allow mapping to a destination TrackID if the
destination stream does not have any TRACK_ANY input ports already
assigned to it as that can cause intermittent TrackID collisions.

MozReview-Commit-ID: ClFyQl0nYFC

--HG--
extra : rebase_source : 25fa0f34cb4fa9293a572bff03fe005c33be0195
2016-01-05 10:16:22 +08:00
Andreas Pehrson
9899305f28 Bug 1208371 - Add a MediaStreamTrackSource interface. r=roc
This lets a MediaStreamTrack communicate with its source/producer on the
main thread. It's for now used for stopping a track at the source and
retrieving some metadata, but it could also be a link between actual
sinks of a track and the source, to for instance let the source optimize
by scaling down the resolution when all sinks want lowres-video.

MozReview-Commit-ID: D4SJLr0aqhJ

--HG--
extra : rebase_source : ea511b5c86ca4836bfa980825f04617fef498261
2016-04-06 14:46:56 +02:00
Paul Adenot
352f3c7654 Bug 1241096 - Add a better memory reporting system for AudioBuffers. r=erahm
MozReview-Commit-ID: GHiauyyD3R2
2016-04-01 13:36:41 +02:00
Carsten "Tomcat" Book
18f9b34175 Backed out changeset 5d5b5862ab90 (bug 1241096) for crashtest crashes 2016-04-01 09:42:07 +02:00
Paul Adenot
2b277c167c Bug 1241096 - Add a better memory reporting system for AudioBuffers. r=erahm
MozReview-Commit-ID: GHiauyyD3R2
2016-04-01 08:27:08 +02:00
Geoff Brown
3c73a0f0ec Bug 1257948 - More Android test manifest cleanup; r=jmaher 2016-03-22 07:22:43 -06:00
Geoff Brown
29977660c0 Bug 1251013 - Update android_version annotations in test manifests - mochitest; r=jmaher 2016-03-17 10:00:48 -06:00
Ehsan Akhgari
d2a9ec7408 Bug 1257343 - Port test_bug1027864.html to mochitest-plain so that it can be turned on in e10s mode; r=mrbkap 2016-03-16 19:03:20 -04:00
Ehsan Akhgari
9588951fb9 Bug 1257341 - Port test_ScriptProcessorCollected1.html to mochitest-plain so that it can be turned on in e10s mode; r=mrbkap 2016-03-16 18:58:55 -04:00
Ehsan Akhgari
ecf86396c9 Bug 1257337 - Port test_AudioParamDevtoolsAPI.html to mochitest-plain so that it can be turned on in e10s mode; r=mrbkap 2016-03-16 18:57:18 -04:00
Ehsan Akhgari
d92ea6155c Bug 1257333 - Port test_AudioNodeDevtoolsAPI.html to mochitest-plain so that it can be turned on in e10s mode; r=mrbkap 2016-03-16 18:50:53 -04:00
Karl Tomlinson
a293753929 Back out changeset 3c6fec908401 (bug 1255618) for timeout on Android 4.3 API15+ opt
--HG--
extra : amend_source : 351bd0c4843add8a21dd3721fbde9fb32e00766b
2016-03-15 20:52:18 +13:00
Karl Tomlinson
32877f50d8 mochitest for bug 1255618 r=Ehsan
MozReview-Commit-ID: 9SImAja2jXH

--HG--
extra : rebase_source : 71f4e8c72c864867b3cf004a12a02ee29ca07b59
2016-03-14 16:58:18 +13:00
Karl Tomlinson
f531d372a2 bug 1255618 remove AudioContext from global window at unlink r=Ehsan
mDestination is cleared during unlink, which means that after that point the
window can't do much with the AudioContext, nor should need to do so.

MozReview-Commit-ID: E45aCpEfJEu

--HG--
extra : rebase_source : cafd502552b7126bcdddc2544c4c28c1b62a701f
2016-03-11 20:54:31 +13:00
Boris Zbarsky
20514713f3 Bug 1255718. Remove the unused JSContext argument of AudioBuffer::Create. r=ehsan 2016-03-11 16:43:31 -05:00
Carsten "Tomcat" Book
e070379821 merge mozilla-inbound to mozilla-central a=merge 2016-03-11 16:50:43 +01:00
Joel Maher
c2f5092ca2 Bug 1242682 - Separate dom/media into its own subsuite. r=gbrown, a=tomcat
MozReview-Commit-ID: ERgFe60aJF8
2016-03-10 11:03:52 -08:00
Wes Kocher
0c4a0e7ccb Backed out changeset 20d8879ac256 (bug 1242682) a=backout CLOSED TREE
MozReview-Commit-ID: AH8yw9fw2kD

--HG--
extra : source : 5a2e0878d6c258b36b0ee8712a2afcde6ad94c78
2016-03-04 11:41:25 -08:00
Joel Maher
4719fa3568 Bug 1242682 - Separate dom/media into its own subsuite. r=armenzg, a=Tomcat
MozReview-Commit-ID: 55QtAPlIltM
2016-02-04 13:35:06 -08:00
Dan Minor
3b0b90c4ba Bug 1158741 - Implement a version of omxSP_FFTInv_CCSToR_F32_Sfs in openmax DL's FFT that is not scaled r=padenot
The new routine actually multiplies by two for consistency with the other FFT
routines in use.

MozReview-Commit-ID: Hk2Dg3fR2cQ

--HG--
extra : rebase_source : 08bdbbd65d372a3d0eb69568313cec33ccea6af3
2016-01-25 06:38:29 -05:00
Joel Maher
8b55ee9fcd backout bug 1242682 for failures due to buildbot config issues
MozReview-Commit-ID: LsAxnbITmAq
2016-03-01 10:23:53 -08:00
Joel Maher
a9ad590555 Bug 1242682 - Separate dom/media into its own subsuite. r=armenzg, a=Tomcat
MozReview-Commit-ID: 55QtAPlIltM
2016-02-04 13:35:06 -08:00
Louis Christie
ccbdff988a Bug 1231793: Part 7 - Fixed various tests. r=jya 2016-02-17 00:28:50 +11:00
Nathan Froyd
778b4efbe3 Bug 1247395 - use UniquePtr for control messages in MediaStreamGraphImpl; r=roc 2016-01-20 16:14:33 -05:00
Paul Adenot
6190ea3fb0 Bug 1241499 - Initialize the HRTF database lazily. r=karlt
--HG--
extra : commitid : CR6URDULVd6
2016-01-21 16:15:57 +01:00
Birunthan Mohanathas
d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey
91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Chris Manchester
d6f59759cd Bug 1243096 - Remove ini manifests containing only support-files and move their contents to TEST_HARNESS_FILES. r=gps
--HG--
extra : commitid : FyLge9QyfDF
2016-01-27 17:46:34 -08:00
Jeff Walden
1e1850242d Bug 1079844 - Change various non-js/ files/tests/etc. to refer to detaching of ArrayBuffers rather than neutering. (DOM references to "neutering" of DOM things remain as neutering.) r=bz
--HG--
rename : dom/media/webaudio/test/audioBufferSourceNodeNeutered_worker.js => dom/media/webaudio/test/audioBufferSourceNodeDetached_worker.js
rename : dom/media/webaudio/test/test_audioBufferSourceNodeNeutered.html => dom/media/webaudio/test/test_audioBufferSourceNodeDetached.html
extra : rebase_source : acc6f8336a3ffb084a0e95865710748edd9354d9
2016-01-25 18:10:22 -08:00
Dan Minor
31ec45b291 Bug 1240054 - Only rebuild BandLimitedTables if more partials are required r=padenot
We currently rebuild the BandLimitedTables whenever we encounter a lower
fundamental frequency but it is only necessary to rebuild the tables if we
can fit more partials below the Nyquist frequency. Rebuilding the tables
unnecessarily can cause performance problems, particularly in the case where
the frequency is continually lowered.

--HG--
extra : rebase_source : e53c773d53f723d5b34270d6214a5812ec1eb7f0
2016-01-18 08:51:29 -05:00
Jean-Yves Avenard
d822675be4 Bug 1240411: P1. Clean up webaudio headers. r=cpearce
Remove redundant virtual keyword and add missing override if any.
2016-01-19 19:47:28 +11:00
Emilio Cobos Álvarez
b5364082de Bug 866513 - Non-empty MediaStreamTrack labels. r=jib 2016-01-16 13:39:00 +01:00