| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 5 #ifndef CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| 6 #define CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 6 #define CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Cast Receiver switches | 38 // Cast Receiver switches |
| 39 extern const char kAcceptResourceProvider[]; | 39 extern const char kAcceptResourceProvider[]; |
| 40 | 40 |
| 41 // ALSA-based CMA switches. (Only valid for audio products.) | 41 // ALSA-based CMA switches. (Only valid for audio products.) |
| 42 extern const char kAlsaOutputBufferSize[]; | 42 extern const char kAlsaOutputBufferSize[]; |
| 43 extern const char kAlsaOutputPeriodSize[]; | 43 extern const char kAlsaOutputPeriodSize[]; |
| 44 extern const char kAlsaOutputStartThreshold[]; | 44 extern const char kAlsaOutputStartThreshold[]; |
| 45 extern const char kAlsaOutputAvailMin[]; | 45 extern const char kAlsaOutputAvailMin[]; |
| 46 extern const char kAlsaCheckCloseTimeout[]; | 46 extern const char kAlsaCheckCloseTimeout[]; |
| 47 extern const char kAlsaNumOutputChannels[]; | |
| 48 extern const char kAlsaFixedOutputSampleRate[]; | 47 extern const char kAlsaFixedOutputSampleRate[]; |
| 49 | 48 |
| 50 } // namespace switches | 49 } // namespace switches |
| 51 | 50 |
| 52 namespace chromecast { | 51 namespace chromecast { |
| 53 | 52 |
| 54 // Gets boolean value from switch |switch_string|. | 53 // Gets boolean value from switch |switch_string|. |
| 55 // --|switch_string| -> true | 54 // --|switch_string| -> true |
| 56 // --|switch_string|="true" -> true | 55 // --|switch_string|="true" -> true |
| 57 // --|switch_string|="false" -> false | 56 // --|switch_string|="false" -> false |
| 58 // no switch named |switch_string| -> |default_value| | 57 // no switch named |switch_string| -> |default_value| |
| 59 bool GetSwitchValueBoolean(const std::string& switch_string, | 58 bool GetSwitchValueBoolean(const std::string& switch_string, |
| 60 const bool default_value); | 59 const bool default_value); |
| 61 | 60 |
| 62 } // namespace chromecast | 61 } // namespace chromecast |
| 63 | 62 |
| 64 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 63 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| OLD | NEW |