Commit Graph

684 Commits

Author SHA1 Message Date
Paul Adenot
ab2cc97579 Bug 943589 - Handle AudioChunk::mVolume (from GainNode) in AudioParam. r=ehsan 2014-01-10 15:30:40 +01:00
Paul Adenot
3f4dc71b42 Bug 942022 - Return safely when thread creation fails, in ReverbConvolver. r=karlt 2014-01-10 16:01:18 +01:00
Paul Adenot
2ca7f2f126 Bug 952860 - Leaky integrate sawtooth and square waves in the OscillatorNode to prevent bad DC offset when changing frequency. r=karlt
--HG--
extra : rebase_source : f526506e80a4d7db553fe54cc115d8bf1c7be9d2
2014-01-10 12:40:05 +01:00
Paul Adenot
0a391e2f8e Bug 956201 - Null check the destination node when muting. r=karlt
This can happen since we now mute instead of suspending when an AudioContext
shuts down.
2014-01-07 11:17:28 +01:00
Karl Tomlinson
1c1570d60b b=956604 optimize inverse FFT scaling during convolution r=padenot
--HG--
extra : transplant_source : %FD%10%CEAnU%98w%15%9D%9E6l%A7Q1%E1V%CDD
2014-01-08 16:58:11 +13:00
Karl Tomlinson
3ef01a9b6c b=956604 Remove unnecessary channel count parameter from AudioBufferInPlaceScale r=padenot
--HG--
extra : transplant_source : %98%098%E3%1D%9D%B4%22%FD%ED%3C%96%11%96%F9P%89%F4J0
2014-01-08 16:57:53 +13:00
Karl Tomlinson
65f6a47487 b=956604 rename block version of AudioBufferInPlaceScale to AudioBlockInPlaceScale r=padenot
--HG--
extra : transplant_source : %EE%9C%0D%B4%F0S%DA%AFX%3D%D2%10H%28-%82%EE%B5%AB%84
2014-01-08 16:57:26 +13:00
Robert O'Callahan
f478c60988 Bug 943461. Part 18: Ensure AudioBufferSourceNode's engine always produces an audio block when ProduceAudioBlock is called, and add an assertion to catch this kind of error directly. r=karl
--HG--
extra : rebase_source : e6ae51dc34f5567998af3b299acd48dd10e8394e
2013-12-13 01:33:01 +13:00
Robert O'Callahan
6f87a9fa58 Bug 943461. Part 12: Remove spurious ScriptProcessorNode from test. r=karl
--HG--
extra : rebase_source : e902519b5e1d7bbd7f60545147edd8241e4d9455
2013-12-10 13:49:03 +13:00
Robert O'Callahan
2189b5f9e4 Bug 943461. Part 11: Don't tear down an OfflineAudioContext until its current time has actually reached its end, to ensure that all relevant stream state changes have been forwarded to the main thread. r=padenot
--HG--
extra : rebase_source : 32b9a4cf4c39edfabf5be17cec50a676f1ad4641
2013-12-09 18:08:02 +13:00
Boris Zbarsky
9d25dc48cc Bug 950315 part 1. Convert a bunch of event targets to passing a Window or nsDOMEventTargetHelper directly to the constructor of their ancestor nsDOMEventTargetHelper. r=smaug 2014-01-06 21:53:23 -05:00
Karl Tomlinson
c0820c5d01 b=944143 avoid producing infinite stream of subnormals in ZeroPole tail r=padenot
--HG--
extra : transplant_source : gI%94%E9%DB%99%83%B7%09%B6%82q%FF9%5DI%BE%D6%EF%B6
2014-01-07 12:53:48 +13:00
Karl Tomlinson
e2d74dc640 b=949683 optimize zero-gain in GainNode r=padenot
--HG--
extra : transplant_source : %97Js%1B%23%13%AEb%7F%9E%B5%C4%BEx%84xV%C1%F7%5B
2014-01-07 12:53:48 +13:00
Karl Tomlinson
49afc90fac b=944851 don't consider AudioNode input when getting AudioParam values on the main thread r=ehsan
--HG--
extra : transplant_source : %15o4%BAA%1F%D4%87%01%CD%B3H%A1T%B0%88%27%9F%A1e
2014-01-07 12:53:47 +13:00
Karl Tomlinson
b0df417f11 b=952756 always remember offset and duration from Start() r=padenot
--HG--
extra : transplant_source : %9A%3D%12wAbL%0D%E1%16G%A9%B7%23%A9%16%7F%8C%2B%18
2014-01-07 12:53:47 +13:00
Ehsan Akhgari
384530ea4e Bug 884368 - Part 1: Add a memory reporter for AudioContexts; r=roc,njn 2014-01-04 13:15:41 -05:00
Paul Adenot
c11c0c60e1 Bug 936784 - Only mute on Shutdown if the AudioContext is not an OfflineAudioContext. 2013-12-18 16:07:37 +01:00
Paul Adenot
0f3fd2b88f Bug 936784 - Don't overbuffer in the MSG on AudioContext shutdown. r=roc,ehsan 2013-12-17 16:15:07 +01:00
Paul Adenot
33def62a8b Bug 932621 - Use fabs instead of abs (forgot to address review comments). r=ehsan 2013-12-16 14:08:22 +01:00
Paul Adenot
c02514ecb1 Bug 932621 - Make sure the latency does not grow up in ScriptProcessorNode. r=ehsan 2013-12-13 18:21:05 +01:00
Paul Adenot
93b93df051 Bug 949474 - Reflect the fact that the nominal range for the sampleRate argument of the AudioContext.createBuffer changed in the spec. r=
* * *
Bug 949474 - Fix various oranges, on a CLOSED TREE.

