Commit Graph

379 Commits

Author SHA1 Message Date
Paul Adenot
d31503d9d3 Bug 1307724 - Cherry-pick cubeb revision 50d92c. r=kinetik
MozReview-Commit-ID: 2ibCLal3BVD

--HG--
extra : rebase_source : 42dbab3510abdb390c6287df95721a17be7a1e4d
2016-10-05 12:20:06 +02:00
Paul Adenot
dbae1f1510 Bug 1306570 - Cherry-pick cubeb revision 6ae23a63 to fix a clock drift on Windows. r=kinetik
MozReview-Commit-ID: 3gC8dDAlkEM

--HG--
extra : rebase_source : 22b489cc5d7d3f91e9cfeab749fd41bd2300b652
2016-10-03 10:08:26 +02:00
Alex Chronopoulos
5a929bb3b5 Bug 1286041 - Update cubeb library on commit a317ba0. r=kinetik 2016-09-23 19:16:17 +03:00
Matthew Gregan
20f697690e Bug 1274479 - Update libcubeb. r=padenot 2016-09-13 13:23:46 +12:00
Wes Kocher
677438b338 Backed out 4 changesets (bug 1286041) for making various media tests really failure prone a=backout
Backed out changeset af4c053741f1 (bug 1286041)
Backed out changeset b5be689abefa (bug 1286041)
Backed out changeset 2aad01ffac9f (bug 1286041)
Backed out changeset 48117ed311a1 (bug 1286041)
2016-09-12 15:17:23 -07:00
Alex Chronopoulos
7c62351e09 Bug 1286041 - Update cubeb library on commit 2f3b9eb. r=kinetik 2016-09-12 12:24:54 +03:00
Matthew Gregan
d586aee8fd Bug 1278612 - Use DefaultOutputUnit as the default output device. r=jesup
https://github.com/kinetiknz/cubeb/commit/6b2c610 changed the output unit
from kAudioUnitSubType_DefaultOutput to kAudioUnitSubType_HALOutput because
capture is never available on the DefaultOutputUnit.  For the case where
we're doing output only to the default device, this regressed the automatic
device switching when the output device was changed in the Sound system
preferences.  Reverting to the DefaultOutputUnit for this case restores the
previous behaviour.  This addresses BMO #1278612.
2016-08-15 13:07:50 +12:00
Jan-Ivar Bruaroey
23c8aa8b52 Bug 1290625 - Make libcubeb mutex recurse again, to avoid deadlock when getting microphone. r=achronop
MozReview-Commit-ID: AvYa8ylsdOf

--HG--
extra : rebase_source : 111b2954a089fcacc530f7d9babed5de298b5b78
2016-07-29 20:03:35 -04:00
Paul Adenot
f6b4822250 Bug 1290425 - Update cubeb to e40741 to fix bustage. 2016-07-29 14:04:09 +02:00
Alex Chronopoulos
ae1e3599d8 Bug 1290425 - Update cubeb to revision 6278ef2f73. r=padenot 2016-07-29 13:40:52 +02:00
Paul Adenot
6c72456425 Bug 1285541 - Update cubeb to revision 2a5fd74b. r=padenot,achronop
Patches by padenot and achronop.

MozReview-Commit-ID: G00OFgHdKne

--HG--
rename : media/libcubeb/src/cubeb_audiounit.c => media/libcubeb/src/cubeb_audiounit.cpp
2016-07-20 15:02:29 +02:00
Paul Adenot
6100b0f94e Bug 1285541 - Update moz.build and update.sh for the new version of cubeb. r=achronop
MozReview-Commit-ID: 27b5L7ilGEg
2016-07-20 15:02:23 +02:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Damien Zammit
44e85908a4 Bug 783733 - Wire up the jack cubeb backend in the build system. r=glandium
It's disabled by default for now.

MozReview-Commit-ID: CPrJQ07n26t
2016-07-18 13:28:39 +02:00
Paul Adenot
df4b0d9571 Bug 1283850 - Uplift cubeb to revision b8aebef. r=padenot,kinetik,achronop
MozReview-Commit-ID: IjlWPClDuFg
2016-07-01 15:43:16 +02:00
Paul Adenot
378278ea83 Bug 1281402 - Uplift cubeb to revision 9a1d6ccd2. r=kinetik
MozReview-Commit-ID: 36jF493k7XW

