Skip to content

Commit

Permalink
Bug 1742655 - Rename AudioInputTrack to AudioProcessingTrack r=pehrsons
Browse files Browse the repository at this point in the history
Depends on D134628

Differential Revision: https://phabricator.services.mozilla.com/D134629
  • Loading branch information
ChunMinChang committed Jan 27, 2022
1 parent 6d8886d commit aa02dc8
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 143 deletions.
2 changes: 1 addition & 1 deletion dom/media/MediaManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ void GetUserMediaStreamTask::PrepareDOMStream() {
if (mAudioDevice->IsFake()) {
track = mtg->CreateSourceTrack(MediaSegment::AUDIO);
} else {
track = AudioInputTrack::Create(mtg);
track = AudioProcessingTrack::Create(mtg);
track->Suspend(); // Microphone source resumes in SetTrack
}
#else
Expand Down
4 changes: 2 additions & 2 deletions dom/media/MediaTrackGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ enum class AudioContextState : uint8_t;
* reprocess it. This is triggered automatically by the MediaTrackGraph.
*/

class AudioInputTrack;
class AudioProcessingTrack;
class AudioNodeEngine;
class AudioNodeExternalInputTrack;
class AudioNodeTrack;
Expand Down Expand Up @@ -352,7 +352,7 @@ class MediaTrack : public mozilla::LinkedListElement<MediaTrack> {
friend class MediaInputPort;
friend class AudioNodeExternalInputTrack;

virtual AudioInputTrack* AsAudioInputTrack() { return nullptr; }
virtual AudioProcessingTrack* AsAudioInputTrack() { return nullptr; }
virtual SourceMediaTrack* AsSourceTrack() { return nullptr; }
virtual ProcessedMediaTrack* AsProcessedTrack() { return nullptr; }
virtual AudioNodeTrack* AsAudioNodeTrack() { return nullptr; }
Expand Down
Loading

0 comments on commit aa02dc8

Please sign in to comment.