--HG--
extra : rebase_source : 1317857063b7f028687aab1c00f113d947cd5685
2013-12-13 17:58:00 +01:00
Ryan VanderMeulen
1c7f8554cb Backed out changeset 71f9f57e5ddb (bug 949474) for test_bug808374.html failures.
CLOSED TREE
2013-12-12 16:05:53 -05:00
Paul Adenot
74caf2eca4 Bug 949474 - Reflect the fact that the nominal range for the sampleRate argument of the AudioContext.createBuffer changed in the spec. r=ehsan 2013-12-12 16:05:31 +01:00
Paul Adenot
3614370479 Bug 916384 - Stop calling onaudioprocess on the ScriptProcessorNode it has no inputs or outputs. r=roc
Quoting the spec: "audioprocess events are only dispatched if the
ScriptProcessorNode has at least one input or one output connected".

--HG--
extra : rebase_source : bbf52a183a55b75d394a885624a4080a9467fac4
2013-12-12 15:31:51 +01:00
Paul Adenot
565650d978 Bug 944707 - Stop locking when getting the preferred samplerate from the AudioStream. r=kinetik
--HG--
extra : rebase_source : bbf7b305d13f252e7c743bb9abf12da078db865b
2013-12-09 20:54:49 +01:00
Paul Adenot
9caf81f97d Bug 916384 and 944707 - Backed out fa872452b89d and 012b1baf2b19 for crashes on a CLOSED TREE. 2013-12-11 16:31:35 +01:00
Paul Adenot
860ec1d573 Bug 916384 - Stop calling onaudioprocess on the ScriptProcessorNode if it has no inputs and outputs. r=roc
Quoting the spec: "audioprocess events are only dispatched if the
ScriptProcessorNode has at least one input or one output connected".

--HG--
extra : rebase_source : 93881fb4395744dc0adbb6df7ee146ef70ce42d2
2013-12-10 14:41:41 +01:00
Paul Adenot
306a521da6 Bug 944707 - Stop locking when getting the preferred sample rate from the AudioStream. r=kinetik
--HG--
extra : rebase_source : f2b5be30c25d71cfdb259cb5035335fb4e8a415c
2013-12-09 20:54:49 +01:00
Paul Adenot
4f552f4d9a Bug 947910 - Relax the MOZ_ASSERT(mPosition <= mDuration) in case of looping, in AudioBufferSourceNode::CopyFromBufferWithResampling. r=karlt 2013-12-10 14:35:50 +01:00
Birunthan Mohanathas
58325c73be Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
--HG--
rename : mfbt/Util.h => mfbt/ArrayUtils.h
2013-12-08 21:52:54 -05:00
Karl Tomlinson
4891625c9a test for bug 937475
--HG--
extra : transplant_source : %BC%9F%D3%7FB%A2%93%F45%0E%A7%FD%BCXK%7D%D6I%29%8C
2013-12-04 14:40:38 +13:00
Karl Tomlinson
3b52ecc7cc b=937057 remove resampler latency from BufferSource playback r=padenot
--HG--
extra : transplant_source : /pU%E1%EC%93%1F%04%29%7D%86%E7%C2%21%F6k%15%C0Bm
2013-12-04 14:20:12 +13:00
Karl Tomlinson
eb549b8a95 b=938450 test resampling by resampling back to original sample rate
--HG--
extra : transplant_source : z%D9%E8%9A%CC%0E%5B%A7%F3C%86%20%3BT%02%3F%06%CEzb
2013-12-03 20:29:24 +13:00
Karl Tomlinson
af40e0437c b=938450 use an OfflineAudioContext to test decodeAudioData at different sample rates f=padenot
--HG--
extra : transplant_source : %CF.%22r%F8%BB%D7%21%17%E9%96%19y1%5B%D0%E6%F0%D1%18
2013-12-03 12:23:49 +13:00
Karl Tomlinson
3d87549f6d b=938450 load the expected file only once and remove unused monoTest parameter
--HG--
extra : transplant_source : %8C%A4%04%FB%9E%F3%1D%90%DB%C7%B1-e.%1C%08%B7%84%7Fl
2013-12-03 12:21:00 +13:00
Karl Tomlinson
dd57777655 b=938450 reduce the number of offset parameters to compareChannels() f=ehsan
findFirstNonZeroSample() won't return an offset > buffer length, so clamping
the result to <= 2048 is not necessary.

