Commit Graph
61 Commits
Author SHA1 Message Date
Philippe Normand de3b9ec3db Bug 1399833 - set default values for variables controlled by Preferences. r=padenot
This is needed for Servo's gecko-media where there is no support for
Mozilla Preferences.

MozReview-Commit-ID: HbDT42SRrE3
2017-09-14 13:29:30 +01:00
Jean-Yves Avenard 278692ecb6 Bug 1396515: Fix incorrect && and || operator placements. r=sylvestre
Includes some side 80 columns fix.

MozReview-Commit-ID: IXRoQfM0Hjc
2017-09-04 11:27:43 +02:00
Jed Davis 88cab86339 Bug 1394052 - Fix reading media.cubeb.sandbox pref. r=kamidphish
Previously this would always treat the pref as false, due to a slight
mistake in how Preferences::GetBool is called, and it could try to read
prefs off the main thread in some cases.

MozReview-Commit-ID: CcnVevHvqye
2017-08-25 19:08:32 -06:00
Dan Glastonbury 2d7a94c5f2 Bug 1391523 - P6: Integrate audioipc into CubebUtils. r=kamidphish
Enable client/server using: media.cubeb.sandbox = true

This pref is only read at start up, so requires restarting firefox for
a change in value to take effect.

MozReview-Commit-ID: 36L4vR5QEDJ
2017-07-27 18:12:07 +10:00
Carsten "Tomcat" Book 7b2c875eee Merge mozilla-central to autoland 2017-08-09 12:31:56 +02:00
Chris Pearce 205187c1ab Bug 1388288 - Make CubebUtils build in non-Unified builds. r=padenot
MozReview-Commit-ID: DTpwXrnLFJZ
2017-08-08 10:57:08 +08:00
Eric Rahm 0c7237960f Bug 1386825 - Part 1: Remove MOZ_B2G from dom. r=bkelly
MozReview-Commit-ID: 1zzP2r01B7U
2017-08-08 14:41:05 -07:00
Nicholas Nethercote 723f585d9c Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.

The patch also removes a couple of unused declarations from
nsIStringBundle.idl.

Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.
2017-08-04 14:40:52 +10:00
Chun-Min Chang d3fba14d89 Bug 1384944 - Replace NS_ConvertASCIItoUTF16 by NS_ConvertUTF8toUTF16; r=padenot 2017-07-28 15:41:20 +08:00
Nicholas Nethercote a222153d9c Bug 1384835 (part 2, attempt 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj. 2017-07-31 14:23:50 +10:00
Chun-Min Chang 8d815f5575 Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
MozReview-Commit-ID: 9Kh2w0MioUQ
2017-07-18 16:09:10 +08:00
Sebastian Hengst fc6a665268 Backed out changeset cf756c62b0a6 (bug 1197045) 2017-07-24 13:23:48 +02:00
Chun-Min Chang 47635e643a Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
MozReview-Commit-ID: 9Kh2w0MioUQ
2017-07-18 16:09:10 +08:00
Ryan VanderMeulen ab507180dd Merge m-c to inbound. a=merge 2017-07-18 13:00:03 -04:00
Paul Adenot 3e850de877 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
Sebastian Hengst 577b32c852 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 770a73708c 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 fb14098e93 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
2017-06-23 14:35:45 -07:00
Nicholas Nethercote 8b5bdf0867 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.)
2017-07-12 15:13:37 +10:00
Bill McCloskey ce42826bdf 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 debd3056a3 Bug 1375398 - Unbreak build without Gecko Profiler after bug 1374389. r=jya
MozReview-Commit-ID: 7DZESkA9G28
2017-06-22 07:50:52 +00:00
Jean-Yves Avenard 88a286dcec Bug 1374596: P7. Fix includes as per coding style. r=padenot
MozReview-Commit-ID: 5WfOWcOoxg0
2017-06-20 17:56:55 +02:00
Jean-Yves Avenard bd3ae6421d Bug 1374596: P4. Fix CubebUtils headers. r=padenot
MozReview-Commit-ID: L8Q8814e3ad
2017-06-20 17:33:31 +02:00
Boris Zbarsky 96a1af8bdd 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 7ca6e846c3 Bug 1341238 - Don't hang on to pointer from temporary NS_LossyConvertUTF16toASCII. r=padenot 2017-03-16 18:26:33 +13:00
Damien Zammit 9ccbbab054 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 5280be2fb2 Bug 1345517 - Remove unrelated debug printfs.
MozReview-Commit-ID: JvGrIBDk78b
2017-03-10 17:05:06 +01:00
Paul Adenot dc5cd39131 Bug 1345517 - Add new AudioNodes to the Web Audio devtools. r=jsantell
MozReview-Commit-ID: KmTShPEXkBe
2017-03-08 17:16:43 +01:00
Alex Chronopoulos 76efaf93db Bug 1337805 - Avoid deadlock in AudioStream::DataCallback. r=padenot
MozReview-Commit-ID: IPCjepQ4dKt
2017-02-10 16:14:36 +02:00
Chun-Min Chang 0133e666e1 Bug 1321502 - part 2: Use preferred layout for initializing cubeb when audio queue is empty; r=jya
MozReview-Commit-ID: BDEb8IxuJRn
2017-02-04 08:22:15 +08:00
Chun-Min Chang 452f0cc1b3 Bug 1321502 - part 1: Enable multi-channel support in Gecko on Windows; r=jya
MozReview-Commit-ID: KURUk3EffOu
2017-01-26 17:35:31 +08:00
Paul Adenot 3bccf9457f Bug 1332354 - Allow enabling cubeb log by flipping a pref. r=kinetik
MozReview-Commit-ID: H0Tpax4ntFn
2017-01-20 13:52:29 +01:00
Alex Chronopoulos 348799c3f3 Bug 1314085 - Change cubeb log level to Error. r=padenot
MozReview-Commit-ID: G0gMSf1bZiF
2016-11-07 12:25:16 +02:00
Alex Chronopoulos 14b160ce8b Bug 1312684 - Format log message outside the log macro. r=padenot
* * *
Bug1312684 - Use VsprintfLiteral instead of vsnprintf. p?padenot

