Robert O'Callahan
af915b4615
Bug 1189506. Replace MediaStream::mBlocked with simpler MediaStream::mStartBlocking. r=karlt
...
--HG--
extra : commitid : 6oeQQSBwAhx
extra : rebase_source : 3eca2ce813fa457435976f9027753ff73d6e7ac8
2015-09-04 18:44:43 +12:00
Robert O'Callahan
9c2e5faea3
Bug 1189506. Remove unused MediaStreamGraph::GetBufferedTicks. r=karlt
...
--HG--
extra : commitid : LtZfMVKOr50
extra : rebase_source : 4eff93b6d89b135b04b46c987d468e6d6ec9dbd4
2015-09-04 18:44:20 +12:00
Robert O'Callahan
a80a6acc01
Bug 1189506. Remove misleading comment. r=karlt
...
--HG--
extra : commitid : Lvxlg4bzsvP
extra : rebase_source : aa479a345e700bad413a6984d07ae5bf22050e23
2015-09-04 18:07:39 +12:00
Robert O'Callahan
27567d312d
Bug 1189506. Simplify PlayAudio based on the fact that track time units == stream time units. r=karlt
...
--HG--
extra : commitid : BjRspwrOnO1
extra : rebase_source : 2497bf51387c6738aeb5de83be86170d400daf1b
2015-09-04 18:04:09 +12:00
Robert O'Callahan
244a142843
Bug 1189506. Fix multi-track MediaStream audio output. r=karlt
...
--HG--
extra : commitid : 4dgdSqpqKqg
extra : rebase_source : 1aa877cd02cfb224d71480af781393a4199e4232
2015-09-04 17:58:26 +12:00
Robert O'Callahan
d18eba5a82
Bug 1189506. Simplify blocking calculations based on the observation that once a stream starts blocking in a given processing interval, it must stay blocked. r=karlt
...
--HG--
extra : commitid : 2gcihxVXqlY
extra : rebase_source : dfb0bf716b8608a47fef25838c3fccdf132e0f82
2015-09-16 16:17:30 +12:00
Robert O'Callahan
2e597371be
Bug 1189506. Remove mExplicitBlockerCount and related code since it's always zero now. r=karlt
...
--HG--
extra : commitid : 3UdhGMG9QiH
extra : rebase_source : 041f2fa34a458926dbe5e376d7003f9a9734a981
2015-09-04 17:00:25 +12:00
Robert O'Callahan
49907deeb0
Bug 1189506. Remove MediaStream::mBlockInThisPhase. r=karlt
...
--HG--
extra : commitid : HnnHdwAwJZ0
extra : rebase_source : 403dd9e309f56f0aa84467f0652ac5b6a98c242d
2015-09-04 16:57:32 +12:00
Robert O'Callahan
4de38847f5
Bug 1189506. Simplify blocking code now that stream blocking decision are always independent of other streams. r=karlt
...
--HG--
extra : commitid : 7du3gdoRlpL
extra : rebase_source : ea22fe1b46a9a27bbab3fc250f688aa9dae53250
2015-09-16 16:15:55 +12:00
Robert O'Callahan
33caf40bd0
Bug 1189506. Remove MediaInputPort::mFlags. r=karlt
...
--HG--
extra : commitid : L7X1cMHM93I
extra : rebase_source : 699460a9f2c736f09549cdef50b0cb2d052daa21
2015-09-04 16:45:21 +12:00
Robert O'Callahan
53dbc8f50e
Bug 1189506. Remove aFlags parameter from AllocateInputPort. r=karlt
...
--HG--
extra : commitid : GZuYprloPNM
extra : rebase_source : 17ca412dd6232ad5c739918500d959a03895a65c
2015-09-04 16:42:42 +12:00
Robert O'Callahan
86c380603b
Bug 1189506. Convert ChangeExplicitBlockerCount to MediaStream::Suspend/Resume. r=padenot
...
--HG--
extra : commitid : EAfe35GbRPL
extra : rebase_source : f6da37f3a9e8eefbdcf3e6787ec7edcc99e53859
2015-09-11 01:45:36 +12:00
Robert O'Callahan
bd5afc4b2e
Bug 1189506. Make suspending/resuming streams more reusable. r=padenot
...
--HG--
extra : commitid : 9AmFobj0UO9
extra : rebase_source : dd1ff2f6e78c4052641f00dd004f19ba3e0d32fc
2015-09-03 23:54:00 +12:00
Robert O'Callahan
65cc97b0f3
Bug 1189506. Make AudioContext responsible for tracking all nodes which need to be suspended and resumed. r=padenot
...
This simplifies MediaStreamGraph by removing the need for it to be aware
of which AudioContext a stream belongs to.
This also makes it easier to reuse stream suspending for purposes other than
AudioContext suspend/resume.
--HG--
extra : commitid : 9EmNxlrjVFO
extra : rebase_source : fee4b35d09c8f5dec76e41840d81423cde619886
2015-09-16 16:15:21 +12:00
Robert O'Callahan
07c25fad56
Bug 1201393. Make suspended MediaStreams implicitly always block. r=padenot
...
To make this work, we have to iterate over suspended MediaStreams in a few
more places. We don't need START_TIME_DELAYED anymore since blocking takes
care of that. I think it's good to allow suspended MediaStreams to notify
the main thread that they're finished; we might need that later when
we have non-AudioNode streams being suspended.
--HG--
extra : commitid : AZKt73Eg3rQ
extra : rebase_source : a662e9c85453212299f30085c1228ec959355440
2015-09-04 17:01:01 +12:00
Robert O'Callahan
a4974cf43a
Bug 1201393. Create an iterator for MediaStreamGraph to iterate over all its streams. r=karlt
...
--HG--
extra : commitid : AYDeVMfjwxF
extra : rebase_source : 299db7189438a230e3f6c9123793bd3395a8784f
2015-09-08 16:18:15 +12:00
Karl Tomlinson
b02fb63b9a
back out 0b4230b29db5,c8d987aeaece from bug 1197028
2015-09-02 23:44:37 +12:00
Paul Adenot
a5e8e37e15
Bug 901633 - Part 13 - Teach the resampler at the input of the MSG to dynamically change its channel count if needed. r=jesup
...
When the audio comes from a PeerConnection, we don't know how many channels the
audio will have, and it can change anyways.
--HG--
extra : rebase_source : b4d78217db012d2d94ede6d6724209b6046fbb29
2015-09-01 14:25:48 +02:00
Paul Adenot
86793c21b6
Bug 1190676 - Part 3 - Make getting a MediaStreamGraph for a channel more explicit. r=roc
...
Hopefully this wil also prevent getting the wrong graph.
--HG--
extra : rebase_source : 3465c29807798d237c4d289b1a88845684373de5
2015-08-25 10:17:31 +02:00
Karl Tomlinson
df8f7c8b48
bug 1197028 release shared buffers from downstream so that upstream can re-use r=padenot
...
--HG--
extra : rebase_source : fe7817e706633c0849b3bc7738b44911071f8615
2015-08-21 13:26:58 +12:00
Karl Tomlinson
330a9459ea
bug 1197043 move AudioNodeStream creation to stream class r=padenot
...
--HG--
extra : rebase_source : 2e399f5d59b057a0cca6a423481ac86f6fa2c507
2015-08-12 11:26:24 +12:00
Karl Tomlinson
4415ffebb7
bug 1197043 introduce MediaStreamGraph::AddStream() r=padenot
...
--HG--
extra : rebase_source : a6a5412a33709f349ab5a4c6db0801887c9d423c
2015-08-12 11:46:56 +12:00
Karl Tomlinson
69540d4cad
bug 1197043 rename Add/RemoveStream to Add/RemoveStreamGraphThread r=padenot
...
--HG--
extra : rebase_source : ea3528d528a557f152347bdd8c05c1e84a3da76e
2015-08-12 11:29:35 +12:00
Karl Tomlinson
cd9d54d222
bug 1197043 remove unnecessary aSampleRate parameter for AudioNodeStream creation r=padenot
...
--HG--
extra : rebase_source : 63ba0bf5008a9acd0a268051cbcde43ba5bfad0a
2015-08-12 11:04:13 +12:00
Karl Tomlinson
7894dd5b6a
bug 1198100 remove mNotificationMainThreadRunnable r=baku
...
If AddMainThreadListener() were called multiple times after
mFinishedNotificationSent is set then we'd get some extra NotifyRunnables but
NotifyMainThreadListeners() clears mMainThreadListeners anyway so we still get
only one notification per listener.
mNotificationMainThreadRunnable is an unnecessary optimization, so better not
to add storage to every MediaStream.
--HG--
extra : rebase_source : 7f0441d95134f1456058f668db30fb40bd9475c1
2015-08-24 11:54:24 +12:00
Karl Tomlinson
563a8d7712
bug 1196632 pass ownership of runnables to NS_DispatchToMainThread r=jesup
...
The already_AddRefed<nsIRunnable>&& overload saves some ref-counting and
provides an assertion if called too late in shutdown.
--HG--
extra : rebase_source : 73f7953143b9612ac50f2a186e3077890fc9fbc8
2015-08-20 09:52:56 +12:00
Karl Tomlinson
c5e3e52551
bug 962719 remove unnecessary OneIteration() parameters aFrom/aTo r=padenot
...
--HG--
extra : rebase_source : 7ad313275ef00a0306c8b3b4775f0088f07c9031
2015-08-04 19:42:10 +12:00
Karl Tomlinson
c2379131a8
bug 962719 remove notified blocked warning of finished stream r=padenot
...
Finished can be determined immediately after mFinished is set, but blocked is
not determined until RecomputeBlocking() has run.
--HG--
extra : rebase_source : e1d919bfbd411b928c25d1f0d428842e17f6fbf8
2015-07-31 22:49:55 +12:00
Karl Tomlinson
fb9954a77c
bug 962719 update stream state to processed time after processing r=padenot
...
Notifications are now up to date with processing, and
MediaStream::GetCurrentTime() now returns "the main-thread's view of how much
data has been processed by this stream", as documented.
--HG--
extra : rebase_source : 90eb894f7b5e7cf56c3635e68716fd2514494f7e
2015-07-29 19:32:10 +12:00
Karl Tomlinson
3ff62a58db
bug 962719 provide video frames to the container as soon as available r=roc
...
This does not affect the target time of the video frames, but may mean that more
frames are displayed.
--HG--
extra : rebase_source : f804f2f58ce5ce2668e047f83adf614d9043f3a2
2015-08-14 14:16:57 +12:00
Karl Tomlinson
257b2b6cc9
bug 1194558 correct time conversion for video frame timestamps r=roc
...
MediaTimeToSeconds() works fine for negative intervals
--HG--
extra : rebase_source : 8698761e28a54e6bd172a032c62e03b96ac66bfa
2015-08-13 17:07:49 +12:00
Karl Tomlinson
33732bace9
bug 962719 introduce mProcessedTime r=padenot
...
--HG--
extra : rebase_source : 4521e5c46d99ea6e97aed4d796211ce42820299e
2015-07-31 21:28:29 +12:00
Karl Tomlinson
3976b00d63
bug 962719 ensure state computed time does not retreat r=padenot
...
--HG--
extra : rebase_source : 7acc6c71ef585813a3d80ee954fe208d7c1ef469
2015-08-04 19:54:54 +12:00
Karl Tomlinson
d894983b78
bug 962719 remove unnecessary OneIteration() parameter aStateFrom r=padenot
...
--HG--
extra : rebase_source : 22d67be26f4cface092cf13577035473b18b2b93
2015-07-31 17:39:35 +12:00
Karl Tomlinson
78739ed9f6
bug 962719 move mStateComputedTime to MediaStreamGraphImpl r=padenot
...
--HG--
extra : rebase_source : 3c4727a6397cc77800aa2676b17c3d85702cd64f
2015-08-13 16:23:17 +12:00
Birunthan Mohanathas
2b4a52cf2e
Bug 1185763 - Part 3: Rename nsTArray::MoveElementsFrom to AppendElements. r=froydnj
2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
edbcd5e014
Bug 1185763 - Part 1: Always use mozilla::Move with nsTArray::MoveElementsFrom. r=froydnj
2015-08-11 08:29:46 -07:00
Karl Tomlinson
4876f80e75
bug 1190291 don't process blocks beyond aTicksToProcess in an offline graph r=padenot
...
--HG--
extra : rebase_source : 1f3d734e867f72125af6c3b87ac2217fc4bfee2c
2015-07-31 23:43:55 +12:00
Karl Tomlinson
452d683354
bug 1190285 remove unused graph update indices r=roc
...
--HG--
extra : rebase_source : 8699f779b3e2e370815d563c248ac1c2d8bcba09
2015-07-31 21:36:05 +12:00
Karl Tomlinson
ab1d3a75d1
bug 1190285 remove unused MediaStreamGraphImpl::GetAudioPosition() r=roc
...
GetAudioPosition() has been unused since revision 6eb9af883b3b.
--HG--
extra : rebase_source : 870f135c10d26efe6560ba3cf8acb145d4466d7b
2015-07-29 19:29:20 +12:00
Karl Tomlinson
9005394c64
bug 1190285 unvirtualize MediaStream::AdvanceTimeVaryingValuesToCurrentTime() r=roc
...
--HG--
extra : rebase_source : 6a1fad0a4db718ede4256b91689250ebbfa97cfa
2015-08-03 12:28:19 +12:00
Karl Tomlinson
fdab75f3a4
bug 1190285 remove unused HaveEnoughBuffered r=padenot
...
--HG--
extra : rebase_source : 87bfcfb201f57e441adaefccf379c04cad0a2736
2015-07-31 18:54:05 +12:00
Karl Tomlinson
20bf85f5cd
bug 1190285 remove unused DispatchWhenNotEnoughBuffered r=padenot
...
--HG--
extra : rebase_source : 68f91e0b11ecd0c70d6848c7a505b0208c885d0b
2015-07-31 18:46:04 +12:00
Nicholas Nethercote
87b80f8c66
Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
...
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.
And do likewise for nsTObserverArray.
--HG--
extra : rebase_source : 6a8c8d8ffb53ad51b5773afea77126cdd767f149
2015-07-28 23:24:24 -07:00
Paul Adenot
d95134e72e
Bug 1156472 - Part 4 - Add a new MediaStreamGraph API to connect a MediaStream to a capture stream. r=jesup,roc
2015-07-24 14:28:16 +02:00
Wes Kocher
83b4188234
Backed out 14 changesets (bug 1156472) for test_getUserMedia_audioCapture.html failures on b2g emulator
...
Backed out changeset deec8eb18346 (bug 1156472)
Backed out changeset 0f5bec4c05ba (bug 1156472)
Backed out changeset 2dd83ac00bf9 (bug 1156472)
Backed out changeset abd4e47887f7 (bug 1156472)
Backed out changeset 4824d9874663 (bug 1156472)
Backed out changeset 12805598e6fa (bug 1156472)
Backed out changeset e2f0062a1f67 (bug 1156472)
Backed out changeset 99ef8e436a7f (bug 1156472)
Backed out changeset 65bbfc1546af (bug 1156472)
Backed out changeset 2ab4f16eaf0a (bug 1156472)
Backed out changeset 7f565685e20a (bug 1156472)
Backed out changeset 28c03c98cb2b (bug 1156472)
Backed out changeset d477cfba6e1d (bug 1156472)
Backed out changeset 9819fa56caa1 (bug 1156472)
2015-07-24 13:15:57 -07:00
Paul Adenot
6722383386
Bug 1156472 - Part 4 - Add a new MediaStreamGraph API to connect a MediaStream to a capture stream. r=jesup,roc
2015-07-24 14:28:16 +02:00
Carsten "Tomcat" Book
2b73aa4f63
Backed out 14 changesets (bug 1156472) for bustage on a CLOSED TREE
...
Backed out changeset 2ddbf85a42c0 (bug 1156472)
Backed out changeset 306d02e17081 (bug 1156472)
Backed out changeset 03598139f39a (bug 1156472)
Backed out changeset 4b1e6069b598 (bug 1156472)
Backed out changeset 6c588a5eaaec (bug 1156472)
Backed out changeset 8c98d7beaea7 (bug 1156472)
Backed out changeset fbf59fbb5875 (bug 1156472)
Backed out changeset 66479dd9eed9 (bug 1156472)
Backed out changeset c8502deeed33 (bug 1156472)
Backed out changeset 1a60ff1149a1 (bug 1156472)
Backed out changeset af1638279785 (bug 1156472)
Backed out changeset 8210276a98ca (bug 1156472)
Backed out changeset 13730e7c5997 (bug 1156472)
Backed out changeset 05acb71cf981 (bug 1156472)
2015-07-24 17:08:37 +02:00
Paul Adenot
4bc48d0134
Bug 1156472 - Part 4 - Add a new MediaStreamGraph API to connect a MediaStream to a capture stream. r=jesup,roc
2015-07-24 14:28:16 +02:00
Paul Adenot
0788bfab9c
Bug 1185192 - Make promise resolving sequentially consistent when switching graph driver and closing a graph during the same iteration. r=roc
2015-07-24 15:09:21 +02:00