OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // Use the <code>chrome.audio</code> API to query audio device configuration and |
| 6 // be notified when it changes. |
5 namespace audio { | 7 namespace audio { |
6 | 8 |
7 dictionary OutputDeviceInfo { | 9 dictionary OutputDeviceInfo { |
8 // The unique identifier of the audio output device. | 10 // The unique identifier of the audio output device. |
9 DOMString id; | 11 DOMString id; |
10 // The user-friendly name (e.g. "Bose Amplifier"). | 12 // The user-friendly name (e.g. "Bose Amplifier"). |
11 DOMString name; | 13 DOMString name; |
12 // True if this is the current active device. | 14 // True if this is the current active device. |
13 boolean isActive; | 15 boolean isActive; |
14 // True if this is muted. | 16 // True if this is muted. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 SetPropertiesCallback callback); | 62 SetPropertiesCallback callback); |
61 }; | 63 }; |
62 | 64 |
63 interface Events { | 65 interface Events { |
64 // Fired when anything changes to the audio device configuration. | 66 // Fired when anything changes to the audio device configuration. |
65 // TODO(hshi): as suggested by mpcomplete this should pass down the same | 67 // TODO(hshi): as suggested by mpcomplete this should pass down the same |
66 // data as GetInfoCallback. Implement this once we have getInfo working. | 68 // data as GetInfoCallback. Implement this once we have getInfo working. |
67 static void onDeviceChanged(); | 69 static void onDeviceChanged(); |
68 }; | 70 }; |
69 }; | 71 }; |
OLD | NEW |