Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: content/renderer/media/webrtc_local_audio_track.cc

Issue 1703473002: Make AudioOutputDevice restartable and reinitializable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new_mixing
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc_local_audio_track.cc
diff --git a/content/renderer/media/webrtc_local_audio_track.cc b/content/renderer/media/webrtc_local_audio_track.cc
index cb48668eaeccc09a670c0a150b5d439e8d515778..78e7bac6f28790b38f34fc8bf20b31a959731beb 100644
--- a/content/renderer/media/webrtc_local_audio_track.cc
+++ b/content/renderer/media/webrtc_local_audio_track.cc
@@ -17,6 +17,8 @@
#include "content/renderer/media/webrtc/webrtc_local_audio_track_adapter.h"
#include "content/renderer/media/webrtc_audio_capturer.h"
+#include "base/debug/stack_trace.h"
+
namespace content {
WebRtcLocalAudioTrack::WebRtcLocalAudioTrack(
@@ -54,6 +56,14 @@ media::AudioParameters WebRtcLocalAudioTrack::GetOutputFormat() const {
void WebRtcLocalAudioTrack::Capture(const media::AudioBus& audio_bus,
base::TimeTicks estimated_capture_time,
bool force_report_nonzero_energy) {
+/*
+ static bool first_time = true;
+ if (first_time) {
+ first_time = false;
+ base::debug::StackTrace st;
+ st.Print();
+ }
+*/
DCHECK(capture_thread_checker_.CalledOnValidThread());
DCHECK(!estimated_capture_time.is_null());
@@ -99,6 +109,14 @@ void WebRtcLocalAudioTrack::Capture(const media::AudioBus& audio_bus,
void WebRtcLocalAudioTrack::OnSetFormat(
const media::AudioParameters& params) {
+ printf("******* WebRtcLocalAudioTrack::OnSetFormat %p\n", this);
+// static bool first_time = true;
+// if (first_time) {
+// first_time = false;
+// base::debug::StackTrace st;
+// st.Print();
+// }
+
DVLOG(1) << "WebRtcLocalAudioTrack::OnSetFormat()";
// If the source is restarted, we might have changed to another capture
// thread.

Powered by Google App Engine
This is Rietveld 408576698