Граф коммитов

415 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot 14201f3594 Bug 1123768 - Backout bug 1108455 to avoid truncating the end of audio streams on Vista+. r=kinetik 2015-02-09 14:43:03 +01:00
Paul Adenot 8b005f3fb1 Bug 1127213 - Fix various issues with the device change notification in the WASAPI cubeb backend. r=kinetik
This patch does the following:
- Introduces an owned_critical_section object to be able to assert that a
  current thread owns a critical section
- Change the auto_lock to use the above, add auto_unlock (basically like the
  Gecko AutoEnter/AutoExit things)
- Fix an issue during audio output device switch where the clock would use the
  old sample rate. Apparently I did not notice this because my headset and the
  sound card on this laptop have the same rate
- Check that we could acquire a device_enumerator in the ctor before
  deallocating in the dtor, as that can happen if a ton of streams are running at
  once (I had this issue running the full mochitest suite)
- Stop getting another device_enumator in unregister_notification_client, fixing a leak
- Assert that setup_wasapi_stream and close_wasapi_stream are called with the lock held, this was the cause of the crash for this bug
- Make close_wasapi_stream clear out its state to make sure setup_wasapi_stream
  and close_wasapi_stream are called in the right order (especially, not two
  setup_wasapi_stream without close in between, since that would leak stuff)
- In wasapi_stream_destroy, unregister the notification client before destroying
  the CRITICAL_SECTION (this was the cause of a crash I duped against this bug)
2015-02-09 14:42:43 +01:00
Paul Adenot 3e77a5e5ed Bug 698079 - Synthetize the clock when using WASAPI to prevent A/V desynchronization issues when switching the default audio output device. r=kinetik
--HG--
extra : rebase_source : c50798149111b680b4565798d33d43e6e062fb2c
2015-01-19 14:17:52 +01:00
Paul Adenot a40d0afff0 Bug 698079 - When using the WASAPI backend, always output audio to the default audio device. r=kinetik
This is implemented by detecting when the default audio output device changes,
stopping the current stream, and starting a new one using the new default audio
output device.

--HG--
extra : rebase_source : 94df344aecca0f940ba7216275176763336beb96
2015-01-19 14:16:36 +01:00
Paul Adenot f1241b66bf Bug 1108455 - r=kinetik 2014-12-16 18:45:40 +01:00
Matthew Gregan 7867c261cc Bug 1109802 - Release IAudioStreamVolume after use in libcubeb's WASAPI backend. r=padenot 2014-12-11 12:17:19 +13:00
Matthew Gregan 73ffa2d5f9 Bug 1105901 - Update cubeb from upstream to pick up compilation fix for glibc 2.20. r=padenot
--HG--
extra : rebase_source : cb04020b3c502f51e2411b1984bb42d8423d524b
2014-12-02 12:04:16 +13:00
Paul Adenot 6a47f77739 Bug 1083664 - Disable an assert in cubeb_audiounit.c for investigation.
--HG--
extra : rebase_source : d46b6fb9d3da9a45ea94435a15bfc3bfee85e9d3
2014-11-12 20:05:05 +01:00
Matthew Gregan 652f34cb02 Bug 1092859 - Always use soft volume in WinMM cubeb backend. r=padenot
waveOutSetVolume adjusts the system (or app, on Vista up, but we only use
WinMM on XP) "PCM Volume" rather than a per-waveOut volume, which means any
audio stream we adjust the volume on has an undesirable higher-level effect.
Fix this by dropping the support for waveOutSetVolume and always using the
soft volume support.

While here, fix a bug in the soft volume code where float32 samples are
handled.
2014-11-11 12:38:54 +13:00
Mike Hommey 47c853314f Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps
There are, sadly, many combinations of linkage in use throughout the tree.
The main differentiator, though, is between program/libraries related to
Gecko or not. Kind of. Some need mozglue, some don't. Some need dependent
linkage, some standalone.

Anyways, these new templates remove the need to manually define the
right dependencies against xpcomglue, nspr, mozalloc and mozglue
in most cases.

Places that build programs and were resetting MOZ_GLUE_PROGRAM_LDFLAGS
or that build libraries and were resetting MOZ_GLUE_LDFLAGS can now
just not use those Gecko-specific templates.
2014-10-30 13:06:12 +09:00
Matthew Gregan 6e1614d69b Bug 1074010 - Update cubeb from upstream. r=padenot
--HG--
rename : media/libcubeb/README => media/libcubeb/README.md
2014-09-29 13:19:09 +13:00
Fabian Raetz 49a6738249 Bug 1085127 - cubeb_sndio.c: error when compiling with debug enabled (undeclared identifier "false") - include stdbool.h r=kinetik 2014-10-21 15:59:55 +02:00
Matthew Gregan a7457c180c Bug 1074004 - Fix WebMioData implementation in TestWebMWriter. r=giles 2014-09-29 13:13:21 +13:00
JW Wang 4b96ebb38c Bug 1038091 - Pause the player instead of stopping it to avoid resetting playback position and resulting in audio clock going backward. r=kinetik 2014-09-28 19:36:00 -04:00
Gian-Carlo Pascutto 6f90e2262a Bug 1059573 - Add an option to use hardware AEC for WebRTC. r=jesup,ted 2014-09-24 19:11:58 +02:00
Matthew Gregan 52c0e70868 Bustage fix (update test to new values) for bd132d164dc9/bug 1065250 on a CLOSED TREE. 2014-09-17 17:08:35 +12:00
Matthew Gregan 2523248976 Bug 847903 - Drop OS X AudioUnit stream limit even further on 10.6 to fix crashtests/691096-1.html 2014-09-17 15:06:30 +12:00
Mike Hommey 0060683747 Bug 1059090 - Don't require SOURCES to be set for CPP_UNIT_TESTS and SIMPLE_PROGRAMS. r=mshal 2014-09-03 14:16:37 +09:00
Mike Hommey ed70c5f377 Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps 2014-09-03 14:10:54 +09:00
Paul Adenot d693771642 Bug 1062293 - Fix opensl's cubeb backend draining. r=kinetik
This ensures the callback won't be called when draining is done.

