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

Side by Side Diff: chromecast/media/cma/backend/audio_decoder_wrapper.h

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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_DECODER_WRAPPER_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_DECODER_WRAPPER_H_
7
8 #include "base/macros.h"
9 #include "chromecast/public/media/media_pipeline_backend.h"
10
11 namespace chromecast {
12 namespace media {
13
14 class AudioDecoderWrapper : public MediaPipelineBackend::AudioDecoder {
15 public:
16 explicit AudioDecoderWrapper(
17 MediaPipelineBackend::AudioDecoder* audio_decoder);
18 ~AudioDecoderWrapper() override;
19
20 // MediaPipelineBackend::AudioDecoder implementation:
21 void SetDelegate(Delegate* delegate) override;
22 MediaPipelineBackend::BufferStatus PushBuffer(
23 CastDecoderBuffer* buffer) override;
24 void GetStatistics(Statistics* statistics) override;
25 bool SetConfig(const AudioConfig& config) override;
26 bool SetVolume(float multiplier) override;
27 RenderingDelay GetRenderingDelay() override;
28
29 bool SetStreamTypeVolume(float stream_type_volume);
30
31 private:
32 MediaPipelineBackend::AudioDecoder* const audio_decoder_;
33 float stream_type_volume_;
34 float stream_volume_;
35
36 DISALLOW_COPY_AND_ASSIGN(AudioDecoderWrapper);
37 };
38
39 } // namespace media
40 } // namespace chromecast
41
42 #endif // CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_DECODER_WRAPPER_H_
OLDNEW
« no previous file with comments | « chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc ('k') | chromecast/media/cma/backend/audio_decoder_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698