--HG--
extra : rebase_source : ce0e2bf4c0a8ae671e0633b17a4339b9bea2e3b8
2016-06-22 15:12:58 +02:00
Paul Adenot
279fbfd34c Bug 1280280 - Update cubeb to 073c9f011114. r=kinetik
MozReview-Commit-ID: 8mARVNKAG7P
2016-06-16 14:52:51 +01:00
Paul Adenot
6145a952fe Bug 1280280 - Update media/libcube/update.sh to add cubeb_jack.cpp, and sort the list of files. r=kinetik
MozReview-Commit-ID: 5gwM71sotV2
2016-06-15 17:26:54 +01:00
Chris Peterson
353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Matthew Gregan
dc5d4004b3 Bug 1270004 - Update libcubeb. rs=jesup 2016-05-06 10:36:41 +12:00
Matthew Gregan
463eeffbb8 Bug 1270062 - Update libcubeb. rs=jesup 2016-05-05 07:55:13 +12:00
Sebastian Hengst
364419d47c Backed out changeset 6cfa5e25f30c (bug 1270062) for build bustage on Windows x64. r=bustage on a CLOSED TREE 2016-05-04 19:29:13 +02:00
Paul Adenot
a81dba9199 Bug 1270062 - Update libcubeb to revision 95b115e10e6280b934fc7d09a2c801055a2207f9.
Review by jesup on IRC.
2016-05-04 18:45:45 +02:00
Paul Adenot
fc68be72fb Bug 1270062 - Unbust Windows full duplex. a=Tomcat
MozReview-Commit-ID: EApTXpnCjz4
2016-05-04 13:28:50 +02:00
Paul Adenot
3ef0477eee Bug 1269692 - Update cubeb to revision 17e3048d0afa1152776fb1867cdb61c49fae69e4.
This picks up the fixes for bug 1268675 and bug 1268499, both reviewed by
kinetik.

MozReview-Commit-ID: GLIDQgIGqch
2016-05-03 11:53:19 +02:00
Carsten "Tomcat" Book
caa14246b6 Backed out changeset 094a64103807 (bug 1269692) for bustage on a CLOSED TREE 2016-05-03 12:13:49 +02:00
Paul Adenot
235503ca90 Bug 1269692 - Update cubeb to revision 17e3048d0afa1152776fb1867cdb61c49fae69e4.
This picks up the fixes for bug 1268675 and bug 1268499, both reviewed by
kinetik.

MozReview-Commit-ID: GLIDQgIGqch
2016-05-03 11:53:19 +02:00
Paul Adenot
3b6d6ce4d6 Bug 1267930 - When the wasapi rendering loop is stuck and we're shuttin down, leak the thread and continue the shutdown process. r=kinetik
It's probably better to not TerminateThread here, because we don't really know
what happened down the stack of the rendering loop, so we just leak it. This
happens during shutdown so it's not really an issue, it's going to be cleaned
up by the OS anyways.

MozReview-Commit-ID: 4o3Krj7L7m2
2016-04-28 12:02:14 +02:00
Matthew Gregan
ff1d7be7b4 Bug 1266623 - Up/down mix WASAPI capture streams when stream formats don't match. r=padenot 2016-04-26 13:31:49 +12:00
Alex Chronopoulos
6f159ce8bf Bug 1266753 - Fix mac bustage: use the old enum values, on a CLOSED TREE. r=padenot
MozReview-Commit-ID: 3wr3iTG6IWY
2016-04-22 18:42:11 +02:00
Alex Chronopoulos
a60e62f398 Bug 1266753 - Update cubeb to revision dbdfb to pick up OSX device notification changes. r=padenot
MozReview-Commit-ID: 7N66FmG9P5u
2016-04-22 16:36:39 +02:00
Paul Adenot
f1ecd64200 Bug 1265692 - Update cubeb to 0bc02f9. r=padenot,kinetik
This picks up fixes for:

- bug 1264892
- bug 1265541
- bug 1263514
- bug 1263505

MozReview-Commit-ID: CaNRARFO9UD
2016-04-19 14:02:23 +02:00
Thomas Zimmermann
4fd6e14941 Bug 1264892: Use system declaration of |__system_property_get| on B2G, r=padenot 2016-04-18 14:32:29 +02:00
Paul Adenot
c769964bb2 Bug 1264594 - Update libcubeb to revision 727121. r=kinetik
MozReview-Commit-ID: 26uBiAvDcFy
2016-04-14 12:33:18 +02:00
Randell Jesup
cb5f591b1b Bug 1263735: Update libcubeb to remove wasapi stubbing for enumeration r=kinetik
Also removes two spurious includes that were landed as possible bustage fixes in mozilla

