Commit Graph
71 Commits
Author SHA1 Message Date
Andreas Pehrson 9680281c9d Bug 1296531 - Make AudioNodeStream work with track listeners. r=padenot
MozReview-Commit-ID: ArJiDLh4kle
2016-11-17 10:19:12 +01:00
Karl Tomlinson 47227a29db bug 1391482 remove now-unused ThreadSharedFloatArrayBufferList SetBuffer() variant r=padenot
MozReview-Commit-ID: 184qw9JUONH
2017-08-10 17:49:38 +12:00
Karl Tomlinson ab777bc4ec bug 1391482 add a mechanism to pass an AudioChunk from node to engine r=padenot
MozReview-Commit-ID: Akfy9xDKzXg
2017-08-01 20:04:56 +12: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 081b723697 bug 1391482 remove now-unused ThreadSharedFloatArrayBufferList SetBuffer() variant r=padenot
MozReview-Commit-ID: 184qw9JUONH
2017-08-10 17:49:38 +12:00
Karl Tomlinson 6a89e2bfab bug 1391482 add a mechanism to pass an AudioChunk from node to engine r=padenot
MozReview-Commit-ID: Akfy9xDKzXg
2017-08-01 20:04:56 +12:00
Chris Pearce e14de67086 Bug 1388288 - Make dom/media/webaudio build non-Unified. r=padenot
MozReview-Commit-ID: Dihfqa9URpl
2017-08-08 11:38:02 +08: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
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
Xidorn Quan d29e034a84 Bug 1298756 - Use uint8_t/uint16_t as underlying type for enums from webidl. r=bz
MozReview-Commit-ID: 3uS9s5ZrPFd
2017-01-12 12:23:37 +11: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
Andreas Pehrson 2d5667b427 Bug 1259788 - Add a new disabled mode for MSG tracks. r=jesup
MozReview-Commit-ID: 1dMTR4Wmcd8
2016-08-15 14:19:42 +02:00
ctai 247106d0a0 Bug 1266646 - Move group of MediaStreamListener to a new header file. r=pehrsons
This can reduce the include header dependency. MediaStreamVideoSink will inherit from DirectMediaStreamTrackListener. But we can't use forward declaration on MediaStreamListener because the usage of nsTArray<RefPtr<MediaStreamVideoSink>>.

MozReview-Commit-ID: 328s4Kw9NvW
2016-06-30 15:07:48 +08:00
Andreas Pehrson cb934180a4 Bug 1280445 - Remove wrapper from MediaStream. r=jesup, r=padenot
MozReview-Commit-ID: CTCFloIUXKa
2016-06-29 12:27:13 +02:00
Dan Minor 8c1a04884c Bug 1261168 - Add AlignedAutoTArray type in Web Audio; r=padenot
MozReview-Commit-ID: uQfTWkzKKB
2016-05-17 15:47:56 -04:00
ctai 8352ffa4ea Bug 1266644 - Rename StreamBuffer to StreamTracks. r=jesup r=pehrsons
Rename StreamBuffer to StreamTracks. We still need a place to keep the track information in every MediaStream, even the StreamBuffer::Track::mSegment is empty.
2016-01-26 10:49:01 +08: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
Nathan Froyd 7fb57c7994 Bug 1247395 - use UniquePtr for control messages in MediaStreamGraphImpl; r=roc 2016-01-20 16:14:33 -05:00
Birunthan Mohanathas bfee0fb40c Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda d871b9515f Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas 245cd6a02f Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +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
Karl Tomlinson 04a398ac7e bug 1230406 remove invalid assertion of equality between float and int32_t r=padenot 2016-01-06 20:05:41 +13:00
Karl Tomlinson 3d52ec12c3 bug 1217625 suspend inactive AudioNodeStreams r=padenot 2015-10-23 11:38:11 +13:00
Karl Tomlinson fe2a8a688e bug 1217625 remove ADD_STREAM_SUSPENDED r=padenot
Sometimes we'll need an initial suspended count of 2, which is not supported
by this API, but this is not necessary anyway.
2015-10-22 22:14:46 +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 d6ea40d623 bug 1210280 use nullptr for silent channels in UpMixDownMixChunk r=padenot
so that AccumulateInputChunk can optimize for silent channels.
2015-09-05 11:01:54 +12:00
Karl Tomlinson 95b505be68 bug 1205558 remove DelayNodeEngine::mSource r=padenot 2015-09-29 14:39:28 +13: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
Karl Tomlinson 3e49de266e bug 864171 move "extra" time accounting for AudioContext with no nodes to destination stream r=padenot 2015-09-23 19:05:46 +12:00
Paul Adenot adb4daccbb Bug 1200579 - Stop copying AudioParam timelines. r=karlt 2015-09-25 15:57:55 +02:00
Karl Tomlinson f9c92ad97e bug 1207003 only create track for external AudioNodeStreams r=padenot
IsFinishedOnGraphThread() was unnecessary due to the !mFinished test.
2015-09-18 17:07:40 +12: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 9822f557dc bug 1207003 coallesce external output chunks when silent r=padenot
AppendAndConsumeChunk() will always append a new chunk, but AppendNullData()
will use an existing null chunk if possible.
2015-09-09 20:07:19 +12:00
Karl Tomlinson b2bc78aac8 bug 1207003 remove unnecessary EnsureTrack() call r=padenot
EnsureTrack() will be called in AdvanceOutputSegment(), if not blocked.
2015-09-09 18:41:50 +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
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
Robert O'Callahan 6a19864c6c Bug 1189506. Remove invalid assertion. r=karlt
That's nothing stopping someone passing an AudioContext time of (e.g.)
zero to AudioBufferSourceNode::Stop and OscillatorNode::Start/Stop, which
can get turned into a negative time here. Those nodes can handle negative
start/stop times just fine.
2015-09-16 16:31:12 +12:00
Robert O'Callahan 1bd70fdacf Bug 1189506. Create StreamTimeToGraphTime/GraphTimeToStreamTime that don't take account of blocking, and call them from AudioNodeStream. r=karlt 2015-09-16 16:35:16 +12:00
Robert O'Callahan 441df1414a Bug 1189506. Rename StreamTimeToGraphTime/GraphTimeToStreamTime to ...WithBlocking. r=karlt 2015-09-08 15:41:00 +12:00
Robert O'Callahan ec20017a54 Bug 1189506. Non-SourceMediaStreams in processing can only block by being finished. r=karlt 2015-09-04 17:40:30 +12:00
Robert O'Callahan 931e0c7831 Bug 1189506. Make AudioContext responsible for tracking all nodes which need to be suspended and resumed. r=padenot
This simplifies MediaStreamGraph by removing the need for it to be aware
of which AudioContext a stream belongs to.

This also makes it easier to reuse stream suspending for purposes other than
AudioContext suspend/resume.
2015-09-16 16:15:21 +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 d58b661547 bug 1203380 destroy AudioBlocks on AudioNodeStream on graph thread r=padenot 2015-09-10 15:13:45 +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