blob: 726e4a62afe23fc7819015ce90c8a447d5f6dd10 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/mediarecorder/audio_track_encoder.h"
namespace blink {
AudioTrackEncoder::AudioTrackEncoder(OnEncodedAudioCB on_encoded_audio_cb)
: paused_(false), on_encoded_audio_cb_(std::move(on_encoded_audio_cb)) {
// AudioTrackEncoder is constructed on the thread that ATR lives on, but
// should operate only on the encoder thread after that. Reset
// |encoder_thread_checker_| here, as the next call to CalledOnValidThread()
// will be from the encoder thread.
AudioTrackEncoder::~AudioTrackEncoder() {}
} // namespace blink