--HG--
extra : transplant_source : %28HV%B3%9A%AA%D6%8C6n%FD%18%AE%D6g%83%03%EA%09%D4
2013-12-03 12:20:46 +13:00
Karl Tomlinson
dace222cfd b=938450 rename compareBuffers to compareChannels & add compareBuffers f=ehsan
--HG--
extra : transplant_source : %93W%BC%84%FF%10%9B%F5%CD5%98%0E%F0/%F2R%B9W%1E%94
2013-12-03 12:13:15 +13:00
Karl Tomlinson
29b88874bc b=938450 test lengths of decoded audio and change 48k wav files to 48k f=padenot
New wave files differ from those generated from ogg files using sox 14.4.1 and
libvorbis 1.3.3 by being one quantum less on about half of the samples.

--HG--
extra : transplant_source : B%27%8F%2B%40%22%C5%25%0CS%22%28%40%C0%C3%0EM%87%87%A7
2013-12-03 12:10:38 +13:00
Karl Tomlinson
9a16789950 b=938450 process all input samples in decodeAudioData r=padenot
--HG--
extra : transplant_source : %01%B2%FE%DA%BE%2CcX%B9%A7%60%15%FB%08%C5%2AS%99%B28
2013-12-03 12:09:01 +13:00
Karl Tomlinson
548089e936 b=937057 provide a null ptr instead of a zero buffer when processing resampler tail r=padenot
--HG--
extra : transplant_source : %8EK%22q%A6%E9%82%F1%5E-%9E%BEs%01%F1%D1Jj%097
2013-12-03 12:07:17 +13:00
Karl Tomlinson
d6f6b39447 b=937475 separate stream position from buffer position so that stop time can use stream position r=ehsan
--HG--
extra : transplant_source : %8C%F0%05w%0A%C6%21%11%D5A4%85%FD%BC%D6%1F%9A%B8%FE%CB
2013-12-03 12:07:17 +13:00
Karl Tomlinson
ce7b116ea7 b=937475 change DURATION from end-offset to duration and compare buffer length using integer sample count r=ehsan
--HG--
extra : transplant_source : %2BS%A0%A1%C04%BC%1D%A7vDh%8E%A4%F7%90%E62%DC%3D
2013-12-03 12:07:17 +13:00
Karl Tomlinson
396f33fc30 b=939491 avoid producing infinite stream of subnormals in BiquadFilterNode tail r=padenot
Using double precision for the processing means the main loop is unlikely to
encounter subnormals and provides suitable extra precision to minimize
accumulation of error.

If the tail output values are denormalized when converted to single precision
then flush them to zero to reduce downstream computation cost.

--HG--
extra : transplant_source : %08%09u%C48%E3i%AB%23%1B%D8_kz%E5%A8_%3D%C4%93
2013-12-03 12:07:16 +13:00
Ehsan Akhgari
fa64c8ac46 Bug 939571 - Build Web Audio in unified mode; r=glandium 2013-11-19 14:11:16 -05:00
Mike Hommey
931cb49886 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
db9e5129bc Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey
f0d1cd1e10 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey
f81885e53b 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
Peiyong Lin
1efde4a2e6 Bug 934440 - Statically assert that MEDIA_STREAM_DEST_TRACK_ID is different than AUDIO_TRACK. r=jdm 2013-11-12 08:37:17 -05:00
Ms2ger
786aa40195 No bug - Fix some style issues in DOM code. 2013-11-11 09:04:41 +01:00