Closed Bug 1197043 Opened 9 years ago Closed 9 years ago

use flags to distinguish between AudioNodeStreams wanting external streams and main thread events

Categories

(Core :: Web Audio, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: karlt, Assigned: karlt)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

This is mostly preparation work for bug 1196108, but there are some small advantages with just these changes.

MediaStreamAudioDestinationNode does not need any main thread events because
mDOMStream provides GetCurrentTime to consumers.

MediaRecoder also does not use main thread current time.
bug 1197043 remove unnecessary aSampleRate parameter for AudioNodeStream creation r?padenot
Attachment #8650812 - Flags: review?(padenot)
bug 1197043 rename Add/RemoveStream to Add/RemoveStreamGraphThread r?padenot
Attachment #8650813 - Flags: review?(padenot)
bug 1197043 introduce MediaStreamGraph::AddStream() r?padenot
Attachment #8650814 - Flags: review?(padenot)
bug 1197043 move AudioNodeStream creation to stream class r?padenot
Attachment #8650815 - Flags: review?(padenot)
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.
Attachment #8650816 - Flags: review?(padenot)
Comment on attachment 8650812 [details]
MozReview Request: bug 1197043 remove unnecessary aSampleRate parameter for AudioNodeStream creation r?padenot

https://reviewboard.mozilla.org/r/16701/#review15083

Ship It!
Attachment #8650812 - Flags: review?(padenot) → review+
Comment on attachment 8650814 [details]
MozReview Request: bug 1197043 introduce MediaStreamGraph::AddStream() r?padenot

https://reviewboard.mozilla.org/r/16705/#review15089

Ship It!
Attachment #8650814 - Flags: review?(padenot) → review+
Comment on attachment 8650813 [details]
MozReview Request: bug 1197043 rename Add/RemoveStream to Add/RemoveStreamGraphThread r?padenot

https://reviewboard.mozilla.org/r/16703/#review15085

Ship It!
Attachment #8650813 - Flags: review?(padenot) → review+
Attachment #8650815 - Flags: review?(padenot) → review+
Comment on attachment 8650815 [details]
MozReview Request: bug 1197043 move AudioNodeStream creation to stream class r?padenot

https://reviewboard.mozilla.org/r/16707/#review15091

Ship It!
Attachment #8650816 - Flags: review?(padenot) → review+
Comment on attachment 8650816 [details]
MozReview Request: bug 1197043 use flags to distinguish between external streams and events r?padenot

https://reviewboard.mozilla.org/r/16709/#review15081

Ship It!

::: dom/media/webaudio/AudioNodeStream.h:54
(Diff revision 1)
> -  // to an nsAudioStream for playback.
> +    // to an nsAudioStream for playback.

We need to update this comment. We don't use AudioStream to output audio anymore since last year's refactoring (we're callback driven, now).
(In reply to Paul Adenot (:padenot) from comment #11)
> > -  // to an nsAudioStream for playback.
> > +    // to an nsAudioStream for playback.
> 
> We need to update this comment. We don't use AudioStream to output audio
> anymore since last year's refactoring (we're callback driven, now).

updated as:
"to other ProcessedMediaStreams or hardware audio output."
Flags: in-testsuite-
Depends on: 1230406
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: