summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/cras_audio_client.h
diff options
context:
space:
mode:
authorjennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 03:28:22 +0000
committerjennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 03:28:22 +0000
commitd7b0883443b3b672a486aedb14db7dcfb7ad0d56 (patch)
treeaacb61a97b731d7b7b6552413d53f45037917000 /chromeos/dbus/cras_audio_client.h
parent9eb24cf5d1bc44da2d5318fb6794630264ee93cc (diff)
downloadchromium_src-d7b0883443b3b672a486aedb14db7dcfb7ad0d56.zip
chromium_src-d7b0883443b3b672a486aedb14db7dcfb7ad0d56.tar.gz
chromium_src-d7b0883443b3b672a486aedb14db7dcfb7ad0d56.tar.bz2
Implement new audio handler which talks to the new audio dbus apis, and adds a new AudioClientRestarted signal in CrasAudioClient.
BUG=160311,232032 TBR=sky TBR=battre Review URL: https://codereview.chromium.org/14314002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195067 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/cras_audio_client.h')
-rw-r--r--chromeos/dbus/cras_audio_client.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/chromeos/dbus/cras_audio_client.h b/chromeos/dbus/cras_audio_client.h
index cf12fa2..75e9e7d 100644
--- a/chromeos/dbus/cras_audio_client.h
+++ b/chromeos/dbus/cras_audio_client.h
@@ -24,13 +24,29 @@ class CHROMEOS_EXPORT CrasAudioClient {
// Interface for observing changes from the cras audio changes.
class Observer {
public:
- // Called when audio output device volume changed.
+ // Called when cras audio client starts or re-starts, which happens when
+ // cros device powers up or restarted.
+ virtual void AudioClientRestarted();
+
+ // Called when audio output device volume changed to new value of |volume|.
virtual void OutputVolumeChanged(int volume);
+
+ // Called whne audio output mute state changed to new state of |mute_on|.
virtual void OutputMuteChanged(bool mute_on);
+
+ // Called when audio input gain changeg to new value of |gain|.
virtual void InputGainChanged(int gain);
+
+ // Called when audio input mute state changed to new state of |mute_on|.
virtual void InputMuteChanged(bool mute_on);
+
+ // Called when audio nodes change.
virtual void NodesChanged();
+
+ // Called when active audio output node changed to new node with |node_id|.
virtual void ActiveOutputNodeChanged(uint64 node_id);
+
+ // Called when active audio input node changed to new node with |node_id|.
virtual void ActiveInputNodeChanged(uint64 node_id);
protected: