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

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

Issue 2557513002: [Chromecast] Add support for different playback rates to ALSA backend (Closed)
Patch Set: use CreateEmptyBuffer Created 4 years 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/media_pipeline_backend_alsa.cc
diff --git a/chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.cc b/chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.cc
index a98d1f73740ed0d7f45659b345c06723936c1618..d75b80add5d43492b252bdf31ace88405b5fac3a 100644
--- a/chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.cc
+++ b/chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.cc
@@ -81,9 +81,9 @@ bool MediaPipelineBackendAlsa::Resume() {
}
bool MediaPipelineBackendAlsa::SetPlaybackRate(float rate) {
- // TODO(kmackay) Implement this for rates other than 1.0.
- if (rate != 1.0)
- NOTIMPLEMENTED() << " unhandled rate: " << rate;
+ if (audio_decoder_) {
+ return audio_decoder_->SetPlaybackRate(rate);
+ }
return true;
}

Powered by Google App Engine
This is Rietveld 408576698