blob: 6e1c6470b82cf24e0bb34503b9084a771c549d3d [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 "content/renderer/media_recorder/audio_track_encoder.h"
namespace content {
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 content