#include "third_party/blink/renderer/platform/webrtc/peer_connection_remote_audio_source.h"
#include <string>
#include <utility>
#include "base/check_op.h"
#include "base/strings/stringprintf.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_glitch_info.h"
#include "third_party/blink/public/platform/modules/webrtc/webrtc_logging.h"
namespace blink {
namespace {
void* const kPeerConnectionRemoteTrackIdentifier = …;
void SendLogMessage(const std::string& message) { … }
}
PeerConnectionRemoteAudioTrack::PeerConnectionRemoteAudioTrack(
scoped_refptr<webrtc::AudioTrackInterface> track_interface)
: … { … }
PeerConnectionRemoteAudioTrack::~PeerConnectionRemoteAudioTrack() { … }
PeerConnectionRemoteAudioTrack* PeerConnectionRemoteAudioTrack::From(
MediaStreamAudioTrack* track) { … }
void PeerConnectionRemoteAudioTrack::SetEnabled(bool enabled) { … }
void* PeerConnectionRemoteAudioTrack::GetClassIdentifier() const { … }
PeerConnectionRemoteAudioSource::PeerConnectionRemoteAudioSource(
scoped_refptr<webrtc::AudioTrackInterface> track_interface,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
PeerConnectionRemoteAudioSource::~PeerConnectionRemoteAudioSource() { … }
std::unique_ptr<MediaStreamAudioTrack>
PeerConnectionRemoteAudioSource::CreateMediaStreamAudioTrack(
const std::string& id) { … }
bool PeerConnectionRemoteAudioSource::EnsureSourceIsStarted() { … }
void PeerConnectionRemoteAudioSource::EnsureSourceIsStopped() { … }
void PeerConnectionRemoteAudioSource::OnData(const void* audio_data,
int bits_per_sample,
int sample_rate,
size_t number_of_channels,
size_t number_of_frames) { … }
}