--HG--
extra : rebase_source : b876e19d03aa58105eceba341e7a394f1f25473c
2014-09-03 15:54:03 +02:00
JW Wang fac6627dd8 Bug 1057199 - Fix signed/unsigned error when calculating position in opensl_stream_get_position(). r=cpearce 2014-08-27 02:29:00 -04:00
Paul Adenot c5abb79941 Bug 848954 - 17 - Increase the size of the stack for the audio threads on Windows. r=kinetik 2014-08-26 17:02:08 +02:00
Paul Adenot b1ff1946e0 Bug 848954 - Part 12 - Make sure COM is initialized when calling into WASAPI functions. r=kinetik 2014-08-26 17:01:35 +02:00
Landry Breuil ffbb17e121 Bug 1054176 - fix some warnings about unitialized values and bad assign r=kinetik 2014-08-18 11:38:08 +02:00
Landry Breuil bb8520b586 Bug 1054176 : fix cubeb sndio build after bug 1027713 r=kinetik 2014-08-18 11:37:30 +02:00
Gabriele Svelto 1299cec0ff Bug 1052923 - Fix the volume conversion in millibels. r=padenot 2014-08-15 11:36:49 +02:00
Paul Adenot a908862519 Bug 1046592 - Fix bustage.
--HG--
extra : rebase_source : ca08f9c642c8ab6463551cf00ad8f4d9c9be02df
2014-08-08 14:19:14 +02:00
Paul Adenot 16e12feab6 Bug 1046592 - Fix volume computation in cubeb's opensl backend. r=kinetik 2014-08-08 13:26:42 +02:00
Paul Adenot b73923ad6a Bug 1049478 - Fix volume handling in cubeb's PulseAudio backend: revert to soft-volume when needed. r=kinetik
--HG--
extra : rebase_source : 16c2702a4304047e266c07c02f868510c9860f75
2014-08-08 13:26:02 +02:00
Matthew Gregan 87acb958cd Bug 992238 - Disable test_init_destroy_multiple_contexts_and_streams on Windows 7. r=padenot 2014-08-05 21:57:00 -04:00
Mike Hommey 89777800f9 Bug 1047267 - Move remaining OS_LIBS and EXTRA_LIBS to moz.build. r=gps
* * *
Bug 1047267 - To fold with "Move remaining OS_LIBS and EXTRA_LIBS to moz.build"
2014-08-07 14:21:03 +09:00
Mike Hommey d9443ec932 Bug 1045783 - Move most OS_LIBS to moz.build and do some related cleanup. r=mshal 2014-08-06 07:25:33 +09:00
Paul Adenot dfc054e9ba Bug 1046470 - Properly unregister property listeners in AudioUnit cubeb backend. r=kinetik 2014-08-01 14:12:17 +02:00
Nathan Froyd 12c76f15f7 Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLAGS into moz.build; r=glandium 2014-07-24 11:55:33 -04:00
Paul Adenot 559f8bc457 Bug 1045018 - Make cubeb_audiounit.c use the new cubeb_set_coreaudio_notification_runloop function. r=kinetik 2014-07-29 18:45:06 +02:00
Paul Adenot 2e14d9f533 Bug 1027713 - Disable test_stress on windows 8 as well. 2014-07-29 18:45:05 +02:00
Paul Adenot bd465041df Bug 1023947 - Part 2 - Allow getting the current input device in cubeb. r=kinetik 2014-07-18 19:21:27 +02:00
Paul Adenot 9e1cbcca7a Bug 1027713 - Part 3 - Add a cubeb API to signal that the output device changed. r=kinetik
The reentrant mutex is needed so that users can call back into cubeb's API from
the callback.
2014-07-29 18:45:03 +02:00
Paul Adenot 859027a5ec Bug 1027713 - Part 2 - Add a cubeb API to query the name of the audio output device in use. r=kinetik 2014-07-29 18:45:03 +02:00
Paul Adenot 90c7b668ff Bug 1027713 - Part 1 - Add a volume API in cubeb and use it instead of doing our own soft gain. r=kinetik 2014-07-29 18:45:02 +02:00
Gian-Carlo Pascutto 6bba4e1e18 Bug 1015932 - Move OpenSLES Realize into the engine broker. r=padenot 2014-07-29 16:45:41 +02:00
Gian-Carlo Pascutto f4b445d796 Bug 1015932 - Make WebRTC and libcubeb use the OpenSLES engine broker. r=padenot 2014-07-29 16:45:41 +02:00
Mike Hommey 5f6ba110e6 Bug 1043802 - Remove TOOLS_DIRS and TEST_TOOLS_DIRS. r=gps 2014-07-29 08:55:55 +09:00
Carsten "Tomcat" Book 5ef3d13c42 Backed out changeset 10f8441b42a1 (bug 1015932) 2014-07-28 11:52:04 +02:00
Carsten "Tomcat" Book 79f018da1a Backed out changeset 6289b18d2127 (bug 1015932) 2014-07-28 11:51:58 +02:00
Gian-Carlo Pascutto a2b88b10a1 Bug 1015932 - Move OpenSLES Realize into the engine broker. r=padenot 2014-07-28 11:29:31 +02:00
Gian-Carlo Pascutto 669fecf415 Bug 1015932 - Make WebRTC and libcubeb use the OpenSLES engine broker. r=padenot 2014-07-28 11:29:31 +02:00
Carsten "Tomcat" Book 161c1f03ea Backed out changeset b652396e9fd7 (bug 1015932) 2014-07-28 08:21:19 +02:00
Carsten "Tomcat" Book 6b2ed3392d Backed out changeset 689b75c98f2f (bug 1015932) 2014-07-28 08:21:16 +02:00
Gian-Carlo Pascutto eed209a14e Bug 1015932 - Move OpenSLES Realize into the engine broker. r=padenot 2014-07-28 08:10:21 +02:00
Gian-Carlo Pascutto dae88782a2 Bug 1015932 - Make WebRTC and libcubeb use the OpenSLES engine broker. r=padenot 2014-07-28 08:09:48 +02:00
Ehsan Akhgari 79ae487df4 Bug 1044478 - Just use the libraries that we really need when linking cubeb tests; r=padenot 2014-07-27 13:08:43 -04:00
Wes Kocher 04a9c3cb26 Backed out 8 changesets (bug 1023947, bug 1027713) for frequent Cppunit test failures
Backed out changeset 03edb1ab3182 (bug 1027713)
Backed out changeset ad05dc816fa0 (bug 1023947)
Backed out changeset a56aad94c7c9 (bug 1023947)
Backed out changeset 63af4528bd9c (bug 1023947)
Backed out changeset b6bb38846333 (bug 1027713)
Backed out changeset c0045bb1849e (bug 1027713)
Backed out changeset 274b2b25d167 (bug 1027713)
Backed out changeset e0bba6f4966f (bug 1027713)
2014-07-24 13:57:03 -07:00
Paul Adenot 751a5dd7cf Bug 1023947 - Part 2 - Allow getting the current input device in cubeb. r=kinetik
--HG--
extra : rebase_source : bc273a2f790b2fa09e8c50c95091f5db9856d42b
2014-07-18 19:21:27 +02:00
Paul Adenot d6ab097bdd Bug 1027713 - Part 3 - Add a cubeb API to signal that the output device changed. r=kinetik
The reentrant mutex is needed so that users can call back into cubeb's API from
the callback.

