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

Unified Diff: chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc

Issue 1642143003: [Chromecast] Log sample rate changes and tweak audio logging output. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 11 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: chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc
diff --git a/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc b/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc
index 53df6133550a2e3ddbb7d12e26d47165fc272632..b782ed359122db28465578125762105b879a8cc3 100644
--- a/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc
+++ b/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc
@@ -347,6 +347,8 @@ int StreamMixerAlsa::SetAlsaPlaybackParams() {
}
output_samples_per_second_ =
static_cast<int>(unsigned_output_samples_per_second);
+ LOG(INFO) << "Sample rate changed from " << output_samples_per_second_
kmackay 2016/01/28 23:25:41 Seems like this should be moved up above the line
jyw 2016/01/28 23:39:22 Done.
+ << " to " << unsigned_output_samples_per_second;
snd_pcm_uframes_t requested_buffer_size = alsa_buffer_size_;
RETURN_ERROR_CODE(PcmHwParamsSetBufferSizeNear, pcm_, pcm_hw_params_,

Powered by Google App Engine
This is Rietveld 408576698