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

Unified Diff: chromecast/media/cma/backend/audio_decoder_wrapper.cc

Issue 2712883006: [Chromecast] Add new volume control API to CastMediaShlib (Closed)
Patch Set: rebase Created 3 years, 9 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/audio_decoder_wrapper.cc
diff --git a/chromecast/media/cma/backend/audio_decoder_wrapper.cc b/chromecast/media/cma/backend/audio_decoder_wrapper.cc
deleted file mode 100644
index eff40d3e1dc98c7aa517e1397929109e273cf882..0000000000000000000000000000000000000000
--- a/chromecast/media/cma/backend/audio_decoder_wrapper.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chromecast/media/cma/backend/audio_decoder_wrapper.h"
-
-#include "base/logging.h"
-
-namespace chromecast {
-namespace media {
-
-AudioDecoderWrapper::AudioDecoderWrapper(
- MediaPipelineBackend::AudioDecoder* audio_decoder)
- : audio_decoder_(audio_decoder),
- stream_type_volume_(1.0),
- stream_volume_(1.0) {
- DCHECK(audio_decoder_);
-}
-
-AudioDecoderWrapper::~AudioDecoderWrapper() {
-}
-
-void AudioDecoderWrapper::SetDelegate(Delegate* delegate) {
- audio_decoder_->SetDelegate(delegate);
-}
-
-MediaPipelineBackend::BufferStatus AudioDecoderWrapper::PushBuffer(
- CastDecoderBuffer* buffer) {
- return audio_decoder_->PushBuffer(buffer);
-}
-
-void AudioDecoderWrapper::GetStatistics(Statistics* statistics) {
- audio_decoder_->GetStatistics(statistics);
-}
-
-bool AudioDecoderWrapper::SetConfig(const AudioConfig& config) {
- return audio_decoder_->SetConfig(config);
-}
-
-bool AudioDecoderWrapper::SetVolume(float multiplier) {
- stream_volume_ = multiplier;
- return audio_decoder_->SetVolume(stream_volume_ * stream_type_volume_);
-}
-
-AudioDecoderWrapper::RenderingDelay AudioDecoderWrapper::GetRenderingDelay() {
- return audio_decoder_->GetRenderingDelay();
-}
-
-bool AudioDecoderWrapper::SetStreamTypeVolume(float stream_type_volume) {
- stream_type_volume_ = stream_type_volume;
- return audio_decoder_->SetVolume(stream_volume_ * stream_type_volume_);
-}
-
-} // namespace media
-} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698