MozReview-Commit-ID: 5PIxLpEAFmI
2016-04-11 17:19:46 -04:00
Nathan Froyd
d7dfb00a02 Bug 1261116 - only compile libcubeb's test_resampler if PulseAudio is enabled; r=kinetik 2016-03-31 13:06:04 -04:00
Randell Jesup
e8ac0554c8 Bug 1251502: _XOPEN_SOURCE level fix rs=bustage
on a CLOSED TREE

MozReview-Commit-ID: JUCRshXkC83
2016-03-27 19:06:37 -04:00
Randell Jesup
21d6b08430 Bug 1251502: include bustage fix rs=bustage
MozReview-Commit-ID: HTnSyDGKddY
2016-03-27 17:32:33 -04:00
Alex Chronopoulos
8747368bb1 Bug 1251502 - Add a duplex AudioUnit implementation. r=kinetik,padenot
MozReview-Commit-ID: Fbx9Qlsc50j
2016-03-25 17:44:37 +01:00
Paul Adenot
aba1a5fcce Bug 1251502 - Add a generic duplex resampler and a duplex WASAPI implementation. r=kinetik
This also imports various other commits from cubeb.

MozReview-Commit-ID: 4oUwHR8EUvd
2016-03-25 17:44:02 +01:00
Alex Chronopoulos
15a8cce414 Bug 1251502 - Update cubeb's udpate.sh script to account for new files. r=kinetik
MozReview-Commit-ID: 6sA4rvsoczP
2016-03-25 17:43:02 +01:00
Alex Chronopoulos
97cb78e3ec Bug 1251502 - Update moz.build for cubeb tests. r=kinetik
MozReview-Commit-ID: DBUde7unwfL
2016-03-25 17:42:44 +01:00
Alex Chronopoulos
f8e11f59de Bug 1251502 - Compile the resampling code in cubeb for OSX and Linux. r=kinetik
MozReview-Commit-ID: FqDBIojiAuF
2016-03-25 17:42:30 +01:00
Alex Chronopoulos
8c04e867b0 Bug 1251502 - cubeb does not use cubeb-stdint.h anymore, remove it from moz.build. r=kinetik
MozReview-Commit-ID: AzEmEec1jS
2016-03-25 17:42:10 +01:00
Randell Jesup
2f02d39ab8 Bug 1243275: Update libcubeb to pick up device-change-notification changes and a pulse fix rs=kinetik
--HG--
extra : commitid : JltP68111Xr
2016-01-27 07:57:35 -05:00
Landry Breuil
041d318a87 Bug 1242152 - fix sndio build after full-duplex API changes r=kinetik 2016-01-24 10:59:58 +01:00
Randell Jesup
7fc3f9bbc1 Bug 1241476: Update libcubeb from upstream rs=kinetik
Import of upstream git rev 2de1ab50e16763fd88ec1b5bae30422de598eed0
Updated update.sh script as well

--HG--
extra : commitid : IsUrg2XOTM2
2016-01-21 22:17:46 -05:00
Wes Kocher
25c1f56cee Backed out changeset 01c279ae2fb4 (bug 1241476) for various crashes on win xp mentioning "winmm_stream_init" a=backout
--HG--
extra : commitid : Cix5ETsOD0B
extra : amend_source : 1929a90c36b2f8426bfe9c0815931136acb4c95e
2016-01-21 17:28:32 -08:00
Wes Kocher
6166dbbd53 Backed out changeset d31752600dfd (bug 1221587)
--HG--
extra : commitid : 7u1Rh7nXdPT
2016-01-21 17:28:15 -08:00
Randell Jesup
5cb957d7fb Bug 1221587: temporary Win32 build fixes for cubeb full-duplex patch rs=padenot
To be backed out/overwritten on next merge from upstream libcubeb

--HG--
extra : commitid : CQtyLPoncz2
2016-01-21 11:51:36 -05:00
Randell Jesup
ef9e20cf89 Bug 1241476: Update libcubeb from upstream rs=padenot
Import from libcubeb git commit b364f9ce2f8f7c392055b94c350ce600892ce7bc

