Commit Graph
85 Commits
Author SHA1 Message Date
Karl Tomlinson 68a932794c bug 1391482 accept int16_t sample buffers in AudioBufferSourceNode r=padenot
MozReview-Commit-ID: I2gCBQdfOEx
2017-08-10 17:26:40 +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 243fa22cde bug 1391482 accept int16_t sample buffers in AudioBufferSourceNode r=padenot
MozReview-Commit-ID: I2gCBQdfOEx
2017-08-10 17:26:40 +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
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 cb307638b5 Bug 1322883 - AudioNode constructors - part 1 - AudioBufferSourceNode, r=padenot 2016-12-15 19:24:41 +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
Nicholas Nethercote 0550795f93 Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.
2016-08-08 10:54:47 +10:00
Randell Jesup 4c502b370a Bug 1274083: don't return early from rate changes if we overflow r=jmspeex
MozReview-Commit-ID: DVSp3VpiIJw
2016-05-20 01:53:27 -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
Dan Minor 668b4c6a4f Bug 1266405 - AudioBufferSourceNode::CopyFromBuffer should not borrow unaligned buffers; r=padenot
MozReview-Commit-ID: 82DZJ8BFWaq
2016-04-21 10:01:19 -04:00
Paul Adenot 0c15fa48d6 Bug 1241096 - Add a better memory reporting system for AudioBuffers. r=erahm
MozReview-Commit-ID: GHiauyyD3R2
2016-04-01 13:36:41 +02:00
Carsten "Tomcat" Book 62abbba184 Backed out changeset 5d5b5862ab90 (bug 1241096) for crashtest crashes 2016-04-01 09:42:07 +02:00
Paul Adenot 9868c92c43 Bug 1241096 - Add a better memory reporting system for AudioBuffers. r=erahm
MozReview-Commit-ID: GHiauyyD3R2
2016-04-01 08:27:08 +02: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 af8c91ef39 bug 1227411 add some initial logging of AudioNode API use r=padenot 2015-11-24 15:55:10 +13:00
Karl Tomlinson 56100250b3 bug 930257 finish BufferSource on processing last non-null block r=padenot
Since changes for bug 1217625, the node and downstream nodes won't be made
inactive until after downstream nodes have done their processing, and so there
is no need to wait for the first silent output block.

This essentially reverts 5c607f3f39d55544838f3111ede9e11a00d3c25e.
2015-10-23 08:55:57 +13:00
Karl Tomlinson ef7ff4f119 bug 1020370 use int64_t to avoid overflow in subsample calcs r=padenot
ratioDen can be large when playbackRate is low.

Subsample skipping is limited to uint32_t values supported by speex resampler.
2015-10-16 11:56:24 +13:00
Karl Tomlinson 79e8b9d866 bug 1020370 adjust assert to tolerate large skipFracNum r=padenot 2015-10-16 11:31:45 +13:00
Karl Tomlinson 1dad2e35aa bug 1215096 correct off-by-one error in playback position of resampled buffers r=padenot
"The behavior of an expression of the form E1 op = E2 is equivalent to E1 = E1
op E2 except that E1 is evaluated only once", which means that the subtraction
of -= was happening before conversion from double to unsigned int.

The "+ 0.5" was subtracted before the truncation toward zero, causing rounding
to nearest minus one, except when nearest was zero.
2015-10-16 01:40:07 +13:00
Karl Tomlinson 5b74a9f389 bug 1214493 restore fractional start time accidentally rounded in 13e85dc6b41b r=padenot 2015-10-15 18:56:56 +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 3c550c812c bug 1210266 use parameter index instead of node callback for sending timeline events r=padenot 2015-10-01 15:48:20 +13: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
Karl Tomlinson 70c6a93842 bug 1209286 remove now unnecessary StreamTimeToDOMTime and DOMTimeToStreamTime r=padenot 2015-09-29 10:46:43 +13: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 a871155062 bug 1207003 remove unused aStream parameter r=padenot 2015-09-18 14:58:26 +12:00
Karl Tomlinson f671199141 bug 1207003 fetch stream position once instead of three times r=padenot 2015-09-18 14:27:03 +12:00
Karl Tomlinson b7d58b98e4 bug 1206362 be careful about double -> int conversion r=padenot 2015-09-21 15:44:10 +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 d1c744403b bug 1205540 mark BufferSource finished only when producing silent output block r=padenot
This allows simpler processing of the finished state to mark the node as an
inactive input of any downstream nodes.  Otherwise the input could not be
considered inactive until after downstream nodes have finished processing,
but ProcessInput() may not be called again on finished streams.

AudioBufferSourceNode now behaves the same as OscillatorNode and similarly
to nodes that release a playing ref.
2015-09-18 00:00:17 +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