Nicholas Nethercote
d4f9aa5530
Bug 1384835 (part 2, attempt 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj.
...
--HG--
extra : rebase_source : 6c24fbacb03d4adebe5f22b5e7fc60b069913f20
2017-07-31 14:23:50 +10:00
Chun-Min Chang
20ba5e9be3
Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
...
MozReview-Commit-ID: 9Kh2w0MioUQ
--HG--
extra : rebase_source : cf0012bf9892dedb71933a48f595f97a8f648511
2017-07-18 16:09:10 +08:00
Sebastian Hengst
0a44c0dc0a
Backed out changeset cf756c62b0a6 (bug 1197045)
2017-07-24 13:23:48 +02:00
Chun-Min Chang
70ec0769ce
Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
...
MozReview-Commit-ID: 9Kh2w0MioUQ
--HG--
extra : rebase_source : cf0012bf9892dedb71933a48f595f97a8f648511
2017-07-18 16:09:10 +08:00
Ryan VanderMeulen
a064d6dbfc
Merge m-c to inbound. a=merge
2017-07-18 13:00:03 -04:00
Paul Adenot
4029e408c3
Bug 1378067 - Label more runnables in dom/media (GraphDriver.cpp, CubebUtils.cpp, DOMMediaStream.cpp). r=jesup
...
MozReview-Commit-ID: EQzR1AfzvzE
--HG--
extra : rebase_source : 9950d07eb1e8e9b1d07f94c10d7c5cf0008a8141
2017-07-18 11:26:58 +02:00
Sebastian Hengst
cb2227a5c7
Backed out changeset 6dc016256eba (bug 1378067) for bustage at dom/media/webaudio/WebAudioUtils.cpp:107. r=backout on a CLOSED TREE
2017-07-18 11:51:22 +02:00
Paul Adenot
ac12821115
Bug 1378067 - Label more runnables in dom/media (GraphDriver.cpp, CubebUtils.cpp, DOMMediaStream.cpp). r=jesup
...
MozReview-Commit-ID: EQzR1AfzvzE
2017-07-18 11:26:58 +02:00
Paul Adenot
b1551892bd
Bug 1373213 - Repair cubeb logging when using env var. r=jesup
...
This does two things:
- Stop calling the callback when initializing cubeb prefs callback, see the
comment block for the rationale.
- Change the pref name so that the problem does not continue to be triggered
with users that have the old pref name in their profile.
MozReview-Commit-ID: 9Ty7Mt9WZpP
--HG--
extra : rebase_source : 1ed504be98c279f54a1a6c4168709b3ba78103e5
2017-06-23 14:35:45 -07:00
Nicholas Nethercote
c86dc10505
Bug 1380227 - Avoid many UTF16toUTF8 and UTF8toUTF16 conversions in nsStringBundle. r=emk.
...
Most of the names passed to nsIStringBundle::{Get,Format}StringFromUTF8Name
have one of the two following forms:
- a 16-bit C string literal, which is then converted to an 8-bit string in
order for the lookup to occur;
- an 8-bit C string literal converted to a 16-bit string, which is then
converted back to an 8-bit string in order for the lookup to occur.
This patch introduces and uses alternative methods that can take an 8-bit C
string literal, which requires changing some signatures in other methods and
functions. It replaces all C++ uses of the old methods.
The patch also changes the existing {Get,Format}StringFromName() methods so
they take an AUTF8String argument for the name instead of a wstring, because
that's nicer for JS code.
Even though there is a method for C++ code and a different one for JS code,
|binaryname| is used so that the existing method names can be used for the
common case in both languages.
The change reduces the number of NS_ConvertUTF8toUTF16 and
NS_ConvertUTF16toUTF8 conversions while running Speedometer v2 from ~270,000 to
~160,000. (Most of these conversions involved the string
"deprecatedReferrerDirective" in nsCSPParser.cpp.)
--HG--
extra : rebase_source : 3bee57a501035f76a81230d95186f8c3f460ff8e
2017-07-12 15:13:37 +10:00
Bill McCloskey
f115503a0b
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Jan Beich
2ade215022
Bug 1375398 - Unbreak build without Gecko Profiler after bug 1374389. r=jya
...
MozReview-Commit-ID: 7DZESkA9G28
--HG--
extra : rebase_source : 89fd05d4e68f7096a46d95dfbb7c3f857ca390d2
2017-06-22 07:50:52 +00:00
Jean-Yves Avenard
10d2da1b08
Bug 1374596: P7. Fix includes as per coding style. r=padenot
...
MozReview-Commit-ID: 5WfOWcOoxg0
--HG--
extra : rebase_source : 988c09623e83a0d9188d9ff5d705314e2c43e756
2017-06-20 17:56:55 +02:00
Jean-Yves Avenard
7a444846d8
Bug 1374596: P4. Fix CubebUtils headers. r=padenot
...
MozReview-Commit-ID: L8Q8814e3ad
--HG--
extra : rebase_source : 74221077e82379542a837ba26de48209432fbbd8
2017-06-20 17:33:31 +02:00
Boris Zbarsky
ec233151ac
Bug 1348331 part 2. Switch Preferences::RegisterCallback/RegisterCallbackAndCall consumers that want prefix matches to the new RefisterPrefixCallback(AndCall) APIs. r=froydnj,padenot
...
MozReview-Commit-ID: 2ebVZO4fN6i
2017-03-21 14:59:02 -04:00
Matthew Gregan
f95527065e
Bug 1341238 - Don't hang on to pointer from temporary NS_LossyConvertUTF16toASCII. r=padenot
2017-03-16 18:26:33 +13:00
Damien Zammit
ce4722833c
Bug 1341238 - Introduce (hidden) pref to force a particular libcubeb backend. r=kinetik,ehsan
...
This adds 'media.cubeb.backend' to ContentPrefs, which is necessary because
`cubeb_init` is called _very_ early in the lifetime of a content process,
because it needs to be called before enabling seccomp.
2017-03-16 18:26:33 +13:00
Paul Adenot
6a5cf2e776
Bug 1345517 - Remove unrelated debug printfs.
...
MozReview-Commit-ID: JvGrIBDk78b
2017-03-10 17:05:06 +01:00
Paul Adenot
7cb8574d6c
Bug 1345517 - Add new AudioNodes to the Web Audio devtools. r=jsantell
...
MozReview-Commit-ID: KmTShPEXkBe
--HG--
extra : rebase_source : 08c4558bf5bb9b2ed101b08459e6ac0ff0a5de37
2017-03-08 17:16:43 +01:00
Alex Chronopoulos
eeb706b254
Bug 1337805 - Avoid deadlock in AudioStream::DataCallback. r=padenot
...
MozReview-Commit-ID: IPCjepQ4dKt
--HG--
extra : rebase_source : cf45c748521bacdb23f49c27bcda71110e62f324
2017-02-10 16:14:36 +02:00
Chun-Min Chang
9efca17a07
Bug 1321502 - part 2: Use preferred layout for initializing cubeb when audio queue is empty; r=jya
...
MozReview-Commit-ID: BDEb8IxuJRn
--HG--
extra : rebase_source : a3bc1ea315c6a00d479a1b7da3eb14d89f458b2d
2017-02-04 08:22:15 +08:00
Chun-Min Chang
561671475d
Bug 1321502 - part 1: Enable multi-channel support in Gecko on Windows; r=jya
...
MozReview-Commit-ID: KURUk3EffOu
--HG--
extra : rebase_source : a0ce3fb8691f45a33995a3ce1ba895c254a35c8c
2017-01-26 17:35:31 +08:00
Paul Adenot
538bb4f04a
Bug 1332354 - Allow enabling cubeb log by flipping a pref. r=kinetik
...
MozReview-Commit-ID: H0Tpax4ntFn
--HG--
extra : rebase_source : b03f5b80652fb348212b1c45f1e91c405055b553
2017-01-20 13:52:29 +01:00
Alex Chronopoulos
c393dbb975
Bug 1314085 - Change cubeb log level to Error. r=padenot
...
MozReview-Commit-ID: G0gMSf1bZiF
2016-11-07 12:25:16 +02:00
Alex Chronopoulos
63cb3d50d0
Bug 1312684 - Format log message outside the log macro. r=padenot
...
* * *
Bug1312684 - Use VsprintfLiteral instead of vsnprintf. p?padenot
MozReview-Commit-ID: 9r826JcmNch
--HG--
extra : rebase_source : 9dc881a504ff5d2be0bfa25d6d7f3762569e1201
2016-10-25 14:34:19 +03:00
Carsten "Tomcat" Book
0f5c8f1a56
Backed out changeset 4c80cc28343b (bug 1312684) for bustage
2016-10-25 12:19:49 +02:00
Alex Chronopoulos
1be8a9f0fe
Bug 1312684 - Format log message outside the log macro. r=padenot
...
MozReview-Commit-ID: 4w8ohHbXdUS
--HG--
extra : rebase_source : b6d2915e931a35f552874d05f0df95f7ecc2ceb0
2016-10-25 12:39:48 +03:00
Paul Adenot
e95d0f5b59
Bug 1311340 - Wire cubeb logging to MOZ_LOG. rmkinetik
...
MozReview-Commit-ID: 1zhkt29SL5x
--HG--
extra : rebase_source : 0c3eab379e08f8f80293effa1a53abdeea02cbb2
2016-10-19 14:39:50 +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
f0efb94bfd
Bug 1303083
- Make CubebUtils::PreferredSampleRate handle InitPreferredSampleRate failures. r=padenot
2016-09-18 16:32:22 +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
Gerald Squelart
f1e3f0e4e8
Bug 1300446 - Check return value from GetCubebContextUnlocked - r=kinetik
...
MozReview-Commit-ID: LaXsymagjGW
--HG--
extra : rebase_source : e6e69fb11f3e8921de4406ed1561595fa5d75075
2016-08-30 17:08:06 -07:00
Gerald Squelart
e7d6a387d7
Bug 1300446 - Keep explicit cubeb state - r=kinetik
...
Cubeb can be in three states: Uninitialized, initialized (or in
error), or shutdown.
This will ensure that we only initialized cubeb once, and that
we don't attempt to re-initialize it after shutdown.
MozReview-Commit-ID: 8LhRe7bvS4K
--HG--
extra : rebase_source : 3b58d94ad1e578c9316455893deb2d826aefe0dc
2016-08-30 17:03:04 -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
Matthew Gregan
5e5637e77f
Bug 1288980 - Add libcubeb backend to about:support. r=felipc
2016-07-26 10:50:14 +12:00
Chris Peterson
b175c9fdd5
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Paul Adenot
e556746dbc
Bug 1286341 - Initialize sBrandName before layout startup when initializing the cubeb. r=jesup
...
We call `cubeb_init` quite early these days because the sandbox is enabled
a short time after, so we'd call GetCubebContext before InitBrandName, thus
showing the warning.
MozReview-Commit-ID: 4gmN8GKq4qd
--HG--
extra : rebase_source : 0028f51daf166792f05ab1aad26a807540d18fe8
2016-07-19 16:28:56 +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
Paul Adenot
532305e1e2
Bug 845648 - Don't try to get the local on Android.
...
MozReview-Commit-ID: CHKq4B76Xv0
2016-06-09 16:35:30 +02:00
Paul Adenot
49c7837186
Bug 845648 - Use shortBrand for the name of cubeb streams. r=kinetik
...
MozReview-Commit-ID: 1PUY8wHVOxy
2016-06-08 17:29:38 +02:00
Carsten "Tomcat" Book
c024396362
Backed out changeset 2b9212818ced (bug 845648) for test failures in browser_audioCompeting.js
...
--HG--
extra : rebase_source : d2fd2442665157d758dc07e1deb8e9893bf73c10
2016-06-09 13:13:00 +02:00
Paul Adenot
c29cb7b0f6
Bug 845648 - Use shortBrand for the name of cubeb streams. r=kinetik
...
MozReview-Commit-ID: 1PUY8wHVOxy
2016-06-08 17:29:38 +02:00
sajitk
582e1a55fa
Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
2015-11-15 14:49:01 +01:00
Wes Kocher
f3a9eb2a26
Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE
...
--HG--
extra : commitid : BMVKq6cPeho
2015-11-11 09:36:56 -08:00
sajitk
3cbe348cdd
Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
...
--HG--
extra : rebase_source : c73098485fa005d914304fb6e7f8eba3c15e66dc
2015-11-11 06:52:00 +01:00
Alastor Wu
a5596f5a1e
Bug 1142933 - New audio channel type for system usages. r=baku
...
--HG--
extra : histedit_source : e60291f5b488d9e004698a6336456c80200751ab
2015-03-16 12:01:50 +08:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Matthew Gregan
ac2b9444ba
Bug 1103824 - Back out changeset for causing regression reported in bug 1176499.
2015-06-23 17:02:51 -07:00
Matthew Gregan
bf4e15de86
Bug 1103824 - Ensure first initialization of IAudioClient happens on STA thread. r=padenot
...
--HG--
extra : rebase_source : 344380ef08d44983c745bea5cee792140ca7ca66
2015-05-14 18:33:23 +12:00
Eric Rahm
34f99e4b4c
Bug 1163201 - Part 1: Remove instances of #ifdef PR_LOGGING in dom/. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-14 10:13:23 -07:00