Commit Graph

2579 Commits

Author SHA1 Message Date
Ralph Giles
b2a2d1d336 Bug 865253 - Part 4: Stop OscillatorNodes on context shutdown. r=ehsan
Like AudioBufferSourceNode and ScriptProcessorNode, OscillatorNode
holds a self-reference in mPlaying. Keep track of all osc nodes
in the AudioContext and explicitly stop them to make sure this
reference is dropped.
2013-08-19 11:57:00 -07:00
Ralph Giles
b6cd82c798 Bug 865253 - Part 3: Direct generation of fixed oscillator types. r=ehsan
Simple direct calculation of the fixed types.

We probably want to use the PeriodicWave machinery to generate
the pre-defined waveforms once it's available. In either case
we can optimize this significantly by caching the generated
waveform when the frequency is stationary over the block.
2013-08-19 11:56:00 -07:00
Ehsan Akhgari
8ac7f2d7eb Bug 865253 - Part 2: Implement the alternate enum values for OscillatorNode; r=roc 2013-08-19 11:54:00 -07:00
Ehsan Akhgari
d323ec880a Bug 865253 - Part 1: Implement the DOM bindings for OscillatorNode; r=roc 2013-08-19 11:53:00 -07:00
Ehsan Akhgari
477c24d934 Bug 905444 - Do not attempt that we can handle empty channels when mixing; r=roc 2013-08-16 10:42:50 -04:00
Chris Double
1a460ea6ef Bug 905070 - Fix uninitialized value use in HTML media element - r=kinetik 2013-08-16 21:57:17 +12:00
Ehsan Akhgari
1bb70455b6 Bug 905409 - Minimize the Web Audio #includes; r=roc 2013-08-15 15:44:14 -04:00
Ehsan Akhgari
c0a07f27fe Bug 905353 - Minimize the #includes in dom/base; r=jst
--HG--
extra : rebase_source : e7a1d2262bf6d8c9b78057b8eb6cdbfd98262f68
2013-08-15 14:17:48 -04:00
L. David Baron
d0c5182318 Back out changeset 2454e6a5edbd (Bug 904926) on CLOSED TREE for lots of fatal assertions in Windows debug builds in MediaDecoder::IsDataCachedToEndOfResource. 2013-08-14 22:36:17 -07:00
Robert O'Callahan
d79d0821c2 Bug 904926. Remove unnecessary lock. r=cpearce 2013-08-15 16:24:00 +12:00
Wes Kocher
0e341ba80c Backed out changeset 016fa89e49b0 (bug 905409) on a CLOSED TREE 2013-08-14 17:21:45 -07:00
Ehsan Akhgari
e73f6e995f Bug 905409 - Minimize the Web Audio #includes; r=roc 2013-08-14 18:46:00 -04:00
Ryan VanderMeulen
c292f445e7 Merge m-c to inbound. 2013-08-14 17:11:30 -04:00
Randell Jesup
84e1617a01 Bug 905062: Clean up fake source for getUserMedia r=padenot 2013-08-14 17:01:16 -04:00
Carsten "Tomcat" Book
4a10a49030 merge mozilla-central to b2g-inbound 2013-08-14 15:02:24 +02:00
Ms2ger
6ec28362b3 Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar 2013-08-14 08:56:21 +02:00
Shelly Lin
0ce5665500 Bug 903023 - memset with 0 if the buffer of audio chunk is null. r=roc 2013-08-14 11:04:52 +08:00
Shelly Lin
cb7d5fde17 Bug 897895 - Correct the pcm offset when encoding audio source with two channels. r=roc 2013-08-14 11:04:55 +08:00
JW Wang
0a419b70d3 Bug 882171 - Part 2: Call NEON implementation. r=ehsan, r=glandium 2013-08-13 17:30:18 +08:00
JW Wang
99015508fd Bug 882171 - Part 1: Add NEON implementation of AudioNodeEngine.cpp. r=roc, r=padenot, r=derf, r=glandium 2013-08-13 15:39:42 +08:00
Paul Adenot
df42bbf5c3 Bug 903476 - Fuzz a bit more and android as well.
--HG--
extra : rebase_source : 57d9a1ed3549a0c8a2af9fb8be42b5823f21a2ec
2013-08-13 15:56:42 +02:00
Paul Adenot
a458f5268f Bug 903476 - Fuzz a bit more on win32.
--HG--
extra : rebase_source : 321848369a2f2401b1fcaf287bfbcd049a7c299c
2013-08-13 14:48:36 +02:00
Paul Adenot
e46e821b3e Bug 903476 - Update the fuzzing values in test_mediaDecoding.html because we changed the resampler. r=ehsan
--HG--
extra : rebase_source : 3b354018ba83f53cf64d6adb511c41dfcb205039
2013-08-13 12:44:34 +02:00
Chris Pearce
c01b531087 Bug 861693 - Makefile and moz.build changes required for DirectShow audio backend. r=gps 2013-08-13 16:49:25 +12:00
Chris Pearce
d265de7ebd Bug 861693 - DirectShow MP3 decoder HTML5 audio backend for Windows. r=padenot 2013-08-13 16:49:25 +12:00
Karl Tomlinson
6cb557818b b=815643 Implement HRTF panner processing based on Blink implementation r=ehsan
--HG--
extra : rebase_source : 197fd6f39d3d45b61d25d9dc399c72828d93655a
2013-08-09 10:08:06 +12:00
Karl Tomlinson
f90f9409c0 b=815643 Add Blink's HRTFPanner to the build r=ehsan
--HG--
extra : rebase_source : 14187eb58d308c25b3ff37356a1aef6757aee81d
2013-08-09 10:07:49 +12:00
Karl Tomlinson
3d1106b19c b=815643 Refactor DelayNodeEngine delay processing into a shareable class r=ehsan
--HG--
extra : rebase_source : e25ff3e490c2cbce5ed7cdf9419ccc2850ea16e5
2013-08-09 10:07:49 +12:00
Karl Tomlinson
6f77a7975e b=865241 don't join HRTFDatabaseLoader thread until it has finished r=ehsan
Also turn some always-true conditions into assertions.