--HG--
extra : rebase_source : 42e7c8f09d02b30b35a7f80418df5e722b52faae
2014-07-24 17:05:23 +02:00
Paul Adenot 208b4e5f48 Bug 1027713 - Part 2 - Add a cubeb API to query the name of the audio output device in use. r=kinetik
--HG--
extra : rebase_source : fed39350db9e7c56c003a288e040fd6f901088d2
2014-07-24 17:05:23 +02:00
Paul Adenot 876688d0d4 Bug 1027713 - Part 1 - Add a volume API in cubeb and use it instead of doing our own soft gain. r=kinetik
--HG--
extra : rebase_source : c94c9f6792c002d515f2fee0cf708928e76f91a8
2014-07-24 17:05:23 +02:00
Mike Hommey 7cab62150a Bug 1041936 part 2 - Directly use the static library "xul" to link into "xul-gtest" instead of having an intermediate library "xul" used by "xul-shared" and "xul-gtest". r=gps 2014-07-23 13:33:09 +09:00
Mike Hommey 95063176fa Bug 1036894 part 9 - Replace all EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS with EXTRA_LIBS, OS_LIBS or OS_LDFLAGS, appropriately. r=gps
OS_LIBS for libraries that are not part of the gecko tree, EXTRA_LIBS for
libraries, such as NSPR, that are in the tree, but are not handled by
moz.build just yet. Those EXTRA_LIBS may also come from a system library.
However, in cases where the expanded variables are always empty for the
in-tree case, OS_LIBS is used (as for, e.g. MOZ_ZLIB_LIBS). OS_LDFLAGS is
used exclusively for non-library linker flags.

Always pass EXTRA_LIBS before OS_LIBS on linker command lines.

