[MediaRouter] Update MR-2-Extension's PostMessage to return boolean.
[chromium-blink-merge.git] / chromecast / media / cma / pipeline / audio_pipeline.h
blobd7284a10d7fdbca0ade888015cf075034933a15b
1 // Copyright 2014 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.
5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_AUDIO_PIPELINE_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_AUDIO_PIPELINE_H_
8 #include "base/macros.h"
9 #include "chromecast/media/cma/pipeline/av_pipeline_client.h"
11 namespace chromecast {
12 namespace media {
14 class AudioPipeline {
15 public:
16 AudioPipeline();
17 virtual ~AudioPipeline();
19 // Set the audio client.
20 virtual void SetClient(const AvPipelineClient& client) = 0;
22 // Set the stream volume.
23 // - A value of 1.0 is the neutral value.
24 // - |volume|=0.0 mutes the stream.
25 virtual void SetVolume(float volume) = 0;
27 private:
28 DISALLOW_COPY_AND_ASSIGN(AudioPipeline);
31 } // namespace media
32 } // namespace chromecast
34 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_AUDIO_PIPELINE_H_