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

814 Коммитов

Автор SHA1 Сообщение Дата
Karl Tomlinson 8c2ea9692c 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 7ce18f4431 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 b20b85f946 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 1b213a521f 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 4b5c66fc5a 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 6578a0d181 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 61c6fa0952 Bug 1006024 - Part 10: Remove AudioContext::GetJSContext. r=bholley 2014-05-09 20:07:34 +01:00
Bob Owen 5c5d3f2b80 Bug 1006024 - Part 9: Remove unused JSContext parameter from AudioBuffer::SetRawChannelContents. r=bholley 2014-05-09 10:16:03 +01:00
Bob Owen 29aa975c95 Bug 1006024 - Part 8: Replace AutoPushJSContext in ScriptProcessorNode - Command::Run. r=bholley 2014-05-09 19:57:24 +01:00
Bob Owen 4a6177bed1 Bug 1006024 - Part 7: Replace AutoPushJSContext in WebAudioDecodeJob::AllocateBuffer. r=bholley 2014-05-09 19:51:56 +01:00
Bob Owen 12aeed98cf Bug 1006024 - Part 6: Replace AutoPushJSContext in AudioProcessingEvent::LazilyCreateBuffer. r=bholley 2014-05-09 19:43:48 +01:00
Bob Owen bd6e5cb7a3 Bug 1006024 - Part 5: Replace AutoPushJSContext in AudioDestinationNode FireOfflineCompletionEvent. r=bholley 2014-05-09 19:33:17 +01:00
Martin Thomson d2fec57ae8 Bug 966066 - Add principal observer to web audio MediaStream input. r=roc 2014-04-25 10:32:00 -04:00
Benoit Jacob 60d536773a 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 6074cda6e4 Bug 985805 - Part 3: Remove support for the legacy PannerNode extensions; r=padenot,smaug 2014-05-05 20:33:19 -04:00
Ehsan Akhgari 96843d8039 Bug 985805 - Part 2: Remove support for the legacy OscillatorNode extensions; r=padenot,smaug 2014-05-05 20:33:09 -04:00
Ehsan Akhgari 3a8319c2d9 Bug 985805 - Part 1: Remove support for the legacy BiquadFilterNode extensions; r=padenot,smaug 2014-05-05 20:32:48 -04:00
Eric Rahm 047f25416e 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 04c2abc3c4 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 3a9fc4e0c0 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
Nathan Froyd 84041459a1 Bug 1003306 - part 2 - use services::GetPermissionManager everywhere that's appropriate; r=ehsan 2014-04-29 13:27:26 -04:00
Birunthan Mohanathas a85cd37de4 Bug 1001966 - Part 2: Change uses of numbered NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE macro to the variadic variant. r=smaug 2014-04-29 04:57:00 -04:00
Jon Coppeard 1216544376 Bug 959787 - Handlify remaining JS APIs r=terrence r=bz r=bholley 2014-04-30 10:10:33 +01:00
Birunthan Mohanathas 7ac92ae5ea Bug 900903 - Part 2: Change uses of numbered macros in nsCycleCollectionParticipant.h to the variadic variants. r=smaug 2014-04-25 12:49:00 -04:00
Star Cheng c6183f6ddf Bug 984498: To plumb audiochannel type from AudioContext to MediaStreamGraph r=roc 2014-04-18 17:23:36 +08:00
Carsten "Tomcat" Book f4336f1541 Backed out changeset c07bced21c89 (bug 984498) for mochitest-1 bustage on a CLOSED TREE 2014-04-25 12:09:54 +02:00
Star Cheng 59feac455c Bug 984498: To plumb audiochannel type from AudioContext to MediaStreamGraph r=roc 2014-04-18 17:23:36 +08:00
Paul Adenot aa81ed9e24 Bug 998179 - Refactor how MediaStreamGraph get and use their sample rate. r=roc
Use the sample rate passed to the OfflineAudioContext constructor in
MediaStreamGraph::CreateOfflineInstance, and pass the preferred mixer sample
rate to the (real time) MediaStreamGraph constructor.

Then, always use this sample rate for the lifetime of the graph.

This patch needed to pass the sample rate to the AudioMixer class to avoid
relying on globals like it was done before.