Forbid EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS in Makefiles.
2014-07-23 13:31:02 +09:00
Mike Hommey 5fab42fcaf Bug 1036894 part 8 - Move most in-tree library linkage information to moz.build, as USE_LIBS. r=gps 2014-07-23 13:30:52 +09:00
Mike Hommey 6d6d400ea1 Bug 1036894 part 6 - Emit SimplePrograms for CPP_UNIT_TESTs, and make the corresponding moz.build config look like that of SIMPLE_PROGRAMS. r=gps 2014-07-23 13:29:44 +09:00
Paul Adenot b6346e26cd Bug 1032266 - Allow the alsa backend to be shutdown while draining. r=kinetik 2014-07-03 18:50:40 +02:00
Chris Peterson 47402d0eea Bug 1034140 - Eat unused write() and read() return values. r=padenot 2014-07-04 12:00:07 -07:00
Chris Peterson 4009563e3e Bug 1033192 - Fix gcc and MSVC warnings in media/libcubeb/. r=padenot 2014-07-01 19:02:56 -07:00
James Willcox a293aadf17 Bug 1020227 - Disable OpenSL on Android 2.3 and lower r=gcp
--HG--
extra : rebase_source : d4a46bf6e3f8347da07dc1463bd3b87d0ec158f6
extra : histedit_source : 59bde0489bfcba21557e864d897f22fe8de8713c
2014-07-01 11:39:45 -05:00
Bruce Sun ca8b9c64b7 Bug 1017438 - Use SL_PLAYEVENT_HEADATMARKER event to trigger CUBEB_STATE_DRAINED state callback. r=kinetik 2014-06-26 14:59:48 +08:00
Cgg 27b4cd81c9 Bug 1026854 - Add a utility class for array RAII for cubeb's resampler. r=padenot 2014-06-21 17:00:52 +02:00
JW Wang d1099cd2f3 Bug 1008079 - Add cubeb_resampler.cpp to build files. r=glandium 2014-06-16 19:46:00 -04:00
JW Wang ce8d46bfc7 Bug 1008079 - Use a resampler when the sample rate is not supported by the audio engine in cubeb_opensl.c. r=padenot 2014-06-16 19:45:00 -04:00
JW Wang 00c34dc9f7 Bug 1008079 - Extract the resampling code from cubeb_wasapi.cpp so it is reusable. r=padenot 2014-06-16 19:27:00 -04:00
Star Cheng e24a0dc452 Bug 1007552 - To support publicnotification audio channel type for camera shutter. r=kinetik 2014-05-22 15:08:05 +08:00
Matthew Gregan e61b7687dc Bug 847903 - Limit active cubeb streams to 16 on OS X 10.6 and older. r=padenot 2014-05-19 14:16:56 +12:00
Paul Adenot 1531114c35 Bug 996770 - Properly lock around the wait when getting the preferred sample rate in cubeb's PulseAudio backend. r=kinetik 2014-04-17 15:44:07 +02:00
Paul Adenot 240ddf862e Bug 996770 - Add logging to cubeb's test_latency. r=kinetik 2014-04-17 15:42:00 +02:00
Paul Adenot 579e0bc4c5 Bug 949166 - Actually compile the Windows 7 detection code in cubeb's test to disable part of a test. r=kinetik 2014-04-14 12:07:54 +02:00
James Zhang 2e6caa0b9f Bug 992854 - [tarako] No sound when play some specific m4a music r=kinetik 2014-04-09 18:10:00 +02:00
Arun Raghavan 3fd4a3df16 Bug 986985 - Reconnect to the PulseAudio context if it is disconnected on stream creation. r=padenot,kinetik
--HG--
extra : rebase_source : efb8239b2a3ac73c78185084276d4b9ec53e1a3f
2014-04-02 14:42:11 +02:00
Paul Adenot 18b24590e3 Bug 946618 - Disable part of a cubeb test on Windows 7. r=kinetik
--HG--
extra : rebase_source : 1bf38b7cbb7e023b74ec1226e79f7bf01d739bd0
2014-03-24 11:06:05 +01:00
Paul Adenot bd86d96aaa Bug 946618 - Disable some cubeb tests on Android. r=kinetik
We still have some kind of smoke test in test_audio.c, so that's kind of okay.

--HG--
extra : rebase_source : a5b760c58e8365a96b310b4bd480c3c2262c0713
2014-03-24 11:06:05 +01:00
Paul Adenot 1a74c7bf11 Bug 946618 - Add native tests for cubeb. r=kinetik
--HG--
extra : rebase_source : 9b2e8e702ce5f8ea4d5416f3b45c91bc4cd94432
2014-02-25 14:21:59 +01:00
Paul Adenot 29ce6e72b4 Bug 946618 - Skip some cubeb tests on some platforms. r=kinetik
For example, skip float tests on platform that don't support floating point
audio, and skip timing test on platform where we don't honor latency request.

--HG--
extra : rebase_source : 6d48b637f18747674d519b586a24a8f4680f293b
2014-03-24 11:06:05 +01:00
Paul Adenot c554394dfb Bug 946618 - Update cubeb to pick up new tests. r=kinetik
--HG--
extra : rebase_source : 335880c5ecc3ace9cf5260e9e95b668ae00d183a
2014-02-27 16:26:24 +01:00
Paul Adenot daab4e413e Bug 988827 - Fix more warnings in cubeb on Android/B2G. r=cpeterson
--HG--
extra : rebase_source : 88cb14657c7f2b9d4c1908e6f552ad2e4182b33c
2014-03-27 13:36:46 +01:00
Star Cheng e579502249 Bug 942988 - Consider audio mixer latency (from audio back end) for opensl_stream_get_position() to improve A/V sync. r=padenot 2014-03-25 20:01:28 +08:00
Paul Adenot fdf771928d Bug 986793 - Fix warnings in cubeb_audiotrack.c, and allow mixed declaration and code in cubeb_opensl.c. r=cpeterson
--HG--
extra : rebase_source : 91856a5c76063be3d6c180abe34cda5cee9f3d71
2014-03-24 10:58:23 +01:00
Ehsan Akhgari f1b87eccd8 Bug 983014 - Move the rest of the -I build flags that stayed in Makefiles because of ANDROID_SOURCE to moz.build; r=mshal 2014-03-13 19:31:18 -04:00
Paul Adenot af14f6811a Bug 980052 - Compare the value and not the pointer when checking validity of the preferred sample rate in the OpenSL cubeb backend. r=kinetik
--HG--
extra : rebase_source : 4a65dffc002cd1fc1dc3fcf2b5472ba44196fbbc
2014-03-11 09:42:10 +08:00
Paul Adenot 143d5497f6 Bug 971693 - Fallback properly when WASAPI does not give us a stream format suggestion. r=kinetik
--HG--
extra : rebase_source : 495fdf5ad7f4a1069d9c0b9db186a0b717d18759
2014-02-27 14:36:58 +01:00
Paul Adenot 8150931bfa Bug 970147 - Don't assume WASAPI can give us a channel layout suggestion. r=kinetik 2014-02-11 15:48:49 -08:00
Matthew Gregan 317979a6cd Bug 962346 - Pass STACK_SIZE_PARAM_IS_A_RESERVATION to _beginthreadex in Windows cubeb backends to save address space. r=padenot 2014-01-22 13:52:46 +13:00
Florian Quèze e01ffd58d0 Bug 943618 - complete audio silence with some USB headsets, r=padenot. 2014-01-31 16:16:09 +01:00
Star Cheng d397d5eeb4 Bug 940177 - Refill the queues before starting playback in order to avoid racing with refills started by SetPlayState on OpenSLES ndk threads. r=kinetik 2014-01-06 18:21:19 +08:00
Paul Adenot 6ec0a9470f Bug 950026 - Bail out when we don't get an expected return value from AudioClient::IsFormatSupported, instead of asserting. r=kinetik
This will fall back to our own channel mapping code, instead of trying to use
the platform's.
2013-12-13 18:11:06 +01:00
Paul Adenot 9c371ba053 Bug 947431 - Be more robust when getting the preferred sample rate when using the OpenSL backend. r=kinetik
--HG--
extra : rebase_source : a55d98b9ce2cc6a9c2559d9589984faf8063c301
2013-12-12 18:35:39 +01:00
Paul Adenot 77915061d2 Bug 944132 - Make sure we don't loose precision when computing the audio clock when using opensl. r=sotaro 2013-11-28 18:15:54 +01:00
Paul Adenot 6b3e8ade1b Bug 940707 - Get more accurate latency numbers when using OpenSL. r=sotaro,kinetik
This dlopen libmedia.so, fetches some symbols and use that to determine the
output latency of the stream.

