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

Unified Diff: chromecast/media/cma/backend/alsa/post_processors/governor_create.cc

Issue 2958393002: Add a simple, safe gain PostProcessor. (Closed)
Patch Set: Unrelated cleanup 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/backend/alsa/post_processors/governor_create.cc
diff --git a/chromecast/media/cma/backend/alsa/post_processors/governor_create.cc b/chromecast/media/cma/backend/alsa/post_processors/governor_create.cc
new file mode 100644
index 0000000000000000000000000000000000000000..358a0eeaaba641feb198364d9272090044ba749c
--- /dev/null
+++ b/chromecast/media/cma/backend/alsa/post_processors/governor_create.cc
@@ -0,0 +1,13 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromecast/media/cma/backend/alsa/post_processors/governor.h"
+#include "chromecast/public/media/audio_post_processor_shlib.h"
+
+chromecast::media::AudioPostProcessor* AudioPostProcessorShlib_Create(
+ const std::string& config,
+ int channels) {
+ return static_cast<chromecast::media::AudioPostProcessor*>(
+ new chromecast::media::Governor(config, channels));
+}

Powered by Google App Engine
This is Rietveld 408576698