Karl Tomlinson
e9b62c3d43
bug 1391482 accept int16_t sample buffers in ConvolverNode r=padenot
...
MozReview-Commit-ID: LvYkiSvhQdP
2017-08-10 19:55:36 +12:00
Karl Tomlinson
71ced4475f
bug 1391482 generalize shared channel data from AudioBuffer as AudioChunk r=padenot
...
Although the AudioChunk buffer is still always a
ThreadSharedFloatArrayBufferList, 16 bit buffers will be permitted in a future
patch.
MozReview-Commit-ID: FPZ6VcX4C1q
2017-08-09 16:39:40 +12:00
Andrew McCreight
84ee98de3c
Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
...
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.
MozReview-Commit-ID: 5agRGFyUry1
2017-08-29 16:02:48 -07:00
Phil Ringnalda
e53faebe6b
Backed out 15 changesets (bug 1391482) for rooting hazard
...
Backed out changeset 4d4ed9b64bdb (bug 1391482)
Backed out changeset c02da061fc56 (bug 1391482)
Backed out changeset 7f096b0d1d0e (bug 1391482)
Backed out changeset 497e04031fc3 (bug 1391482)
Backed out changeset cb6ac4267562 (bug 1391482)
Backed out changeset b9a522cc88c9 (bug 1391482)
Backed out changeset 6feba222e86b (bug 1391482)
Backed out changeset ee13302be6c8 (bug 1391482)
Backed out changeset 0e12a1bdb2fa (bug 1391482)
Backed out changeset 7ffc044e742a (bug 1391482)
Backed out changeset fc35c12c815f (bug 1391482)
Backed out changeset 527ea972cdf3 (bug 1391482)
Backed out changeset a9c7abf92455 (bug 1391482)
Backed out changeset fea3e5cd3590 (bug 1391482)
Backed out changeset ca07d3a43b11 (bug 1391482)
MozReview-Commit-ID: 9Cq8e7pr2SP
2017-08-28 20:40:11 -07:00
Karl Tomlinson
04a57164ad
bug 1391482 accept int16_t sample buffers in ConvolverNode r=padenot
...
MozReview-Commit-ID: LvYkiSvhQdP
2017-08-10 19:55:36 +12:00
Karl Tomlinson
30d13e5cfc
bug 1391482 generalize shared channel data from AudioBuffer as AudioChunk r=padenot
...
Although the AudioChunk buffer is still always a
ThreadSharedFloatArrayBufferList, 16 bit buffers will be permitted in a future
patch.
MozReview-Commit-ID: FPZ6VcX4C1q
2017-08-09 16:39:40 +12:00
Karl Tomlinson
7cfefe6be5
bug 1024182 remove buffer copy for short impulse responses and so correct normalization scale r=padenot
...
Despite the comment, this was necessary only for a direct convolver stage,
which has been removed:
https://hg.mozilla.org/mozilla-central/rev/e66105937eef190dec073f1b9859e07a0272706b#l4.29
FFT convolver stages pad the buffer to the necessary length in
FFTBlock::PadAndMakeScaledDFT().
Trailing zeros in the impulse change the scale used in normalization
and so padding the buffer before calculating the scale led to the wrong scale
being used.
https://github.com/WebAudio/web-audio-api/issues/481
MozReview-Commit-ID: LqP1x1hmLOM
2017-08-09 16:52:01 +12:00
Karl Tomlinson
4bafaf19f9
bug 1388656 keep response buffer on graph thread only long enough to initialize the Reverb r=padenot
...
MozReview-Commit-ID: 6DvpXeWPGHp
2017-08-08 16:08:21 +12:00
Karl Tomlinson
2c4f3468ca
bug 1388656 re-initialize the Reverb only once when the ConvolverNode buffer changes r=padenot
...
MozReview-Commit-ID: IKMK5GYVRBB
2017-08-08 16:01:57 +12:00
Karl Tomlinson
06bd2bd93c
bug 1388656 remove unused SAMPLE_RATE SetInt32Parameter case r=padenot
...
Sample rate is passed as a double.
MozReview-Commit-ID: DBCvrCWPlgf
2017-08-08 15:56:09 +12:00
Karl Tomlinson
155e469688
bug 1388656 size to actual used length in nsTArray::SetCapacity() optimization r=padenot
...
MozReview-Commit-ID: BGFliZTx4QL
2017-08-08 15:47:24 +12:00
Paul Adenot
aadd3c3a24
Bug 1341555 - Consolidate use of the MSG's AbstractMainThread, and stop having AbstractMainThread on MediaStreams. r=pehrsons
...
MozReview-Commit-ID: 5hGDQcfpH6a
2017-06-29 11:30:57 -07:00
Bevis Tseng
d028a1f078
Bug 1314833 - Part 2.2: Use AbstractThread::CreateDirectTaskDrainer() to Drain Direct Tasks Dispatched to MediaStreamGraph. f=rjesup,r=padenot,jwwang
...
MozReview-Commit-ID: 1KgE3uKu4CG
2016-12-07 22:00:12 -10:00
Andrea Marchesini
3d2e57d5f4
Bug 1322883 - AudioNode constructors - part 9 - ConvolverNode, r=padenot
2016-12-15 19:24:42 +01:00
Andreas Pehrson
df7217d38d
Bug 1300529 - Remove default arguments from AudioNodeStream::Create. r=padenot
...
MozReview-Commit-ID: KG8PtBbJrc2
2016-09-05 17:25:41 +02:00
Jonathan Watt
9c5b8de022
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Dan Minor
95d66984c0
Bug 877662 - Align audio buffer allocations to 16 byte boundaries r=padenot
...
To be able to use SSE2 routines, we need to audio buffers to be allocated
on 16 byte boundaries.
MozReview-Commit-ID: 2mjxMWqysFd
2016-04-13 15:31:50 -04:00
Jean-Yves Avenard
ce6eecb054
Bug 1240411: P1. Clean up webaudio headers. r=cpearce
...
Remove redundant virtual keyword and add missing override if any.
2016-01-19 19:47:28 +11:00
Karl Tomlinson
3c41bc900a
bug 1221830 use WEBAUDIO_BLOCK_SIZE constant in Reverb methods r=padenot
2015-11-03 16:35:32 +13:00
Karl Tomlinson
4053b2f60c
bug 1217625 perform checks for transition to inactive outside of stream processing r=padenot
...
This will allow streams to be suspended when they are discovered inactive.
Suspending is not possible while iterating over stream lists for processing.
The approach of delaying the transition to inactive state may result in a
couple of extra processing iterations, but can save on the number of messages
that need to be created when compared to the approach of traversing downstream
nodes during stream processing.
2015-10-23 09:37:45 +13:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Karl Tomlinson
2d17d20fc0
bug 1207003 add GraphTime parameter to ProcessBlock() and remove GetCurrentPosition() r=padenot
...
This is immediately useful for making the track unnecessary, but will also be
required when switching to the destination node stream for tracking time (bug
1205558) because using GetCurrentPosition() on the destination node stream
would give different results depending on the stream processing order (when
called during processing of streams not strictly upstream from the destination
node).
2015-09-18 17:05:25 +12:00
Karl Tomlinson
e6d36626d2
bug 1205540 account for active inputs and skip processing when streams are inactive r=padenot
2015-09-18 00:03:00 +12:00
Karl Tomlinson
619dca8331
bug 1205540 provide querying whether engines need to continue processing even without input r=padenot
2015-09-09 08:54:03 +12:00
Carsten "Tomcat" Book
8bbb957053
Backed out 5 changesets (bug 1205540) for Assertion Failurs in m2-e10s tests on a CLOSED TREE
...
Backed out changeset e89d8182d588 (bug 1205540)
Backed out changeset abace4cdec06 (bug 1205540)
Backed out changeset b3f6e1db7233 (bug 1205540)
Backed out changeset 0d122cb34921 (bug 1205540)
Backed out changeset 4de5f87180fb (bug 1205540)
2015-09-18 16:36:33 +02:00
Karl Tomlinson
d8ada6b010
bug 1205540 account for active inputs and skip processing when streams are inactive r=padenot
2015-09-18 00:03:00 +12:00
Karl Tomlinson
df684cb0f1
bug 1205540 provide querying whether engines need to continue processing even without input r=padenot
2015-09-09 08:54:03 +12:00
Robert O'Callahan
4b795940b9
Bug 1189506. Pass AudioContext to AudioNodeStream::Create. r=karlt
2015-09-09 01:22:16 +12:00
Karl Tomlinson
ef61229089
bug 1198656 interpret null ConvolverNode mBuffer as a buffer of zeros r=padenot
...
Zero output even when normalize is set is consistent with
http://webaudio.github.io/web-audio-api/#widl-ConvolverNode-normalize
due to the specified isinf() test.
2015-08-21 17:14:14 +12:00
Karl Tomlinson
0380c42799
bug 1197028 use AudioBlock for web audio processing to reuse buffers shared downstream r=padenot
2015-09-03 19:01:50 +12:00
Karl Tomlinson
baea243614
bug 1197028 use AudioChunk::ChannelCount() r=padenot
2015-09-03 17:30:16 +12:00
Karl Tomlinson
e2a143bb32
bug 1197043 use flags to distinguish between external streams and events r=padenot
...
MediaStreamAudioDestinationNode does not need any main thread events because
mDOMStream provides GetCurrentTime to consumers.
MediaRecoder also does not use main thread current time.
2015-08-13 16:13:34 +12:00
Karl Tomlinson
2da94f3fb7
bug 1197043 move AudioNodeStream creation to stream class r=padenot
2015-08-12 11:26:24 +12:00
Karl Tomlinson
08237e3eec
bug 1186779 use ChannelFloatsForWrite() instead of const_cast r=padenot
2015-07-22 17:59:21 +12:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Karl Tomlinson
5ae5ba128e
bug 1179662 specify AudioNode::mStream as AudioNodeStream r=padenot
2015-07-02 17:36:07 +12:00
Andrea Marchesini
a497f8b747
Bug 1159290 - "Add final/override to WebAudio classes". r=padenot
2015-04-28 08:42:00 +02:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
3a822d99b4
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Ehsan Akhgari
a51ec0ffb2
Bug 1117038 - Mark virtual overridden functions as MOZ_OVERRIDE in Web Audio; r=padenot
2015-01-05 11:22:44 -05:00
Birunthan Mohanathas
417b400d55
Bug 946065 - Part 10: Move content/media/ to dom/. r=peterv
2014-10-25 20:24:36 +03:00