This also includes some fixes to get the minimal latency on Android 4.0.4, and
makes the latency a bit better.
2013-11-28 17:32:50 +01:00
Matthew Gregan 3e21b06488 Bug 923992 - Call GetDefaultAudioEndpoint when needed rather than caching its result when called at cubeb init time. r=padenot 2013-11-28 14:12:45 +13:00
Matthew Gregan 2ca1434c82 Bug 942657 - Devirtualize AudioStream. r=doublec,gps 2013-11-28 18:09:08 +13:00
Benjamin Peterson 02f058e57a backout dc9ebdf27e98 (bug 942657) for bustage 2013-11-28 20:50:16 -06:00
Matthew Gregan 93237d768e Bug 942657 - Devirtualize AudioStream. r=doublec,gps 2013-11-28 18:09:08 +13:00
Mike Hommey a1486ce449 Bug 942043 - Straighten up zlib linkage wrt shared js and system zlib. r=gps,r=ted 2013-11-22 23:03:21 +09:00
Mike Hommey 8fd06cf41b Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-27 22:55:07 +09:00
Carsten "Tomcat" Book d969fc65f8 Backed out changeset de7d74796ced (bug 923992) for frequent mochitest-1 orange on a CLOSED TREE 2013-11-28 09:06:42 +01:00
Mike Hommey b32a4ed166 Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00
Mike Hommey 682364d535 Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-28 13:08:16 +09:00
Mike Hommey 0a1fb8d11c Bug 942043 - Straighten up zlib linkage wrt shared js and system zlib. r=gps,r=ted 2013-11-28 12:49:43 +09:00
Matthew Gregan 9b9b92613e Bug 923992 - Call GetDefaultAudioEndpoint when needed rather than caching its result when called at cubeb init time. r=padenot
--HG--
extra : rebase_source : 3eaf73bf5a19e0b1997f7943bd29aa3e232c019f
2013-11-28 14:12:45 +13:00
Matthew Gregan 8d8ba44d87 Bug 934232 - Handle pa_stream_new failure in libcubeb's PulseAudio backend. r=padenot 2013-11-21 10:59:48 +13:00
Mike Hommey 2812d11fce Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey e80e877ab7 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey dda5b915fe Bug 939039 - Remove now useless FORCE_STATIC_LIB definitions. r=gps 2013-11-19 11:47:28 +09:00
Mike Hommey ffe0380912 Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Paul Adenot ab1b273373 Bug 939593 - Resync libcubeb with upstream. r=kinetik 2013-11-18 11:47:24 +13:00
Matthew Gregan 1b0e7b4249 Bug 929009 - Support mono configurations in WASAPI backend. r=padenot 2013-11-12 15:48:29 +13:00
Matthew Gregan 94e949b282 Bug 933284 - Initialize cubeb_audiotrack's get_output_samplingrate even on non-Froyo systems. r=padenot 2013-11-04 11:37:04 +13:00
Matthew Gregan 4a4be6685e Bug 933198 - gum_test.html doesn't provide audio on Windows nightly builds. r=jesup 2013-11-01 15:49:55 -04:00
Ted Mielczarek 673fd74516 Bug 930674 - convert VISIBILITY_FLAGS in Makefile.in to NO_VISIBILITY_FLAGS in moz.build. r=mshal 2013-10-24 15:06:19 -04:00
Cykesiopka d2f6b7333c Bug 914270 - Part 1: Simple/Automated moves. r=joey 2013-10-24 18:51:00 +01:00
Mike Hommey b000a846c2 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Ed Morley 37785a21ba Backed out changeset 38414f29834c (bug 928797) on suspicion of turning bug 701384 permaorange on a CLOSED TREE 2013-10-24 18:21:12 +01:00
Paul Adenot e58b82c58c Bug 928797 - Only set the audio output latency on mac if it is lower than the default. r=kinetik 2013-10-23 17:33:41 +02:00
Mark Banner b5814be473 Bug 930189 Round up values when getting the minimum latency to avoid values of zero. Patch suggested by jesup. r=padenot 2013-10-24 14:30:01 +01:00
Landry Breuil d7b696d54c Bug 928651: #include <assert.h> in cubeb_sndio.c to fix libxul linking r=padenot
../../../libcubeb/src/cubeb_sndio.o(.text+0x686): In function `sndio_get_max_channel_count':
undefined reference to `assert'
2013-10-22 11:24:30 +02:00
Matthew Gregan ae2decfeda Bug 928615 - Pass valid pointer to waveOutGetDevCaps. r=padenot 2013-10-21 14:19:05 +13:00
Paul Adenot 4c8c44228f Bug 918861 - Add an API to get the native samplerate for a given audio backend. r=kinetik
--HG--
extra : rebase_source : 592445a01f00a89289d52c52d9c758e10b9d9a00
2013-10-17 15:44:52 +02:00
Paul Adenot ececd6c386 Bug 907817 - Add a cubeb API to get a valid audio latency range per platform. r=kinetik
--HG--
extra : rebase_source : 06999c8009f2828ee0f6f49e0cdb5cbc86d785cc
2013-10-17 15:44:52 +02:00
Paul Adenot 6d4e01d3c2 Bug 907817 - Actually set the latency when using the audiounit cubeb backend. r=kinetik
--HG--
extra : rebase_source : a24f4511e22465d736423c5af275021101c2898b
2013-10-17 15:44:51 +02:00
Paul Adenot 3ab666560e Bug 899050 - Add rudimentary support for multichannel files when using WASAPI. r=kinetik 2013-10-12 13:53:11 -04:00
Paul Adenot 1165a8cfdd Bug 917246 - Make the tree compile with --enable-pulse. r=jesup
--HG--
extra : rebase_source : 9496c74dcc81cef40cf6e0f49b47c9c6c06a52d4
2013-09-17 15:23:43 +02:00
Ed Morley ac7c2e3abd Backed out changeset 58dbd84ae828 (bug 917246) for crashes on a CLOSED TREE 2013-09-17 17:24:30 +01:00
Ed Morley 94fdad4a1d Backed out changeset 7d17f2d129e3 (bug 881959) 2013-09-17 17:14:26 +01:00
Ed Morley a8fe3b72e1 Backed out changeset 7469a58a5f3d (bug 908669) 2013-09-17 17:14:23 +01:00
Paul Adenot b9e4f4113e Bug 908669 - Remove an unrelated chunk that sneaked in, on a CLOSED TREE. 2013-09-17 17:30:30 +02:00
Paul Adenot 8f2783b9fe Bug 881959 - Fix inbound bustage on XP again, on a CLOSED TREE. 2013-09-17 17:25:33 +02:00
Paul Adenot 0d3b9c3113 Bug 917246 - Make the tree compile with --enable-pulse. r=jesup
--HG--
extra : rebase_source : 83d648e4af08e27bc9b29a9450722c3d5d2278c7
2013-09-17 15:23:43 +02:00
Paul Adenot 71aa4ff23c Bug 904617: Part 1 - Add a way to get cube latency, add wasapi latency functions r=kinetik 2013-09-17 02:39:30 -04:00
Ed Morley 4abe2b9d25 Backed out changeset acf80b86d630 (bug 904617) for compilation failures 2013-09-16 08:44:44 +01:00
Ed Morley 77ff767b7d Backed out changeset a317a2d59ed5 (bug 904617) 2013-09-16 08:43:37 +01:00
Paul Adenot 7f3a3729b9 Bug 904617: Part 4 - Add windows wasapi latency entries for cubeb r=kinetik 2013-09-16 03:26:31 -04:00
Paul Adenot d480d1b82e Bug 904617: Part 1 - Add a way to get cube latency r=kinetik 2013-09-16 03:25:54 -04:00
Mike Hommey f8bc7fa754 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Ms2ger bdfaa84f5b Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps 2013-08-22 08:56:01 +02:00
Paul Adenot 54f5b5ae26 Bug 899050, 900380 - Update cubeb. r=kinetik
Update cubeb to pick up three WASAPI fixes:
- This fixes the resampling path when playing on a surround setup
- Also fixes mono playback on a surround setup.
- Fix a weird crash where the struct we get out of GetMixFormat was not of the
  right type.

