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

Unified Diff: chromeos/dbus/cras_audio_client.cc

Issue 1839943003: dbus changes: add SetGlobalOutputChannelRemix support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: additional size_t cast modification Created 4 years, 9 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
« no previous file with comments | « chromeos/dbus/cras_audio_client.h ('k') | chromeos/dbus/fake_cras_audio_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/cras_audio_client.cc
diff --git a/chromeos/dbus/cras_audio_client.cc b/chromeos/dbus/cras_audio_client.cc
index acb4bf7f0ff44ae3c73c9a1d259eece4ceb56352..f2ce0291f99a2b2dfc590817b55ee0dda2ebf4a6 100644
--- a/chromeos/dbus/cras_audio_client.cc
+++ b/chromeos/dbus/cras_audio_client.cc
@@ -186,6 +186,18 @@ class CrasAudioClientImpl : public CrasAudioClient {
dbus::ObjectProxy::EmptyResponseCallback());
}
+ void SetGlobalOutputChannelRemix(int32_t channels,
+ const std::vector<double>& mixer) override {
+ dbus::MethodCall method_call(cras::kCrasControlInterface,
+ cras::kSetGlobalOutputChannelRemix);
+ dbus::MessageWriter writer(&method_call);
+ writer.AppendInt32(channels);
+ writer.AppendArrayOfDoubles(mixer.data(), mixer.size());
+ cras_proxy_->CallMethod(&method_call,
+ dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
+ dbus::ObjectProxy::EmptyResponseCallback());
+ }
+
void WaitForServiceToBeAvailable(
const WaitForServiceToBeAvailableCallback& callback) override {
cras_proxy_->WaitForServiceToBeAvailable(callback);
« no previous file with comments | « chromeos/dbus/cras_audio_client.h ('k') | chromeos/dbus/fake_cras_audio_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698