Commit Graph

844 Commits

Author SHA1 Message Date
Benoit Jacob
2ba4f21e5a Bug 1035394 - Fix dangerous public destructors in content/media/webaudio - r=padenot 2014-07-08 17:23:17 -04:00
Karl Tomlinson
d33fbb5158 b=1020205 reset mRemainingResamplerTail when no longer using the resampler r=padenot 2014-07-03 15:53:34 +12:00
Geoff Brown
e1976df582 Bug 981889 - Enable content/media/webaudio/test mochitests on Android 2.3; no review 2014-07-02 18:43:41 -06:00
Olli Pettay
7da5fd8ae0 Bug 1029866 - Rename InitUsingWin(...) to Init(...), r=bobowencode
--HG--
extra : rebase_source : e04aac99fe64270f283cf49ed52b8f7512a2fa3b
2014-06-25 13:17:17 +03:00
Andrea Marchesini
a2569ba17c Bug 1027172 - patch 2 - AudioContext should dispatch call AudioChannelAgent::StopPlaying() when the destination node doesn't have any input or it's muted., r=ehsan
--HG--
rename : content/media/webaudio/test/browser_mozAudioChannel.html => content/media/webaudio/test/browser_mozAudioChannel_muted.html
rename : content/media/webaudio/test/browser_mozAudioChannel.js => content/media/webaudio/test/browser_mozAudioChannel_muted.js
2014-06-24 22:15:36 -07:00
Benoit Jacob
0943d4adbd Bug 1028588 - Fix dangerous public destructors in content/media/ - r=cpearce,smaug 2014-06-24 12:36:43 -04:00
Bob Owen
d5b1972d3b Bug 1025476 - Part 1: Add compulsory Init functions to AutoJSAPI. r=bholley 2014-06-19 08:21:14 +01:00
Matthew Gregan
529f4b1054 Bug 1028144 - Remove dangerous public destructor of MediaDecoderReader. r=cpearce 2014-06-22 16:44:00 +12:00
Andrew McCreight
bee6f49645 Bug 1021932 - Free the buffer on failure in MediaBufferDecoder::AsyncDecodeMedia. r=padenot 2014-06-22 11:10:08 -07:00
Karl Tomlinson
10b58827f1 b=1006279 finalize thread pool when MediaBufferDecoder is destroyed r=padenot
--HG--
extra : transplant_source : %B3%A2%CA%00%3Ct%23%E4%AF%17%3B%C4%D0%E08%8Bn%08%D8%94
2014-06-19 14:48:22 +12:00
Nicholas Nethercote
39f29c384a Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Karl Tomlinson
39b8fc92b3 b=1026325 backout 169de60f0b1e from bug 821062 for shutdown hang
--HG--
extra : transplant_source : %92%9Cm8%AE%13%10U%06%FA%FA%15%08n%DF%5Do%18%87%E7
2014-06-18 17:24:05 +12:00
Chris Pearce
92ac291127 Bug 979104 - MediaDecoderReader/StateMachine asynchronous decoding. r=kinetik 2014-06-18 17:07:02 +12:00
Ehsan Akhgari
b64a25fc13 Backed out changeset 0cdef46c65c1 (bug 979104) for causing bug 1024324 2014-06-13 16:20:37 -04:00
Andrea Marchesini
33dfed9264 Bug 1023175 - AudioContext should have attribute EventHandler onmozinterruptend/begin in the webIDL interface, r=ehsan, r=smaug 2014-06-13 07:06:14 +01:00
Karl Tomlinson
a4b9a3c57e b=1023697 use audio ticks for graph time units r=roc
--HG--
extra : transplant_source : 8%BA%9D%5C%E32%05x%A79K%08TH%A7%F4%F2tg%EC
2014-06-12 16:45:00 +12:00
Karl Tomlinson
552baaf560 b=1023697 use MediaStream to convert between stream time and seconds in Web Audio r=roc
--HG--
extra : transplant_source : %FE%C77k/%25%B4%25F%FB1%EAAqn%CA%DEH%06%C0
2014-06-12 16:44:58 +12:00
Boris Zbarsky
c9eabf9d78 Bug 1009675 part 3. Return WebIDL 'object' values as handles. r=peterv 2014-06-11 16:26:52 -04:00
Chris Pearce
6efa8303c7 Bug 979104 - MediaDecoderReader/StateMachine asynchronous decoding. r=kinetik 2014-06-10 19:31:09 +12:00
Andrea Marchesini
e4ce8a0708 Bug 1021084 - WebAudio dispatches mozinterruptbegin/mozinterrutend, r=ehsan 2014-06-06 08:06:18 +01:00
Ryan VanderMeulen
5bc3216cda No bug - Clean up media mochitest manifests.
This doesn't change the enabled/disabled state of any tests. It should be a no-op since the harness runs tests alphabetically anyway regardless of their order in the manifest.
2014-06-05 12:41:53 -04:00
Ehsan Akhgari
2094e05ac0 Bug 1015783 - Add a devtools API for Web Audio; r=padenot,smaug
See bug 980506 for an extensive discussion about this.  This patch adds
three APIs to AudioNode in order for us to be able to build awesome
devtools on top of it.

