Commit Graph

124 Commits

Author SHA1 Message Date
JW Wang
79d42d9703 Bug 1350202 - use shorter names for logging macros in MediaDecoder.cpp. r=kaku
MozReview-Commit-ID: E2OnbXb82Zb

--HG--
extra : rebase_source : d1de2002a7bb446b10aaeb4e03a56ce3a63f6ae4
2017-03-24 11:17:17 +08:00
Paul Adenot
76e574e1c0 Bug 1340718 - When the cubeb stream errors out while driving a MediaStreamGraph, fall back to a SystemClockDriver. r=jesup
MozReview-Commit-ID: Co1UIuU7bCu

--HG--
extra : rebase_source : 7436e871e6ece2da7e44b3a2d242c012d57bfe97
2017-02-24 16:42:20 +01:00
Paul Adenot
36370e3c12 Bug 1336945 - Modernize MSG/GraphDriver logging. r=jesup
MozReview-Commit-ID: 5Redgg5uaQG
2017-02-06 16:22:36 +01:00
Jean-Yves Avenard
b7844bd5c3 Bug 1319987: P9. More coding style fixes. r=gerald
MozReview-Commit-ID: DhFRqkWQZny

--HG--
extra : rebase_source : 03ed44efc83fe9cab7fc975229ac4e5746aff96b
2017-01-27 13:20:37 +01:00
Paul Adenot
f012888dd8 Bug 1332905 - For mono or stereo in AudioStream.cpp until the rest of the code is multichannel-aware. r=achronop a=tomcat
MozReview-Commit-ID: 5eqBlPnHVk2
2017-01-23 11:36:58 +01:00
Alex Chronopoulos
bad8dea079 Bug 1331869 - Initialize new field of cubeb_stream_params. r=kinetik,padenot
MozReview-Commit-ID: KZ08mckJX44

--HG--
extra : rebase_source : 6789db291ace421114055063efa37481cfc524ef
2017-01-20 16:54:00 +02:00
Ralph Giles
d5608e0a47 Bug 1277037 - Make AudioCallbackDriver::StartStream fallible. r=jesup
Avoid crashing in the case that cubeb stream start fails and report
an error instead.

MozReview-Commit-ID: 75M392POyHo

--HG--
extra : rebase_source : 2c083cf129f12ad1e18d9065152cfee13987b071
2017-01-11 11:51:23 -08:00
Markus Stange
942cdc08a8 Bug 1323100 - Stop double-registering the MediaStreamGraph thread with the profiler. r=froydnj
MozReview-Commit-ID: 7WxNLZpBWL4

--HG--
extra : rebase_source : 6dee759440f94e63a82c43ec295b9a6e9c020d21
2016-12-21 23:06:45 +01:00
Alex Chronopoulos
1bb3f66458 Bug 1221574 - [02] Fix build erros with the new backend. r=jesup
MozReview-Commit-ID: n27saMBWfw
2016-11-18 18:00:48 +02:00
Randell Jesup
4875bcdbf9 Bug 1300818: bustage fix rs=kwierso on a CLOSED TREE 2016-10-14 15:13:30 -04:00
Paul Adenot
0fea3fd083 Bug 1300818 - Cap latency at 512 frames for some mac models. r=jesup
MozReview-Commit-ID: B40Tu7r8GG2
2016-10-14 18:35:35 +02:00
Paul Adenot
cb690a7e56 Bug 1301648 - Add a pref to be able to control the AudioCallbackDriver requested latency. r=kinetik
MozReview-Commit-ID: 19BZUjyXFlq

--HG--
extra : rebase_source : 96df59a9b5c9f8bd7e5f8211a09b854d65833b3b
2016-09-09 15:21:50 +02:00
Matthew Gregan
0ebace12e5 Bug 1302348 - Report cubeb context init failures via telemetry. r=padenot 2016-09-16 12:54:24 +12:00
Gerald Squelart
6e6bb23cf3 Bug 1300446 - Check return value from GetCubebContext - r=kinetik
MozReview-Commit-ID: Y9b5Aq2RZE