--HG--
extra : rebase_source : c5b62032a88a3c1379a33d12510944cc11f51184
2013-08-08 19:48:18 +02:00
Ms2ger a4e67abf5e Bug 897921 - Remove some dead assignments in makefiles; r=mshal 2013-08-02 09:03:55 +02:00
Ehsan Akhgari ef4b479714 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Paul Adenot 50350a9383 Bug 893307 - Handle surround speaker setups when using the WASAPI cubeb backend. r=kinetik 2013-07-26 14:17:30 +02:00
Michael Wu f64248cf41 Bug 889652 - Add support for building with pulseaudio support on gonk, r=glandium,kinetik 2013-07-17 15:01:42 -04:00
Michael Wu a90a7c5677 Update libcubeb to pick up bug 895378 (r=kinetik) and bug 889652 (r=kinetik) 2013-07-19 21:16:41 -04:00
Jacek Caban 0b3661c310 Bug 893540 - Update cubeb to recent version (fixes mingw compilation). r=padenot 2013-07-15 13:39:43 +02:00
Paul Adenot e76036feda Bug 866675 - Add a WASAPI backend to cubeb. r=kinetik 2013-07-09 11:59:47 +02:00
Brian O'Keefe 11bcc1cd9e Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1); r=mshal
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Paul Adenot d2f909144d Bug 865244 - Bustage fix again, on a CLOSED TREE. 2013-06-10 21:43:05 +02:00
Paul Adenot 215c801905 Bug 865244 - Fix bustage on Android. 2013-06-10 19:58:14 +02:00
Paul Adenot 0ba5918cf5 Bug 865244 - Update in-tree cubeb to have cubeb_get_max_channels. r=kinetik 2013-06-10 19:32:28 +02:00
Joey Armstrong 05956ba0cd bug 870406: move CSRCS to mozbuild (config batch #2) r=mshal 2013-06-04 11:08:44 -04:00
Gregory Szorc 1b12175ba0 Bug 873629 - Remove 129 empty Makefile.in files; r=ted 2013-05-17 16:20:11 -07:00
Ted Mielczarek 3cfd62c3d2 bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium 2013-05-16 09:33:26 -04:00
Michael Wu 309c03f3b5 Bug 867871 - Support building cubeb opensles backend on JB, r=kinetik 2013-05-01 21:43:55 -04:00
Paul Adenot 480557614f Bug 861936 - Allow calling cubeb_stream_get_position while in the callback when using the pulseaudio backend. r=kinetik 2013-04-17 14:02:01 +02:00
Mike Shal df7deac25b Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
Paul Adenot d77643f51a Bug 859805 - Fix bustage. 2013-04-12 16:13:41 +02:00
Paul Adenot 9687e79ef5 Bug 859805 - Make libcubeb work on Android 2.3. r=kinetik 2013-04-12 14:50:02 +02:00
Wes Johnston 2fb4020107 Bug 809558 - Turn on audiochannels for Android AudioTrack. r=kinetic 2013-04-11 15:37:35 -07:00
Kyle Machulis 72a717a860 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis 43628a7867 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis 334c0800cf Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Michael Wu 173b19e7f1 Bug 853077 - Don't queue empty buffers in the opensles cubeb backend, r=kinetik 2013-03-25 18:16:31 -04:00
Michael Wu a9f2f659de Bug 852966 - Free audio buffers when freeing stream in opensl cubeb backend, r=kinetik 2013-03-20 18:31:36 -04:00
Gregory Szorc 89e86f9b21 Bug 844654 - Part 3: Remove now empty Makefile.in files; rs=khuey
--HG--
extra : rebase_source : 8de9c7f68a953e574dda22f8c14c2b2ca60444f9
2013-03-19 18:49:07 -07:00
Mike Shal 7ecea60097 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Landry Breuil dc0dc4bc30 Bug 851149 - Fix cubeb_sndio build after switchable-backends landing. r=kinetik 2013-03-15 16:28:07 +13:00
Paul Adenot 0994e31e10 Bug 698328 - Add a new cubeb backend based on AudioTrack.cpp. r=kinetik 2013-03-13 19:36:46 +01:00
Phil Ringnalda d0d78e1063 Back out 0044e4c2dc53 (bug 851149), 3080f18ba53d (bug 698328), 0b147c3f682b (bug 850713) for Android bustage
CLOSED TREE
2013-03-14 21:19:40 -07:00
Landry Breuil 5d4108bc84 Bug 851149 - Fix cubeb_sndio build after switchable-backends landing. r=kinetik
--HG--
extra : rebase_source : 6130904c7e96e4a942eeaf87723d6766d70c3b55
2013-03-15 16:28:07 +13:00
Paul Adenot 7cac48124a Bug 698328 - Add a new cubeb backend based on AudioTrack.cpp. r=kinetik
--HG--
extra : rebase_source : ec59b20cc746e052c1627285929138f34a349c00
2013-03-13 19:36:46 +01:00
Marco Chen a598ed8dc0 Bug 839415 - [Audio] Add support of SLAndroidConfigurationItf into backend of Cubeb + OpenSLES. r=kinetik 2013-03-12 11:46:32 +08:00
Matthew Gregan 95a1fe0680 Bug 837564 - Implement switchable backends for cubeb. r=padenot 2013-03-08 17:51:59 +13:00
Gregory Szorc 2fa6d9d925 Bug 784841 - Part 18u: Convert /media; r=glandium 2013-02-25 12:47:22 -08:00
Marco Chen 2c2cf35e0a Bug 839007 - Destroy outMix & engine before closing the openSLES lib. r=kinetik 2013-02-20 18:56:32 +08:00
Matthew Gregan 488cbf6168 Bug 842176 - Partial revert of bug 839319; use WAVE_FORMATEX when channels <= 2. r=doublec 2013-02-18 15:06:30 +13:00
Matthew Gregan ecd6a178ef Bug 752401 - Drain timing and error handling fixes for PulseAudio cubeb backend. r=doublec,jesup 2013-02-04 17:58:29 +13:00
Matthew Gregan aa5551739a Bug 839319 - Initialize WAVE_FORMAT_EXTENSIBLE correctly in cubeb winmm backend. r=doublec 2013-02-08 14:00:24 +13:00
Matthew Gregan 023547f5e6 Bug 818364 - Update libcubeb to 0.2. r=doublec 2012-12-05 17:20:47 +13:00
Matthew Gregan 6d7b9bf264 Bug 797517 - Switch order of cubeb WinMM latency kludges. r=doublec 2012-11-19 11:41:32 +13:00
Jan Beich 0fa18fa36a Bug 807683 - Convert ALSA to a configure option. r=khuey 2012-11-26 20:38:21 -05:00
Matthew Gregan 23815ea3d0 Bug 788005 - Work around Vista's higher latency requirements in WinMM. r=doublec 2012-11-13 18:19:00 +13:00
Matthew Gregan cea3e17458 Bug 779392 - Improve cubeb_alsa workaround for bug 761274. r=doublec 2012-11-13 18:09:10 +13:00
Matthew Gregan 40e3745cb6 Bug 805352 - Make cubeb_stream_destroy errors non-fatal in AudioUnit backend. r=doublec 2012-10-26 17:09:12 +13:00
Matthew Gregan 835308e5d2 No bug - Update media/libcubeb's import script to include upstreamed OpenSL backend.
--HG--
extra : rebase_source : 522aed702afc506555ed62a6b903b2bd2c4c314a
2012-10-23 17:22:10 +13:00
Matthew Gregan f996fdbef1 Bug 778675 - Make cubeb_stream_init errors non-fatal in AudioUnit backend. r=doublec 2012-10-18 18:03:45 +13:00
Michael Wu 9cf7fe3bbd Bug 792109 - Generate an outmix per opensl cubeb context not stream, r=kinetik 2012-09-19 13:51:34 -04:00
Michael Wu 74b74d66d7 Bug 791269 - dlopen opensl library, r=kinetik 2012-09-15 15:52:34 -04:00
Michael Wu 0976560f44 Bug 788402 - Improve queue handling in opensl backend, r=kinetik 2012-09-13 14:34:54 -04:00
Michael Wu a2f4fba3b5 Bug 694484 - OpenSL backend for libcubeb, r=kinetik 2012-09-04 17:45:08 -03:00
Matthew Gregan 6e84e4fd57 Bug 778675 - Add some more logging to debug a cubeb_audiounit test failure. 2012-09-03 13:18:42 +12:00
Matthew Gregan 1277af9c08 Bug 778675 - Add some logging to debug a cubeb_audiounit test failure. 2012-08-17 17:16:35 +12:00
Matthew Gregan ceb96ddab3 Bug 761917 - Fail when stream restart is attempted on a dead PCM. r=doublec 2012-08-16 18:48:40 +12:00
Jan Beich 9237dae01b Bug 780432 - Explicitly pass CFLAGS for ALSA and PulseAudio. r=kinetik
--HG--
extra : rebase_source : 829d51b17390d44fa31b786408e632844ad12473
2012-08-08 10:27:44 +12:00
Jan Beich d7bf07283f Bug 780432 - Add experimental --enable-pulseaudio configure option. r=kinetik,khuey
--HG--
extra : rebase_source : 9bf00787997d4ed465427e6570c5d937c1cb9ff4
2012-08-08 10:26:04 +12:00
Matthew Gregan 4a025b6513 Bug 779187 - Fix nsBufferedAudioStream's sample format selection for big endian machines. r=doublec 2012-08-06 15:26:41 +12:00
Mike Hommey 70d7c821af Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Matthew Gregan 7c54dee4c4 Bug 761274 - Work around buffer sizing bug in PulseAudio ALSA plugin. r=doublec 2012-07-16 17:15:24 -04:00
Matthew Gregan 209519736f Bug 757034 - Add sndio to cubeb update.sh. 2012-06-02 19:16:32 +12:00
Landry Breuil 4ba2f1c06a Bug 757034 - Import openbsd cubeb sndio backend. r=kinetik 2012-06-02 19:10:42 +12:00
Matthew Gregan b4e55eeefb Bug 759677 - Increase cubeb_run_thread stack size to avoid blowing the stack with some ALSA configurations. r=doublec 2012-06-02 19:09:27 +12:00
Matthew Gregan cadf177fc3 Bug 756944 - Import ALSA cubeb backend. r=doublec 2012-05-21 15:54:17 +12:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Matthew Gregan e80c8caef9 Bug 747793 - Use a ring buffer for audio buffered by nsBufferedAudioStream. Remove generic sample copy out with volume adjustment and replace with the lightly optimized version from nsNativeAudioStream. Add a fast path for the unity volume case. Bump cubeb's refill thread priority on Win32. r=cpearce 2012-05-03 16:48:54 +12:00
Matthew Gregan ecdebc1da8 Bug 751030 - Import PulseAudio backend for cubeb (NPOTB). r=mwu 2012-05-02 16:24:36 +12:00
Matthew Gregan b7d73586bb Bug 742160 - Import AudioUnit cubeb backend. r=doublec 2012-04-16 15:04:42 +12:00
Matthew Gregan 2152e9f321 Bug 742154 - Work around media crashtest shutdown hang in cubeb_winmm. r=cpearce 2012-04-16 15:00:40 +12:00
Jacek Caban 1e53ec0bd9 Bug 740324 - cubeb_winmm.c fails to compile on GCC r=jimm 2012-03-30 13:26:32 +02:00
Jim Mathies 93ef4685f4 Bug 731807 - Fix for error building with VC11 - 'ksguid.lib' not found. r=khuey 2012-03-27 08:36:57 -05:00
Justin Lebar 69fb6f1047 Bug 731789 - Rename mfbt/StdInt.h to mfbt/StandardInteger.h, so stdint types work from cpp files inside mfbt. r=waldo 2012-02-29 22:56:43 -05:00
Matthew Gregan 576ad01988 Bug 623444 - Import Windows libcubeb implementation. r=doublec, r=khuey 2012-01-13 14:38:39 +13:00