OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "chromecast/media/cma/backend/alsa/post_processors/governor.h" | 5 #include "chromecast/media/cma/backend/alsa/post_processors/governor.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 68 } |
69 return 1.0; | 69 return 1.0; |
70 } | 70 } |
71 | 71 |
72 void Governor::SetSlewTimeMsForTest(int slew_time_ms) { | 72 void Governor::SetSlewTimeMsForTest(int slew_time_ms) { |
73 slew_volume_.SetMaxSlewTimeMs(slew_time_ms); | 73 slew_volume_.SetMaxSlewTimeMs(slew_time_ms); |
74 } | 74 } |
75 | 75 |
76 } // namespace media | 76 } // namespace media |
77 } // namespace chromecast | 77 } // namespace chromecast |
78 | |
79 chromecast::media::AudioPostProcessor* AudioPostProcessorShlib_Create( | |
80 const std::string& config, | |
81 int channels) { | |
82 return static_cast<chromecast::media::AudioPostProcessor*>( | |
83 new chromecast::media::Governor(config, channels)); | |
84 } | |
OLD | NEW |