--HG--
extra : rebase_source : 11422dc401d95cd91329b33b082b29bd193b16da
2016-08-30 17:20:10 -07:00
Nicholas Nethercote
b71747b2ac Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.

--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Randell Jesup
9f2b9ce819 Bug 1298698: Block race between EnsureNextIteration and WaitForNextIteration r=karlt 2016-08-29 10:41:01 -04:00
Kan-Ru Chen
b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +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
Paul Adenot
0cb3352625 Bug 1289678 - Don't count audio stream creation failures when retrying on Telemetry. r=kinetik
When failing to create an audio stream, we fallback to a SystemClockDriver
marked as being a "fallback driver". When failing again to open an audio stream
after re-trying, we can check whether we came from a fallback driver, and not
report the failure again to telemetry.

MozReview-Commit-ID: FAdQ0pCtC3m
2016-07-27 15:18:17 +02:00
Paul Adenot
5ce5a2cc20 Bug 1283020 - Update cubeb consumers to pass in latency in frames and not in ms. r=achronop
MozReview-Commit-ID: D7HjHNPRIre
2016-07-20 15:02:23 +02:00
Wes Kocher
cdd7fc4a11 Backed out changeset 344300260f4c (bug 1283020) for frequent m(gl) failures CLOSED TREE 2016-07-20 15:08:09 -07:00
Paul Adenot
4e73b0eead Bug 1283020 - Update cubeb consumers to pass in latency in frames and not in ms. r=achronop
MozReview-Commit-ID: D7HjHNPRIre
2016-07-20 15:02:23 +02:00
Paul Adenot
be6cf8e090 Bug 1280630 - Add telemetry probes to know which cubeb back-end is used the most. r=kinetik data-review=bsmedberg
MozReview-Commit-ID: AxJlcxjYh3M
2016-06-23 17:50:52 +02:00
Randell Jesup
1a755503cb Bug 1258079 - hold a ref to the GraphDriver during initialization. r=padenot
--HG--
extra : rebase_source : c50ec6121f0304901583766dbeb872b57ffd1e71
2016-06-07 16:26:20 -04:00
Paul Adenot
d5fef47a98 Bug 1277284 - Bustage fix in opt, on a CLOSED TREE.
MozReview-Commit-ID: LC7mBVas8CB
2016-06-03 15:32:52 +02:00
Paul Adenot
f01e0bea9e Bug 1277284 - Reset the volume when starting a new audio stream for a MediaStreamGraph. r=jesup
This prevents having the volume set to zero in some cases.

MozReview-Commit-ID: 4JSCDcd7jmT

--HG--
extra : rebase_source : bcc4b7229160e7cbe7ee4e7a4c712b497f7cbe16
2016-06-02 15:46:17 +02:00
Paul Adenot
6e48370b67 Bug 1268861 - Insert the input data first and then run the graph iteration. r=jesup
This allows the graph to immediately process the input data instead of waiting
an iteration.

