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

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: sample rate logging fix 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..308289235aed32527994114476cb1605aa70e559 100644
--- a/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc
+++ b/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc
@@ -345,6 +345,8 @@ int StreamMixerAlsa::SetAlsaPlaybackParams() {
<< unsigned_output_samples_per_second
<< " Hz). This may lead to lower audio quality.";
}
+ LOG(INFO) << "Sample rate changed from " << output_samples_per_second_
+ << " to " << unsigned_output_samples_per_second;
output_samples_per_second_ =
static_cast<int>(unsigned_output_samples_per_second);

Powered by Google App Engine
This is Rietveld 408576698