Ehsan Akhgari
e5e885ae31
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Jean-Yves Avenard
48517afae6
Bug 1512298 - Make IPDL MozPromise exclusive. r=gerald,froydnj
...
MozPromise most common use is to have an single or exclusive listener. By making the MozPromise generated by IPDL exclusive we can also use move semantics.
While at it, we also use move semantics for the ResponseRejectReason and via the callback's reject method so that the lambda used with the MozPromise::Then can be identical to the one used by the IPDL callback.
As it currently is, it provides no advantage over a copy as it's just an enum; however, this will facilitate future changes where it may not be.
Differential Revision: https://phabricator.services.mozilla.com/D13906
--HG--
extra : moz-landing-system : lando
2018-12-11 19:22:26 +00:00
Sylvestre Ledru
804b8b8883
Bug 1204606 - Reformat of dom/media r=jya
...
# skip-blame
Differential Revision: https://phabricator.services.mozilla.com/D12251
--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
Alex Chronopoulos
aaea0ba012
Bug 1482150 - Make CubebDeviceEnumerator singleton. r=padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D7604
--HG--
extra : moz-landing-system : lando
2018-11-08 12:33:26 +00:00
Cosmin Sabou
ca3d74c85c
Backed out 4 changesets (bug 1482150) for causing windows build bustages on dom/media/CubebUtils.cpp. CLOSED TREE
...
Backed out changeset 662bbd0961e5 (bug 1482150)
Backed out changeset 20a4fa9f6214 (bug 1482150)
Backed out changeset 18925888f5d7 (bug 1482150)
Backed out changeset ade887b7ba31 (bug 1482150)
2018-11-07 20:45:51 +02:00
Alex Chronopoulos
e0c6e82044
Bug 1482150 - Make CubebDeviceEnumerator singleton. r=padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D7604
--HG--
extra : moz-landing-system : lando
2018-11-07 18:26:35 +00:00
Andreas Pehrson
16f6336ae3
Bug 1502313 - Remove concurrent audio input device limit. r=padenot
...
The limit only applied within a child process.
However, within a child process we already share cubeb stream when requesting
the same device multiple times, and disallow capturing from more than one device
at a time.
This limit no longer has any effect.
Differential Revision: https://phabricator.services.mozilla.com/D10339
--HG--
extra : moz-landing-system : lando
2018-10-31 14:22:23 +00:00
Matthew Gregan
7a42250fda
Bug 1501148
- Replace int (fd) assumptions with portable PlatformHandleType. r=chunmin
...
--HG--
extra : rebase_source : 2c88a9c9ed31a6880661f2a76a43f9d02916eaf0
2018-10-23 16:27:58 +13:00
Paul Adenot
cc3d47676e
Bug 1481152
- Restrict to a single input stream per process on Linux, when using PulseAudio and audio remoting is enabled. r=pehrsons
...
Differential Revision: https://phabricator.services.mozilla.com/D5543
--HG--
extra : moz-landing-system : lando
2018-09-25 10:04:44 +00:00
Brian Hackett
ecc7252452
Bug 1486565 - Don't initialize cubeb when recording/replaying, r=kinetik.
...
--HG--
extra : rebase_source : 7b6302026c1f64fa5e92f26bd6162d55888fcfe9
2018-08-31 05:24:38 -10:00
Paul Adenot
a5f0fee215
Bug 1480036 - Allow forcing a specific audio output device from a test. r=pehrsons
...
Differential Revision: https://phabricator.services.mozilla.com/D3507
--HG--
extra : rebase_source : 2f20dcd24d148ea0cc9f7b73ff0dd81f25574467
extra : histedit_source : aa2205caf3ad5fe9e5fceaf78e6f7a7e3488155b
2018-08-01 14:16:30 +02:00
Paul Adenot
7ca1aba8c1
Bug 1404977 - Part 14 - Add a way to set the global cubeb* singleton at runtime, from a test. r=pehrsons
...
This is for testing purposes only. Defining ENABLE_SET_CUBEB_BACKEND before
including CubebUtils.h will expose the function. This is not to be set outside
of test files.
MozReview-Commit-ID: D0V8oLj9xo6
--HG--
extra : rebase_source : e80d4c01ff3b28c300de1e6819477ea732c2f157
2018-06-22 11:45:31 +02:00
Paul Adenot
2062de82ff
Bug 1404977 - Part 1 - Add missing lock to the PREF_CUBEB_BACKEND branch of the pref callback in CubebUtils.cpp. r=pehrsons
...
MozReview-Commit-ID: CBAmQKDq36z
--HG--
extra : rebase_source : 171106da4e662c3514b80b7d83bc0637afc2caab
2018-04-17 16:45:33 +02:00
Kris Maglione
08c58039d9
Bug 1476405: Part 6 - Register AudioIPC threads with the profiler. r=kinetik
...
Presumably the Rust portion of this will have to land externally first and
then be imported, but I have no idea how or where to submit it.
MozReview-Commit-ID: 2gzQbRKxaZ9
--HG--
extra : rebase_source : 582e41200e69ff3722585c7664ddd122eb0de2fe
extra : intermediate-source : e0a021b27d2c66d46ba973d66d1360678411da26
extra : source : 6d18a8bd5ee351da1a0cdfaa63f49706a2f95ba3
2018-07-18 23:29:16 -07:00
Cosmin Sabou
778ca4f84f
Backed out 8 changesets (bug 1476405) for causing frequent failures in bug 1479022. a=backout
...
Backed out changeset ad1674e9152d (bug 1476405)
Backed out changeset e0a021b27d2c (bug 1476405)
Backed out changeset 771288dbf852 (bug 1476405)
Backed out changeset aeebad4f2dc3 (bug 1476405)
Backed out changeset 4831cbfd03de (bug 1476405)
Backed out changeset 0b0c243a1827 (bug 1476405)
Backed out changeset 236b366fdf37 (bug 1476405)
Backed out changeset c767b1b618fb (bug 1476405)
2018-07-28 01:25:25 +03:00
Kris Maglione
a7ff7da720
Bug 1476405: Part 6 - Register AudioIPC threads with the profiler. r=kinetik
...
Presumably the Rust portion of this will have to land externally first and
then be imported, but I have no idea how or where to submit it.
MozReview-Commit-ID: 2gzQbRKxaZ9
--HG--
extra : source : 6d18a8bd5ee351da1a0cdfaa63f49706a2f95ba3
extra : histedit_source : aa7995595e2699d53f1dc60410b90cfd0d4a5c4e
2018-07-18 23:29:16 -07:00
Coroiu Cristina
6d037d0cba
Backed out 9 changesets (bug 1476405) for causing leaks
...
Backed out changeset 4113d6fb3c1c (bug 1476405)
Backed out changeset cb7f7cc32687 (bug 1476405)
Backed out changeset 6d18a8bd5ee3 (bug 1476405)
Backed out changeset b2a99f50e642 (bug 1476405)
Backed out changeset b5b9d295545d (bug 1476405)
Backed out changeset f092a32a3639 (bug 1476405)
Backed out changeset 6c154f4d9dd9 (bug 1476405)
Backed out changeset d0ebb3aa8e0f (bug 1476405)
Backed out changeset 06b8093ddc6a (bug 1476405)
2018-07-27 08:56:36 +03:00
Kris Maglione
89c5723e0a
Bug 1476405: Part 6 - Register AudioIPC threads with the profiler. r=kinetik
...
Presumably the Rust portion of this will have to land externally first and
then be imported, but I have no idea how or where to submit it.
MozReview-Commit-ID: 2gzQbRKxaZ9
--HG--
extra : rebase_source : 05924114b7ff1c48ce0c4584469b3b2ef0bc26cb
2018-07-18 23:29:16 -07:00
Brian Hackett
8c8d7af19e
Bug 1465294 Part 6 - Don't initialize audio IPC connection in middleman process, r=kinetik.
...
--HG--
extra : rebase_source : 8a51e8a0785c3724272f826b5023257618d391e9
2018-07-23 14:52:01 +00:00
Paul Adenot
2f416390fe
Bug 1152401 - Augment AudioDeviceInfo with a cubeb device id. r=padenot
...
MozReview-Commit-ID: 7QOcM5ITrxv
--HG--
extra : rebase_source : 41071cfbccfc22b0c8a3b2d6a5405d4fbf23c16d
2018-07-18 10:38:34 +02:00
Margareta Eliza Balazs
0cf58ddcab
Backed out 9 changesets (bug 1152401) for android gv-junit failures org.mozilla.geckoview.test.PermissionDelegateTest.media on a CLOSED TREE
...
Backed out changeset 987f2e0b2cb1 (bug 1152401)
Backed out changeset e45630a7c7b1 (bug 1152401)
Backed out changeset 95661c6cd914 (bug 1152401)
Backed out changeset d68ab111809f (bug 1152401)
Backed out changeset 10b039210911 (bug 1152401)
Backed out changeset aebabaa96ad3 (bug 1152401)
Backed out changeset 93457990e40f (bug 1152401)
Backed out changeset 1630f67ac197 (bug 1152401)
Backed out changeset aef64bf5b024 (bug 1152401)
2018-07-19 13:35:58 +03:00
Paul Adenot
5dae77130d
Bug 1152401 - Augment AudioDeviceInfo with a cubeb device id. r=padenot
...
MozReview-Commit-ID: 7QOcM5ITrxv
--HG--
extra : rebase_source : 41071cfbccfc22b0c8a3b2d6a5405d4fbf23c16d
2018-07-18 10:38:34 +02:00
Kris Maglione
1751fb7124
Bug 1473634: Part 2 - Update some callers to use RegisterCallbacks where appropriate. r=njn
...
MozReview-Commit-ID: IqUmuOeSbNm
--HG--
extra : rebase_source : 0c742f6ca29456928f2027dcb70ee6dbb130d1f9
2018-07-04 19:06:57 -07:00
Matthew Gregan
29d47f27a7
Bug 1465299 - Update AudioIPC pref defaults in CubebUtils.cpp to match actual defaults in all.js. r=padenot
...
MozReview-Commit-ID: 16fC71RT0AB
--HG--
extra : rebase_source : f85f04494d32afa24baeb7de89247b5360aea7bc
2018-05-30 14:02:13 +12:00
Jim Chen
c68f5f3de7
Bug 1458020 - 5. Return default sample rate / frames per buffer; r=esawin
...
We apparently fail to get these properties when running in an emulator,
so we should just return default values.
MozReview-Commit-ID: IZVYIG9INaq
2018-05-18 10:16:04 -04:00
Matthew Gregan
81d70e03c7
Bug 1427011 - Disable default device switching in libcubeb's WASAPI backend. r=padenot
2018-04-30 19:59:32 +12:00
Bryce Van Dyk
daa4ebecbb
Bug 1443525 - Add hidden pref to force CubebUtils to return null context. r=padenot
...
Add a hidden pref, media.cubeb.force_null_context, that will force CubebUtils
to return a nullptr when asked for the cubeb context. This is to enable testing
of components, simulating the case cubeb were to fail.
MozReview-Commit-ID: Kd9Ksu0GfQJ
--HG--
extra : rebase_source : 0ac7837105dc1005dbd3b02f8768fb3ebf55c11e
2018-03-20 11:41:28 -04:00
Dan Glastonbury
6835957d77
Bug 1446233 - P2: Add prefs to control audioipc client thread pool. r=kinetik
...
MozReview-Commit-ID: EZXfIxBRyG4
--HG--
extra : rebase_source : a0d903e0b64bb72e0dc70a3d9fccee0e9636ef56
2018-03-22 15:33:25 +10:00
Jean-Yves Avenard
4e7b0b2695
Bug 1432779 - P5. Remove no longer used variables. r=padenot
...
MozReview-Commit-ID: LqOuM1F0NC2
2018-03-24 10:57:59 +01:00
Jean-Yves Avenard
87fa7068d5
Bug 1432779 - P4. Remove the concept of preferred layout. r=padenot,r=kamidphish
...
Channel layout is derived by the content being played. The concept of preferred layout is meaningless. Either we have a layout defined, or we don't. There's no in-between.
So we remove it.
MozReview-Commit-ID: CSCAInNmzMS
2018-03-24 10:57:59 +01:00
Jean-Yves Avenard
e766599866
Bug 1431221 - P13. Remove dual mono layout. r=padenot
...
It makes no sense to have a case for those as the data structure used (a bitmask) do not allow to represent this channel layout (a channel can only be present once). As such it was a non-functional layout
MozReview-Commit-ID: FjA0fojFcJp
2018-03-24 10:57:56 +01:00
Jean-Yves Avenard
48cf8d7243
Bug 1431221 - P5. Split AudioConfig.{h,cpp} from MediaInfo. r=padenot
...
MozReview-Commit-ID: EzaC19HS2B8
2018-03-24 10:57:54 +01:00
Jean-Yves Avenard
e9e8bc2708
Bug 1431221 - P4. Use similar channel decriptions as Windows WAVE and FFmpeg. r=padenot
...
This makes it for future easier conversion for the FFmpeg and Windows WMF decoder, so that we can use their channel map directly.
Also introduce a difference between 2F2 and QUAD, cubeb supports will be added in a future change.
MozReview-Commit-ID: L5NkjeuGslI
2018-03-24 10:57:54 +01:00
Cosmin Sabou
d5f5fb893c
Backed out 3 changesets (bug 1446233) for permafailing on dom/media/tests/mochitest/test_peerConnection_replaceTrack.html. a=backout
...
Backed out changeset 9b72102a99b3 (bug 1446233)
Backed out changeset 6f3488ff7c60 (bug 1446233)
Backed out changeset 20301e359a4e (bug 1446233)
2018-03-23 15:18:23 +02:00
Dan Glastonbury
ac492b197c
Bug 1446233 - P3: Add prefs to control audioipc client thread pool. r=kinetik
...
MozReview-Commit-ID: 7TVfYE9DEwp
--HG--
extra : rebase_source : e725ea784360e8d2061dbf4193c7074fde3cfdd1
2018-03-22 15:33:25 +10:00
shindli
5d297279b1
Backed out 3 changesets (bug 1446233) for Wr failures in /html/semantics/embedded-content/media-elements/track/track-element/track-webvtt-two-cue-layout-after-first-end.html on a CLOSED TREE
...
Backed out changeset ed217fb39a92 (bug 1446233)
Backed out changeset f5bec009a111 (bug 1446233)
Backed out changeset a71dd6219f8a (bug 1446233)
2018-03-23 04:11:01 +02:00
Dan Glastonbury
ac696a0587
Bug 1446233 - P3: Add prefs to control audioipc client thread pool. r=kinetik
...
MozReview-Commit-ID: I4BL7Ad2xtI
--HG--
extra : rebase_source : 984378bf2fbca347762b3096f75069b7721c97be
2018-03-22 15:33:25 +10:00
Paul Adenot
43aa0c346f
Bug 1437366 - Add a way to force the sample-rate used for a MediaStreamGraph. r=pehrsons
...
MozReview-Commit-ID: 4ICQiNKbUpJ
--HG--
extra : rebase_source : 686278509673cdd3b2705a5b20217ede075a8996
2018-03-02 19:27:57 +01:00
Narcis Beleuzu
e73ecbc91f
Backed out 4 changesets (bug 1437366) for mochitest failures on /test_peerConnection_basicAudio_forced_higher_rate.html
...
Backed out changeset 57826a5b03e8 (bug 1437366)
Backed out changeset a26852df062b (bug 1437366)
Backed out changeset abca0eb36d33 (bug 1437366)
Backed out changeset 41bb4a676575 (bug 1437366)
--HG--
extra : rebase_source : d81a0833db5d331fe928100cf88d1b9cc9253a1b
2018-03-08 19:27:25 +02:00
Paul Adenot
003b8e4f95
Bug 1437366 - Add a way to force the sample-rate used for a MediaStreamGraph. r=pehrsons
...
MozReview-Commit-ID: 4ICQiNKbUpJ
--HG--
extra : rebase_source : 9976b2d386f1467766af4a929b64479af99997ae
2018-03-02 19:27:57 +01:00
Alex Chronopoulos
c8882611dc
Bug 1410456 - use jni methods in place of removed cubeb methods. r=padenot
...
MozReview-Commit-ID: 18fQVZeYAgk
--HG--
extra : rebase_source : 67b9df3bdfb22d2baa05a15f6535af8d3d5c12d9
2018-02-20 15:37:07 +02:00
Narcis Beleuzu
5968b0947f
Backed out 10 changesets (bug 1410456) for Android mochitest crashes, e.g. in test_postMessages.html. CLOSED TREE
...
Backed out changeset 7ec175446efd (bug 1410456)
Backed out changeset 94457911bb24 (bug 1410456)
Backed out changeset 5248a21216ae (bug 1410456)
Backed out changeset f182ab7885db (bug 1410456)
Backed out changeset e482347bdae3 (bug 1410456)
Backed out changeset f7b646045e06 (bug 1410456)
Backed out changeset 6a8ed4bf5d2f (bug 1410456)
Backed out changeset 1a9c687ec277 (bug 1410456)
Backed out changeset 82f6667c6758 (bug 1410456)
Backed out changeset 7bf358e3e01b (bug 1410456)
2018-02-26 15:58:20 +02:00
Alex Chronopoulos
816b44e1a0
Bug 1410456 - use jni methods in place of removed cubeb methods. r=padenot
...
MozReview-Commit-ID: 18fQVZeYAgk
--HG--
extra : rebase_source : 67b9df3bdfb22d2baa05a15f6535af8d3d5c12d9
2018-02-20 15:37:07 +02:00
Dorel Luca
037478c033
Backed out 9 changesets (bug 1410456) for Mochitest failure on mobile/android/tests/browser/chrome/test_media_playback.html
...
Backed out changeset 36f6b40dfa88 (bug 1410456)
Backed out changeset 19f3248502d9 (bug 1410456)
Backed out changeset 18ef18999175 (bug 1410456)
Backed out changeset 0ec75a56b4c7 (bug 1410456)
Backed out changeset f7eae1545d5e (bug 1410456)
Backed out changeset d59060ecd24c (bug 1410456)
Backed out changeset f996b9dce4a6 (bug 1410456)
Backed out changeset 1f75636b5bce (bug 1410456)
Backed out changeset c170d37b1a04 (bug 1410456)
2018-02-19 21:45:10 +02:00
Alex Chronopoulos
33dc85d377
Bug 1410456 - use jni methods in place of removed cubeb methods. r=padenot
...
MozReview-Commit-ID: 7DqORSl0Sm2
--HG--
extra : rebase_source : 4559b6a65297bf3b2c70f33b6ab27e612a0fced2
2018-02-19 18:28:10 +02:00
Matthew Gregan
a1dd98ef44
Bug 1431333 - Initialize libcubeb logging earlier. r=kamidphish
...
Initializing logging when we create a cubeb context from
GetCubebContextUnlocked() means we never have a chance to set up logging on the
server side if audio remoting is enabled.
2018-01-19 17:50:36 +13:00
Matthew Gregan
81fcb1157e
Bug 1430870 - Avoid static ctors in AudioIPC startup code. r=kamidphish
2018-01-17 15:51:29 +13:00
Matthew Gregan
424057b335
Bug 1426867 - Init AudioIPC even earlier. r=kamidphish
2018-01-17 15:51:28 +13:00
Matthew Gregan
486ece9438
Bug 1426867 - Move private functions out of CubebUtils.h. r=kamidphish
2018-01-17 15:51:28 +13:00
Matthew Gregan
8d395cbf0c
Bug 1426791 - Don't try to activate cubeb remoting without checking pref. r=kamidphish a=covered-by-inbound
2017-12-24 16:22:36 +13:00