--HG--
extra : rebase_source : 2802208819887605fe26a7040998fc328b3c9a57
2014-04-23 11:20:56 +02:00
Ehsan Akhgari 6eeb144cc5 Bug 999908 - Remove support for the Web Audio legacy prefs for AudioBufferSourceNode, AudioContext, and AudioParam; r=padenot 2014-04-23 08:56:42 -04:00
Eric Rahm 314e9711f0 Bug 967817 - Finish memory reporters for Web Audio. r=roc, njn 2014-04-13 11:08:10 -07:00
Ralph Giles a82d7f8191 Bug 995289 - Use fmod to wrap custom waveform phase. r=padenot
From 4156df84046e8c0be31f02a9ac0ffac1cb9fe668 Mon Sep 17 00:00:00 2001
2014-04-14 19:12:13 -07:00
Andrea Marchesini 4266c27429 Bug 987064 - Remove AudioChannelType. r=roc, r=mchen, r=bent 2014-04-10 18:39:20 +01:00
Bobby Holley a75c841246 Bug 990290 - Null-check AudioNode's mContext during unlink. r=ehsan
Unlink can happen twice, apparently.
2014-04-11 07:59:47 -07:00
Paul Adenot 651e03feb0 Bug 818822 - Resample all inputs of the MediaStreamGraph to the ideal audio rate. r=roc 2014-03-24 11:06:05 +01:00
Carsten "Tomcat" Book ae409227bd Backed out changeset ac06eacc2206 (bug 987064) for B2G ICS Emulator Debug Bustage on a CLOSED TREE 2014-04-10 13:18:18 +02:00
Andrea Marchesini 190cf6a2a2 Bug 987064 - Remove AudioChannelType, r=roc, r=mchen, r=bent 2014-04-10 11:49:23 +01:00
Boris Zbarsky 79dab91ff6 Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky d4bd64ee2c Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Gabriele Svelto 7577d99db3 Bug 988760 - Account extra time since blocking correctly. r=karlt 2014-04-07 13:20:57 +02:00
Brian Hackett 044b015eb0 Bug 987508 - Create array buffers lazily for small typed arrays, r=sfink. 2014-04-07 13:04:37 -07:00
Ryan VanderMeulen 1bce966950 Backed out changeset e35851f07b67 (bug 987508) for non-unified bustage. 2014-04-07 15:49:48 -04:00
Randell Jesup f04d6425a9 Backed out changeset 5349ecd9c313 (bug 818822) 2014-04-07 15:40:55 -04:00
Brian Hackett 1f59f358ca Bug 987508 - Create array buffers lazily for small typed arrays, r=sfink. 2014-04-07 11:46:54 -07:00
Paul Adenot 3e5a0fb811 Bug 818822 - Resample all inputs of the MediaStreamGraph to the ideal audio rate. r=roc 2014-03-24 11:06:05 +01:00
Randell Jesup 2dfec0638c Backed out 965c62289427:cb894b5d342f for perma-orange on b2g emulator M10 r=backout 2014-04-02 17:11:12 -04:00
Paul Adenot d3b8229033 Bug 818822 - Resample all inputs of the MediaStreamGraph to the ideal audio rate. r=roc 2014-03-24 11:06:05 +01:00
Masayuki Nakano 930436ef24 Bug 984269 Rename nsDOMEventTargetHelper to mozilla::DOMEventTargetHelper r=smaug
--HG--
rename : dom/events/nsDOMEventTargetHelper.cpp => dom/events/DOMEventTargetHelper.cpp
rename : dom/events/nsDOMEventTargetHelper.h => dom/events/DOMEventTargetHelper.h
2014-04-01 15:13:50 +09:00
Chris Pearce fd48fdb8b5 Bug 631058 - Don't preroll as many media samples when loading preload="metadata" media. r=cajbir 2014-04-01 16:43:57 +13:00
Karl Tomlinson cc7f43c817 b=987976 make AudioNodeExternalInputStream output channel count match stream, unless > MaxChannelCount r=padenot
The difference from Blink here is that Blink plays silence for if element
channel counts are > 32, but here more channels are down-mixed.  Media stream
channel counts are also fixed to 2 in Blink, but that restriction is not
applied here.

Leaving the "inline" const static/class member initialization of
MaxChannelCount left missing symbols with gcc 4.7.3.

--HG--
extra : transplant_source : %C9%BA%84%0F%E8%89%E2%85p%B8%28%EF%E9M%CC%81%B9ob/
2014-04-01 10:25:45 +13:00
Karl Tomlinson d74753f274 b=986901 don't assume that DelayNode maxDelayTime is greater than 1 block r=padenot
Also apply DelayNode maxDelayTime before rounding to ticks.

--HG--
extra : transplant_source : %F1i%02%2A%ED%98%95%C9u%60%0B%1A%81A%C2%8E%FB%F3%FA%D5
2014-03-31 18:32:34 +13:00