* Weak reference API.
  This patch allows one to hold a weak reference to all AudioNode's
  using Components.utils.getWeakReference().  That way, the devtool's
  inspection code would not change the lifetime of AudioNodes.
* AudioNode.id
  This is a chrome-only unique and monotonically incrementing ID for
  AudioNode objects.  It is supposed to be used in order for the
  devtools to be able to identify a node without having to keep it
  alive.
* webaudio-node-demise
  This is an observer notification that is called every time an
  AudioNode gets destroyed inside Gecko.  The ID of the corresponding
  node is passed to this notification.

--HG--
extra : rebase_source : 83246a990489daf44ddc97dd4ea372a8cebe8e00
2014-06-03 22:51:48 -04:00
Ehsan Akhgari
1cf7290da2 Backed out 3 changesets (bug 1015783) because of test failures on a CLOSED TREE
Backed out changeset 1307202f365c (bug 1015783)
Backed out changeset 5c83b4710688 (bug 1015783)
Backed out changeset feb56fc5dc01 (bug 1015783)
2014-06-03 19:49:04 -04:00
Ehsan Akhgari
130053bdfb Bug 1015783 - yet another #include fix
Landed on a CLOSED TREE
2014-06-03 19:29:17 -04:00
Ehsan Akhgari
d58c8a2043 Bug 1015783 - Add the missing include 2014-06-03 18:51:54 -04:00
Ehsan Akhgari
fd0113805e Bug 1015783 - Add a devtools API for Web Audio; r=padenot,smaug
See bug 980506 for an extensive discussion about this.  This patch adds
three APIs to AudioNode in order for us to be able to build awesome
devtools on top of it.

* Weak reference API.
  This patch allows one to hold a weak reference to all AudioNode's
  using Components.utils.getWeakReference().  That way, the devtool's
  inspection code would not change the lifetime of AudioNodes.
* AudioNode.id
  This is a chrome-only unique and monotonically incrementing ID for
  AudioNode objects.  It is supposed to be used in order for the
  devtools to be able to identify a node without having to keep it
  alive.
* webaudio-node-demise
  This is an observer notification that is called every time an
  AudioNode gets destroyed inside Gecko.  The ID of the corresponding
  node is passed to this notification.
2014-06-03 18:28:18 -04:00
Jeff Walden
2155f1cf29 Bug 999651, bug 995679, bug 1009952, bug 1011007, bug 991981. r=sfink, r=shu, r=jandem, r=jdm, r=luke, r=bbouvier, r=nmatsakis, r=bz, r=ehsan, r=jgilbert, r=smaug, r=sicking, r=terrence, r=bholley, r=bent, r=efaust, r=jorendorff 2014-05-27 14:32:41 -07:00
Kyle Huey
8a1ded0d50 Bug 996133: Remove unnecessary NS_DISPATCH_NORMAL arguments to NS_DispatchToMainThread. r=ehsan 2014-05-23 12:53:17 -07:00
Paul Adenot
1a157a4f4c Bug 1007223 - r=ehsan 2014-05-13 14:09:44 +02:00
Ehsan Akhgari
f301f8be83 Bug 1006229 - Assert that the AudioBuffer object should not have been handed to JS or have C++ callers neuter its typed array; r=padenot 2014-05-19 23:12:47 -04:00
Karl Tomlinson
152a304e3b b=990868 limit ChannelMergerNode output channel count r=padenot
--HG--
extra : transplant_source : 5S-%40T%8E%8B%F8%B4W%1F%B3%BA5O%83%BF%044%23
2014-05-16 09:23:38 +12:00
Karl Tomlinson
4980cab4b0 b=991533 limit AudioBuffer channel count r=padenot
--HG--
extra : transplant_source : %28%F0%2Cc%FE%60%B3%EE%A0O%3F%E6%C4%C4%F9%88%1C%E3%89%09
2014-05-16 09:23:38 +12:00
Karl Tomlinson
63192b0276 b=991533 limit AudioBuffers from decodeAudioData to the same sample rates as createBuffer r=ehsan
The numberOfChannels array on AudioBuffer is now an infallible array, as this
is considerably smaller than infallible channel data array allocations in
AllocateAudioBlock and similar to channel data pointer array allocations in
AudioChunk.