MozReview-Commit-ID: 9r826JcmNch
2016-10-25 14:34:19 +03:00
Carsten "Tomcat" Book 0373c97b12 Backed out changeset 4c80cc28343b (bug 1312684) for bustage 2016-10-25 12:19:49 +02:00
Alex Chronopoulos a526529070 Bug 1312684 - Format log message outside the log macro. r=padenot
MozReview-Commit-ID: 4w8ohHbXdUS
2016-10-25 12:39:48 +03:00
Paul Adenot 892fa711fe Bug 1311340 - Wire cubeb logging to MOZ_LOG. rmkinetik
MozReview-Commit-ID: 1zhkt29SL5x
2016-10-19 14:39:50 +02:00
Paul Adenot 11caba2ded Bug 1301648 - Add a pref to be able to control the AudioCallbackDriver requested latency. r=kinetik
MozReview-Commit-ID: 19BZUjyXFlq
2016-09-09 15:21:50 +02:00
Matthew Gregan 1d16ad0f94 Bug 1303083 - Make CubebUtils::PreferredSampleRate handle InitPreferredSampleRate failures. r=padenot 2016-09-18 16:32:22 +12:00
Gerald Squelart 08c41f8af8 Bug 1300446 - Check return value from GetCubebContext - r=kinetik
MozReview-Commit-ID: Y9b5Aq2RZE
2016-08-30 17:20:10 -07:00
Gerald Squelart 9bca39ad75 Bug 1300446 - Check return value from GetCubebContextUnlocked - r=kinetik
MozReview-Commit-ID: LaXsymagjGW
2016-08-30 17:08:06 -07:00
Gerald Squelart 8397be5996 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
2016-08-30 17:03:04 -07:00
Nicholas Nethercote 887efe04d5 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.
2016-09-01 15:01:16 +10:00
Matthew Gregan f47ad8a984 Bug 1288980 - Add libcubeb backend to about:support. r=felipc 2016-07-26 10:50:14 +12:00
Chris Peterson 6c0f810682 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Paul Adenot 090d250d40 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
2016-07-19 16:28:56 +02:00
Paul Adenot c5247eef90 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 05fbc9dc2a 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 cc4aafdbdd 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 a1872d71d1 Backed out changeset 2b9212818ced (bug 845648) for test failures in browser_audioCompeting.js 2016-06-09 13:13:00 +02:00