Commit Graph
80 Commits
Author SHA1 Message Date
Karl Tomlinson cec505e2fc bug 1391482 use AudioChunk to store and pass PeriodicWave data to engine r=padenot
This is mostly to be consistent with other nodes so that only a single
SetBuffer method is required to pass buffers from nodes to engines.

AudioChunk also has the advantage of ThreadSharedFloatArrayBufferList that it
keeps a record of the length of the buffer in the same struct, and so this is
passed to the engine with the buffer.

SharedBuffer needs one fewer allocation than ThreadSharedFloatArrayBufferList,
but this is not a hot path.

MozReview-Commit-ID: JsLcuFdFvRO
2017-08-10 20:26:20 +12:00
Karl Tomlinson 1563bedb5d bug 1391482 keep custom oscillator data buffer on graph thread only long enough to initialize the PeriodicWave r=padenot
MozReview-Commit-ID: 6gdBZDruCc6
2017-08-10 21:03:59 +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 57dc17e541 bug 1391482 use AudioChunk to store and pass PeriodicWave data to engine r=padenot
This is mostly to be consistent with other nodes so that only a single
SetBuffer method is required to pass buffers from nodes to engines.

AudioChunk also has the advantage of ThreadSharedFloatArrayBufferList that it
keeps a record of the length of the buffer in the same struct, and so this is
passed to the engine with the buffer.

SharedBuffer needs one fewer allocation than ThreadSharedFloatArrayBufferList,
but this is not a hot path.

MozReview-Commit-ID: JsLcuFdFvRO
2017-08-10 20:26:20 +12:00
Karl Tomlinson 03fd2d58f5 bug 1391482 keep custom oscillator data buffer on graph thread only long enough to initialize the PeriodicWave r=padenot
MozReview-Commit-ID: 6gdBZDruCc6
2017-08-10 21:03:59 +12:00
Dan Minor 4d1ea30090 Bug 1373727 - Annotate Web Audio pointer to RefPtr use; r=karlt
MozReview-Commit-ID: FZwvw1YW1EM
2017-06-15 11:51:28 -04:00
Bill McCloskey ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 238bf154d5 Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
Bill McCloskey 67e8af4720 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Paul Adenot 9d682454cd Bug 1341549 - Label runnables in dom/media/webaudio/ r=billm
MozReview-Commit-ID: 1SG1KoVjivS
2017-04-04 13:47:47 +02:00
Andrea Marchesini 46205212fc Bug 1324659 - AudioParam.minValue/maxValue, r=padenot 2016-12-21 10:53:38 +01:00
Andrea Marchesini 379f51bab4 Bug 1324568 - Implement AudioScheduledSourceNode, r=padenot 2016-12-21 10:53:17 +01:00
Sebastian Hengst f949449a89 Backed out changeset d70b97db8d9e (bug 1324568) 2016-12-20 23:02:48 +01:00
Sebastian Hengst 8c949a7478 Backed out changeset f350bbf9e636 (bug 1324659) 2016-12-20 23:02:44 +01:00
Andrea Marchesini 2868a14a92 Bug 1324659 - AudioParam.minValue/maxValue, r=padenot 2016-12-20 20:20:41 +01:00
Andrea Marchesini bccef4a9ad Bug 1324568 - Implement AudioScheduledSourceNode, r=padenot 2016-12-20 20:20:41 +01:00
Andrea Marchesini c829595d68 Bug 1322883 - AudioNode constructors - part 13 - OscillatorNode, 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
Dan Minor 94f8aff299 Bug 1265405 - Use a dictionary to specify how PeriodicWave should be normalized (or not); r=padenot
MozReview-Commit-ID: IH7no48COML
2016-04-25 11:37:20 -04:00
Kyle Huey a9cf047227 Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07: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
Nathan Froyd 54dfa729a9 Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Karl Tomlinson 8835da18a7 bug 930257 finish Oscillator on processing last non-null block r=padenot 2015-10-23 09:23:52 +13:00
Julian Seward c26ba284fc Bug 1216081 - OscillatorNodeEngine::mFinalFrequency is used uninitialised. r=padenot. 2015-10-20 12:59:37 +02: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 3c550c812c bug 1210266 use parameter index instead of node callback for sending timeline events r=padenot 2015-10-01 15:48:20 +13:00
Paul Adenot 755e656205 Bug 1209904 - Optimize OscillatorNode when its frequency is not changin and it's using ::ComputeCustom. r=karlt 2015-10-01 10:52:28 +02:00
Karl Tomlinson 05321954cb bug 1205558 remove unused AudioNodeStream* aSource parameter r=padenot 2015-09-22 17:11:52 +12:00
Karl Tomlinson ca1a77e3ec bug 1205558 use destination stream for audio node engine time r=padenot 2015-09-22 16:34:45 +12:00
Paul Adenot adb4daccbb Bug 1200579 - Stop copying AudioParam timelines. r=karlt 2015-09-25 15:57:55 +02: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 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 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
Paul Adenot 1dbdce6eb6 Bug 1173016 - Cache the basic waveform PeriodicWaves. r=karlt 2015-06-15 18:16:16 +02:00
Karl Tomlinson 5ae5ba128e bug 1179662 specify AudioNode::mStream as AudioNodeStream r=padenot 2015-07-02 17:36:07 +12:00
Karl Tomlinson 9288c88f3a bug 1179662 uninline DestroyMediaStream overrides so that mStream type need not be complete r=padenot 2015-07-02 16:44:31 +12:00
Karl Tomlinson 36e5bd65dd Bug 974089 - Destroy WebAudio MediaStream when a source finishes. r=padenot 2015-06-10 13:31:29 +02:00
Ryan VanderMeulen 699f04a85f Backed out 3 changesets (bug 974089) for causing OSX/Windows test_bug867104.html permafail.
Backed out changeset 1dcfd15bb387 (bug 974089)
Backed out changeset 8c6a7d5efe3a (bug 974089)
Backed out changeset e511c79f2211 (bug 974089)

CLOSED TREE
2015-06-11 15:10:06 -04:00