--HG--
extra : transplant_source : C%29_%13%9C%9C%A1%E1%A3%E8%C9_%93%11%85lM%FC%7E%BC
2014-05-16 09:23:27 +12:00
Karl Tomlinson
651d766fc4 b=991533 throw exception from AudioProcessingEvent buffer getters when allocation fails r=ehsan,bz
--HG--
extra : transplant_source : C%60%E5f6%1D%D3%0F%D6%0B%9CV%A6%AD%C5%5D%E9%9B%C6%BD
2014-05-16 09:11:13 +12:00
Karl Tomlinson
b11287322d b=991533 limit OfflineAudioContext to the same sample rates as AudioBuffer r=padenot
OfflineAudioCompletionEvent needs to use AudioBuffer for its output,
and so the AudioContext should run at the rates supported by AudioBuffer.

--HG--
extra : transplant_source : %F2%A0%90%E6%DD%21%15%CDBa%F4%24%93%22%FA%A3%D8%12KU
2014-05-16 08:44:18 +12:00
Karl Tomlinson
df408748ac b=991533 move sample rate limits to WebAudioUtils r=padenot
Also change WebAudioUtils from a class to a namespace, so that constant
variables can be defined inline with internal linkage.

static class variables cannot be defined inline because this violates the one
definition rule, even though some compilers may not notice.

--HG--
extra : transplant_source : %9F4%2Ct%BA%D2%BD%8A1Xev%92%C0%A1%AD%88IH%BF
2014-05-16 08:44:17 +12:00
Bob Owen
064a09f0ce Bug 1006024 - Part 10: Remove AudioContext::GetJSContext. r=bholley 2014-05-09 20:07:34 +01:00
Bob Owen
0c6b94cd64 Bug 1006024 - Part 9: Remove unused JSContext parameter from AudioBuffer::SetRawChannelContents. r=bholley 2014-05-09 10:16:03 +01:00
Bob Owen
8d52d51ac6 Bug 1006024 - Part 8: Replace AutoPushJSContext in ScriptProcessorNode - Command::Run. r=bholley 2014-05-09 19:57:24 +01:00
Bob Owen
87efa3f706 Bug 1006024 - Part 7: Replace AutoPushJSContext in WebAudioDecodeJob::AllocateBuffer. r=bholley 2014-05-09 19:51:56 +01:00
Bob Owen
57656ff550 Bug 1006024 - Part 6: Replace AutoPushJSContext in AudioProcessingEvent::LazilyCreateBuffer. r=bholley 2014-05-09 19:43:48 +01:00
Bob Owen
f9c6a2c9af Bug 1006024 - Part 5: Replace AutoPushJSContext in AudioDestinationNode FireOfflineCompletionEvent. r=bholley 2014-05-09 19:33:17 +01:00
Martin Thomson
0321f1b010 Bug 966066 - Add principal observer to web audio MediaStream input. r=roc 2014-04-25 10:32:00 -04:00
Benoit Jacob
2e1ef0025a Bug 1004098 - Make nsTArray use size_t in its interface (32bitness is fine as an internal detail) - r=froydnj, sr=bsmedberg 2014-05-08 21:03:35 -04:00
Ehsan Akhgari
09d5c38c34 Bug 985805 - Part 3: Remove support for the legacy PannerNode extensions; r=padenot,smaug 2014-05-05 20:33:19 -04:00
Ehsan Akhgari
df159397ed Bug 985805 - Part 2: Remove support for the legacy OscillatorNode extensions; r=padenot,smaug 2014-05-05 20:33:09 -04:00
Ehsan Akhgari
ed9dbcdfb0 Bug 985805 - Part 1: Remove support for the legacy BiquadFilterNode extensions; r=padenot,smaug 2014-05-05 20:32:48 -04:00
Eric Rahm
9b5d3eccc6 Bug 1003479 - Fix incorrect usage of SizeOfIncludingThis and SizeOfExcludingThis functions. r=njn
--HG--
extra : rebase_source : 2d51e1fc1b642b0efa60cb4e25e8b142577e93d3
2014-05-01 10:37:54 -07:00
Karl Tomlinson
a4f8f72cb7 b=990841 work around bug 916387
--HG--
extra : transplant_source : %E5k%B8%F1%EC%A9X%EEj%C0DV%EAL%CE%3C%CB%8ERW
2014-05-05 13:24:51 +12:00
Karl Tomlinson
b14049c578 b=999376 use integers to clamp maximum position in WaveShaper curve r=ehsan
float did not necessarily have enough precision.

Includes a -1 fix in the multiplier of the input signal to have
"a signal level of zero corresponding to the center value of the curve array".

--HG--
extra : transplant_source : %05v%A2%0A%CA%96%96%A7%B0z%AA%A7%02L%8Fm%B4TB%95
2014-05-05 13:24:51 +12:00