--HG--
extra : rebase_source : a38b75a1a27f25cef7b9dd86a1cca15ce9f67893
2013-08-09 10:07:42 +12:00
Karl Tomlinson
06048fd447 b=865241 make HRTFDatabaseLoader ref-counting thread-safe r=ehsan
--HG--
extra : rebase_source : 8cab96807c111eb103dbe931d14a86a8b97a824e
2013-08-09 09:59:56 +12:00
Karl Tomlinson
f2dad7aedd b=815643 Add Blink's HRTFDatabase and HRTFDatabaseLoader to the build r=ehsan
--HG--
extra : rebase_source : e7aa0ce1ca436bbb429cb1f6051b3b8210bf767a
2013-08-09 09:56:28 +12:00
Karl Tomlinson
f0d4966e17 b=815643 Add Blink's HRTFElevation to the build r=ehsan
--HG--
extra : rebase_source : 5dda0b6c6302197574ac5fafbb0f06b1ac65980a
2013-08-08 21:38:30 +12:00
Karl Tomlinson
be0aa554a0 b=815643 Reduce convolver fft size for low sample rates r=ehsan
--HG--
extra : rebase_source : 0d7c6d4a3bcb340fc674f0b4181cf264fcc4e041
2013-08-08 21:38:30 +12:00
Karl Tomlinson
e54cf1e0c0 b=815643 Add code to interpret and resample impulse response data r=ehsan
--HG--
extra : rebase_source : 35497353634022f297b2ebf333b7230b12c1f9c2
2013-08-08 21:38:30 +12:00
Karl Tomlinson
d4a45b39b6 b=815643 Add HRTF impulse response data r=ehsan
The impulse response sample data is directly from individual impulse response wave files
in Blink SVN revision 153183.

--HG--
extra : rebase_source : 037471efd5be1f0d4a798bcc01192db9398377c2
2013-08-08 21:38:30 +12:00
Karl Tomlinson
583218c666 b=815643 Use symmetry to halve the number of HRTF kernels calculated and cached r=ehsan
--HG--
extra : rebase_source : 12e4a114630e793c22d3e335c38c641a6bc20ee2
2013-08-08 21:38:29 +12:00
Karl Tomlinson
3bfb5507c3 b=815643 Add Blink's HRTFKernel to the build r=ehsan
A functional difference is that HRTFKernel is not reference-counted.

