1 // Copyright 2019 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 #include <string>
6 #include <vector>
7 
8 #include "chromecast/media/avsettings/avsettings_buildflags.h"
9 #include "chromecast/media/avsettings/avsettings_dummy.h"
10 #include "chromecast/public/avsettings.h"
11 #include "chromecast/public/volume_control.h"
12 
13 namespace chromecast {
14 
15 // static
Create(const std::vector<std::string> & argv)16 AvSettings* AvSettingsShlib::Create(const std::vector<std::string>& argv) {
17   return new AvSettingsDummy();
18 }
19 
20 #if BUILDFLAG(VOLUME_CONTROL_IN_AVSETTINGS_SHLIB)
21 namespace media {
22 
Initialize(const std::vector<std::string> & argv)23 void VolumeControl::Initialize(const std::vector<std::string>& argv) {}
Finalize()24 void VolumeControl::Finalize() {}
AddVolumeObserver(VolumeObserver * observer)25 void VolumeControl::AddVolumeObserver(VolumeObserver* observer) {}
RemoveVolumeObserver(VolumeObserver * observer)26 void VolumeControl::RemoveVolumeObserver(VolumeObserver* observer) {}
27 
GetVolume(AudioContentType type)28 float VolumeControl::GetVolume(AudioContentType type) {
29   return 0.0f;
30 }
31 
SetVolume(VolumeChangeSource source,AudioContentType type,float level)32 void VolumeControl::SetVolume(VolumeChangeSource source,
33                               AudioContentType type,
34                               float level) {}
35 
IsMuted(AudioContentType type)36 bool VolumeControl::IsMuted(AudioContentType type) {
37   return false;
38 }
39 
SetMuted(VolumeChangeSource source,AudioContentType type,bool muted)40 void VolumeControl::SetMuted(VolumeChangeSource source,
41                              AudioContentType type,
42                              bool muted) {}
43 
SetOutputLimit(AudioContentType type,float limit)44 void VolumeControl::SetOutputLimit(AudioContentType type, float limit) {}
45 
VolumeToDbFS(float volume)46 float VolumeControl::VolumeToDbFS(float volume) {
47   return 0.0f;
48 }
49 
DbFSToVolume(float db)50 float VolumeControl::DbFSToVolume(float db) {
51   return 0.0f;
52 }
53 
SetPowerSaveMode(bool power_save_on)54 void VolumeControl::SetPowerSaveMode(bool power_save_on) {}
55 
56 }  // namespace media
57 #endif  // BUILDFLAG(VOLUME_CONTROL_IN_AVSETTINGS_SHLIB)
58 
59 }  // namespace chromecast
60