--HG--
extra : commitid : 49ZDL6OsQel
2016-01-21 11:51:35 -05:00
Matthew Gregan
1527ec8a56 Bug 1236977 - Default initialize IMMDevice temporary to avoid potential garbage CloseHandle on error. r=padenot 2016-01-07 17:53:55 +13:00
Nicholas Nethercote
57bef6b196 Bug 1232219 (part 3) - Fix remaining -Wunused warnings. r=glandium.
--HG--
extra : rebase_source : 357474b4c7729b78a3030dfefd720aad4e1b2576
2015-12-16 22:57:51 -08:00
Jacek Caban
317f57fccc Bug 1228947 - mingw fixup. 2015-12-07 12:21:45 +01:00
Chris Peterson
46bb7c80dd Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc
--HG--
extra : rebase_source : 4ab2c4a917ea90055e48bd6adcb53904f2266ee0
2015-11-27 20:49:55 -08:00
Matthew Gregan
9a273aba8d Bug 1225703 - Update in-tree libcubeb. r=padenot 2015-11-19 16:37:36 +13:00
Nigel Babu
80fe8e107c Backed out changeset 8631caf756eb (bug 1225703) for Cpp bustage on OS X 10.10 debug
--HG--
extra : amend_source : 0bacde9a70f022e574c638e207d4786a0572ef7b
2015-11-27 12:20:58 +05:30
Matthew Gregan
44147bd7ac Bug 1225703 - Update in-tree libcubeb. r=padenot 2015-11-19 16:37:36 +13:00
Wes Kocher
6b785bc5a4 Backed out changeset 3f51676191a6 (bug 1225703) for cpp unittest failures on at least Windows CLOSED TREE
--HG--
extra : commitid : CP7XWRFUyfV
2015-11-22 23:00:58 -08:00
Matthew Gregan
43f3a0941b Bug 1225703 - Update in-tree libcubeb. r=padenot 2015-11-23 15:12:05 +13:00
sajitk
582e1a55fa Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-15 14:49:01 +01:00
James Willcox
f15ace1296 Bug 1221228 - Work around busted OpenSL causing hangs/reboots on Android r=padenot 2015-11-13 08:40:46 -06:00
Mike Hommey
4d40edea15 Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps 2015-11-06 09:59:21 +09:00
Mike Hommey
3de00b45dd Bug 1216444 - Remove GKMEDIAS_SHARED_LIBRARY. r=mshal
In bug 922912, we folded back gkmedias.dll info xul.dll, so in practice, there
is no default configuration left that exercises GKMEDIAS_SHARED_LIBRARY. And
sure enough, it's been broken for months in many different ways.

The gkmedias intermediate library is however kept for webrtc signaling tests.
2015-10-21 14:47:22 +09:00
Mike Taylor
06ee049247 Bug 1041882 - Remove Froyo-specific support from libcubeb. r=snorp, r=padenot 2015-09-26 09:05:00 +02:00
Nicholas Nethercote
24cd9d5226 Bug 1203005 - Remove all traces of -Wdeclaration-after-statement. r=glandium.
Even though we compile C code as C99, we used to need
-Wdeclaration-after-statement because MSVC didn't allow declarations after
statements.

However, Visual Studio 2013 added support, so we can now merrily mix
declarations and statements everywhere. Hooray.