--HG--
extra : rebase_source : 66a9653fed75265ec55d915b731876bcb793d513
2013-08-08 21:38:29 +12:00
Karl Tomlinson
a650122f64 b=865241 always leave 20 samples of headroom when extracting group delay, removing the discontinuity at delay = 20 r=ehsan
--HG--
extra : rebase_source : 30515ea2236b7503ff7e446d50930f91135bc7e0
2013-08-08 21:38:29 +12:00
Karl Tomlinson
d494799ed1 b=815643 Add Blink's frequency interpolation and group delay methods from FFTFrame to FFTBlock r=ehsan
--HG--
extra : rebase_source : 1e3393c85f1828cbcce49af1e3160fc3535d39b8
2013-08-08 21:38:24 +12:00
Karl Tomlinson
0e2cb4c001 b=865241 don't try to compute a phase for group delay from the DC and nyquist components of the DFT r=ehsan
Given imagP[0] is really realP[halfSize], it doesn't make sense to calculate a
phase from placing the DC and Nyquist components in different directions.
The DC component doesn't have a phase offset and lastPhase is already
initialized to zero.

This makes extractAverageGroupDelay() consistent with addConstantGroupDelay()
and to some extent interpolateFrequencyComponents().

The effect of the bug would have been small for reasonably sized FFTs.

--HG--
extra : rebase_source : b2931d625bd7e014f123b576f28aad7f719c585d
2013-08-08 21:37:36 +12:00
Karl Tomlinson
a7e95885f3 b=815643 remove unused HRTF code r=ehsan
--HG--
extra : rebase_source : f6063443b6e7574055b0ad92e95e32d7f0a850cd
2013-08-08 21:37:36 +12:00
Karl Tomlinson
d1fd66224a b=815643 Import the HRTF panner implementation from Blink r=ehsan
This code was copied from Blink SVN revision 153183.

--HG--
extra : rebase_source : 968f69846f5c532eda3580c8ce2176e2e6b5fc63
2013-08-08 21:37:36 +12:00
Chris Pearce
cd87b3fdae Bug 901944 - Ignore MF_E_TRANSFORM_TYPE_NOT_SET error when setting D3DManager on H264 Decoder. This error is returned on some (or all?) video cards on Vista, and appears to be safe to ignore. r=padenot 2013-08-13 14:42:39 +12:00
Ryan VanderMeulen
f1a7b637de Backed out changeset 635ef1e34417 (bug 899878) for B2G mochitest-3 timeouts. 2013-08-12 16:45:14 -04:00
Ryan VanderMeulen
f7b0f7438b Merge m-c to b2g-inbound. 2013-08-12 15:36:24 -04:00
Ralph Giles
9519eeb8a7 Bug 903012 - Fix static bounds checks. r=kinetik
In reviewing the static asserts in the code I found two
inconsistencies.

riffHeader includes 4 skipped bytes which weren't accounted
for in the bounds check.

Comparisons of a uint against UINT_MAX are very unlikely to
fail regardless, but this at least makes the two MAX_BLOCK_SIZE
checks the same.
2013-08-08 10:30:00 -04:00
Ralph Giles
467c635f04 Bug 903012 - Convert WaveReader to use static_assert. r=kinetik
We prefer the built-in check to the PR_STATIC_ASSERT macro now
that it's supported widely enough to use.

This is mostly adding error strings to report on assertion failure.
2013-08-08 10:30:00 -04:00
Chris Pearce
3fce82c0e2 Bug 901944 - Disable DXVA on Vista, to avoid rendering artifacts. r=kentuckyfriedtakahe 2013-08-12 17:17:38 +12:00
Chris Double
7dd97fc747 Bug 896866 - Media Source Extension demo app doesn't play all segments - r=kinetik
--HG--
extra : rebase_source : 13d66fb5c2d6c0c01929e404b6fb1b5d29073b54
2013-08-12 16:37:10 +12:00
Jason Smith
cd6894f4a5 Bug 899878 - Mochitest for recording media with no timeslice for Media Recording API. r=roc 2013-08-06 22:31:48 -07:00