#include "third_party/blink/renderer/modules/mediastream/local_media_stream_audio_source.h"
#include <utility>
#include "base/strings/stringprintf.h"
#include "base/task/single_thread_task_runner.h"
#include "media/audio/audio_source_parameters.h"
#include "third_party/blink/public/mojom/mediastream/media_stream.mojom-blink.h"
#include "third_party/blink/public/platform/modules/webrtc/webrtc_logging.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
namespace blink {
LocalMediaStreamAudioSource::LocalMediaStreamAudioSource(
LocalFrame* consumer_frame,
const MediaStreamDevice& device,
const int* requested_buffer_size,
bool disable_local_echo,
bool enable_system_echo_cancellation,
ConstraintsRepeatingCallback started_callback,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
LocalMediaStreamAudioSource::~LocalMediaStreamAudioSource() { … }
bool LocalMediaStreamAudioSource::EnsureSourceIsStarted() { … }
void LocalMediaStreamAudioSource::EnsureSourceIsStopped() { … }
void LocalMediaStreamAudioSource::OnCaptureStarted() { … }
void LocalMediaStreamAudioSource::Capture(
const media::AudioBus* audio_bus,
base::TimeTicks audio_capture_time,
const media::AudioGlitchInfo& glitch_info,
double volume,
bool key_pressed) { … }
void LocalMediaStreamAudioSource::OnCaptureError(
media::AudioCapturerSource::ErrorCode code,
const std::string& why) { … }
void LocalMediaStreamAudioSource::OnCaptureMuted(bool is_muted) { … }
void LocalMediaStreamAudioSource::ChangeSourceImpl(
const MediaStreamDevice& new_device) { … }
EchoCancellationType;
std::optional<blink::AudioProcessingProperties>
LocalMediaStreamAudioSource::GetAudioProcessingProperties() const { … }
}