X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchromeos%2Fdbus%2Fcras_audio_client.h;h=230b868ce94201bd68a12ceb9cc3adf841c1c99a;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=356c5ce3f99842648c87f9dca4b662b8c83ec5b7;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chromeos/dbus/cras_audio_client.h b/src/chromeos/dbus/cras_audio_client.h index 356c5ce..230b868 100644 --- a/src/chromeos/dbus/cras_audio_client.h +++ b/src/chromeos/dbus/cras_audio_client.h @@ -92,9 +92,29 @@ class CHROMEOS_EXPORT CrasAudioClient : public DBusClient { // Sets the active output node to |node_id|. virtual void SetActiveOutputNode(uint64 node_id) = 0; - // Sets the active input node to |node_id|. + // Sets the primary active input node to |node_id|. virtual void SetActiveInputNode(uint64 node_id) = 0; + // Adds input node |node_id| to the active input list. This is used to add + // an additional active input node besides the one set by SetActiveInputNode. + // Note that this action will not trigger an ActiveInputNodeChanged event and + // nothing will happen if the |node_id| has already been set as active. + virtual void AddActiveInputNode(uint64 node_id) = 0; + + // Removes input node |node_id| from the active input list. This is used for + // removing an active input node added by AddActiveInputNode. + virtual void RemoveActiveInputNode(uint64 node_id) = 0; + + // Adds input node |node_id| to the active outputs list. This is used to add + // an additional active output node besides the one set by SetActiveInputNode. + // Note that this action will not trigger an ActiveOutputNodeChanged event + // and nothing will happen if the |node_id| has already been set as active. + virtual void AddActiveOutputNode(uint64 node_id) = 0; + + // Removes output node |node_id| from the active output list. This is used for + // removing an active output node added by AddActiveOutputNode. + virtual void RemoveActiveOutputNode(uint64 node_id) = 0; + // Creates the instance. static CrasAudioClient* Create();