--HG--
extra : rebase_source : 00a89fed733008785429827408a0c6c466971080
2015-09-09 04:57:44 -07:00
Matthew Gregan
4a3512acbf Bug 1199794 - Add NULL checks to avoid crashing during media playback if the audio device removed. r=padenot
--HG--
extra : rebase_source : fc390ed0cd902c2195cdaf8c151fcbe69050beb3
2015-08-28 19:13:00 -04:00
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Matthew Gregan
bd4557d750 Bug 1197049 - Retain stream volume across device changes. r=padenot 2015-08-21 14:46:22 +12:00
Matthew Gregan
da63388633 Bug 1136360 - Report actual number of frames written to ReleaseBuffer. r=jesup 2015-08-21 18:09:34 +12:00
Matthew Gregan
7de719b648 Bug 1136360 - Account for stream and device latency in stream position calculation. r=jesup 2015-08-21 13:53:21 +12:00
Matthew Gregan
cea13e8bed Backed out 2 changesets (bug 1136360)
Backed out changeset 004f6db9c2dd (bug 1136360)
Backed out changeset 9b568fb8d447 (bug 1136360)
2015-08-24 13:25:57 +12:00
Matthew Gregan
52219f5e5c Bug 1136360 - Report actual number of frames written to ReleaseBuffer. r=jesup 2015-08-21 18:09:34 +12:00
Matthew Gregan
5faa47f98e Bug 1136360 - Account for stream and device latency in stream position calculation. r=jesup 2015-08-21 13:53:21 +12:00
Matthew Gregan
c953f0aca1 Bug 1195058 - Handle pa_context_new returning NULL in OOM situations. r=padenot 2015-08-18 12:34:15 +12:00
Matthew Gregan
63b1424f7e Bug 1195061 - Correctly restore audio hardware mix format after attempting to use an alternative format. r=padenot 2015-08-18 10:59:14 +12:00
JW Wang
48d9740581 Bug 1189866 - revert code that accidentally got into bug 1187817 patch 5. r=me. 2015-08-01 13:58:39 +08:00
JW Wang
17e42272cd Bug 1187817. Part 5 - assert some code in the audio thread and don't enter the monitor. r=kinetik. 2015-07-31 13:26:06 +08:00
JW Wang
5988d4015d Bug 1189197 - enqueue a silent frame to kick off the buffer queue callbacks. r=kinetik. 2015-07-31 13:25:59 +08: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
Ted Mielczarek
1c8dfe9741 bug 1171072 - make libcubeb build on iOS. r=kinetik
--HG--
extra : commitid : R5mXVfavLL
extra : rebase_source : 61121b45801e46597047006e9c72e8702a3b0792
2015-02-06 14:50:40 -05:00
Benjamin Chen
e787022dbd Bug 1165963 - Fix regression by bug 1104643: Detect "over compensation" and reset the anchor. r=padenot 2015-06-02 17:27:09 +08:00
Benjamin Chen
ddc5295649 Bug 1104643 - Interpolate the audio clock by system clock if the qudio clock is not going forward. r=padenot
--HG--
extra : rebase_source : 819aaab5e8fe182399aaab31ad457819b206df8f
2015-05-05 16:00:14 +08:00
David Major
ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Chris Pearce
85e09e9b88 Bug 1136360 - Backout 3920b67e97a3 to fix A/V sync regressions (bug 1148299 & bug 1157886). r=backout 2015-04-28 11:37:33 +12:00
Jacek Caban
af0f3ae86c Bug 1155624 - follow up: MSVC requires including <algorithm> for std::max. CLOSED TREE 2015-04-20 18:41:12 +02:00
Jacek Caban
d3b29e6cc5 Bug 1155624 - Use std::max instead of max macro in cubeb_wasapi.cpp. r=kinetik 2015-04-20 18:18:56 +02:00
Paul Adenot
ad1eda7b77 Bug 979705 - Fix typo. 2015-04-20 17:05:26 +02:00
Paul17041993
313bf7beae Bug 979705 - Re-write the upmixing functions in the WASAPI cubeb backend to fix mono audio and surround compatibility. r=padenot
--HG--
extra : source : c511ccad7676e90b0f06cb1d2ee0a7b82eb6d51e
2015-04-20 15:58:27 +02:00
Carsten "Tomcat" Book
f857c3a490 Backed out changeset c511ccad7676 (bug 979705) for bustage on a CLOSED TREE 2015-04-20 16:44:41 +02:00
Paul17041993
ad02172e18 Bug 979705 - Re-write the upmixing functions in the WASAPI cubeb backend to fix mono audio and surround compatibility. r=padenot 2015-04-20 15:58:27 +02:00
Paul Adenot
af76d0abc7 Bug 1136360 - Take into account the output device latency in the clock, and be more robust about rounding error accumulation, in cubeb_wasapi.cpp. r=kinetik 2015-03-16 18:12:38 +01:00
Matthew Gregan
63eaf4e78b Bug 1144199 - Require multiple consecutive timeouts to accumulate before triggering timeout error handling in libcubeb's WASAPI backend; this avoids spurious timeout errors triggered by system sleep/wake cycles. r=padenot 2015-04-11 13:24:52 +12:00
Matthew Gregan
d3ddab98fb Bug 1134977 - Release IAudioStreamVolume when closing WASAPI stream. Refixes bug 1109802. r=padenot 2015-04-02 10:08:07 +13:00
Matthew Gregan
e0c1488a4c Bug 1143968 - Allow a cubeb_stream in error to be stopped without triggering a fatal assert. r=padenot 2015-03-18 15:23:19 +13:00
Alexandre Ratchov
22ad88b8fa Bug 1144087 - "Audio glitches on OpenBSD caused by rounding errors." r=kinetik 2015-03-18 12:19:00 +01:00
Matthew Gregan
7395e6dd6c Bug 1142746 - Make unexpected SL_PLAYEVENT_HEADATMARKER notification non-fatal. r=brsun 2015-03-17 13:30:40 +13:00
Ryan VanderMeulen
0f541272f0 Backed out changeset 7a53ee0cc3ae (bug 1136360) for Windows mochitest crashes.
--HG--
extra : rebase_source : 26d25e99c5b375f4e7a440638f897c9ae3b10e94
2015-03-16 15:04:51 -04:00
Paul Adenot
10f63e4d13 Bug 1136360 - Take into account the output device latency in the clock, and be more robust about rounding error accumulation, in cubeb_wasapi.cpp. r=kinetik 2015-03-16 18:12:38 +01:00