MozReview-Commit-ID: EGPUlPdKB6K
2016-04-29 15:16:46 +02:00
Randell Jesup
62e918c87a Bug 1267600 - Ask the main thread to shut down the SystemClockDriver if needed. r=jesup
MozReview-Commit-ID: 3v74w9UN4o3
2016-04-26 15:33:14 -04:00
Sebastian Hengst
6ae866f41c Backed out changeset 1fa138c4519b (bug 1267600) for bustage. r=bustage on a CLOSED TREE 2016-04-26 21:49:34 +02:00
Randell Jesup
6d4db8c98f Bug 1267600 - Ask the main thread to shut down the SystemClockDriver if needed. r=jesup
MozReview-Commit-ID: 3v74w9UN4o3
2016-04-26 15:33:14 -04: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
8fda7f21b4 Bug 1266438 - Remove workaround on OSX when switching device, not necessary with duplex mode. r=jesup
MozReview-Commit-ID: 7IontuEuiQj
2016-04-22 16:24:19 +02:00
Paul Adenot
b3adcea90b Bug 1266438 - Reset the AEC and other processing when audio devices change. r=jesup
MozReview-Commit-ID: Jrr9E9ZSukv
2016-04-22 16:24:17 +02:00
Randell Jesup
ca7a35732f Bug 1264195: Re-add SetMicrophoneActive() calls into the GraphDriver r=padenot
With bustage fix for warnings as errors
2016-04-13 14:31:35 -04:00
Sebastian Hengst
34207787dd Backed out changeset 53f96832a304 (bug 1264195) for building halting with error "GraphDriver.h:536:8: error: private field 'mMicrophoneActive' is not used". r=backout on a CLOSED TREE 2016-04-13 20:44:52 +02:00
Randell Jesup
68a3156330 Bug 1264195: Re-add SetMicrophoneActive() calls into the GraphDriver r=padenot 2016-04-13 14:31:35 -04:00
Andreas Pehrson
37bfed3d74 Bug 1208371 - Make GraphDriver callback log calls verbose. r=padenot
MozReview-Commit-ID: 33ZZXInHhhx

--HG--
extra : rebase_source : 282bf08a647e13b49c22cfe86a44b10c8bb99a4d
2016-01-05 10:16:31 +08:00
Mats Palmgren
bd8a2afe08 Bug 1261627 - Unbreak --disable-webrtc builds. r=cpearce 2016-04-02 12:04:00 -04:00
Randell Jesup
ce36c0e082 Bug 1258942: Lock around DeviceID access for audio inputs r=padenot
MozReview-Commit-ID: DQ5FBW4H8mX
2016-04-01 00:18:13 -04:00
Randell Jesup
3fd01980f6 Bug 1258144: warnings-as-errors bustage r=cpearce
MozReview-Commit-ID: 6CIkX6F6cl2
2016-03-28 21:00:21 -04:00
Randell Jesup
d990461ce1 Bug 1258144: Flip warning sense typo in original patch for bug r=cpearce
MozReview-Commit-ID: dztvbBSYyI
2016-03-28 20:02:40 -04:00
Randell Jesup
9160c662c3 Bug 1258144: Don't start a thread for SystemClockDriver if already started r=padenot 2016-03-22 11:30:06 +01:00
Randell Jesup
9865e1f013 Bug 1257616: We can release Conduits immediately if we're on MainThread already r=drno 2016-03-17 20:45:09 -04:00
Randell Jesup
ef46e30953 Bug 1256510: When shutting down MediaStreamGraphs, if the graph hasn't started, let it start and shut down r=padenot
MozReview-Commit-ID: 64WjTbaduvu
2016-03-15 11:46:01 -04:00
Randell Jesup
5a9c0ee8db Bug 1255217: Don't require getUserMedia/cubeb device enumeration mapping if --disable-webrtc is set r=padenot
MozReview-Commit-ID: 1XtSXlhWn37
2016-03-15 11:11:30 -04:00
Randell Jesup
a237d6632f Bug 1250934: Only dig out cubeb deviceIDs immediately before use since they can be freed r=padenot
MozReview-Commit-ID: CyIk4WCuJ9s
2016-03-08 12:11:09 -05:00
Randell Jesup
85f3c6a92d Bug 1245216: Fix getUserMedia input in full_duplex mode coming from the wrong place r=padenot
Also cleanup of an leftover overrridden interface, and re-add a line lost in merges

MozReview-Commit-ID: 7sjtbbtq1RG
2016-02-17 13:19:02 -05:00
Randell Jesup
0a6b21aecf Bug 1245216: plumb preferred sample rate from full_duplex cubeb through NotifyInput/Output r=padenot
MozReview-Commit-ID: 4F9LwSIZ5OA
2016-02-17 13:19:01 -05: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