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

Side by Side Diff: chromecast/media/cma/backend/alsa/post_processors/governor.cc

Issue 2958393002: Add a simple, safe gain PostProcessor. (Closed)
Patch Set: Combine cma/backend/alsa tests into a single target Created 3 years, 5 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698