| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_modem</code> API | 5 // Use the <code>chrome.audio_modem</code> API |
| 6 // to transmit and receive short tokens over audio. | 6 // to transmit and receive short tokens over audio. |
| 7 [use_movable_types=true]namespace audioModem { | 7 namespace audioModem { |
| 8 // The audio bands supported. | 8 // The audio bands supported. |
| 9 enum Audioband { | 9 enum Audioband { |
| 10 // Audible (up to 3 kHz) | 10 // Audible (up to 3 kHz) |
| 11 audible, | 11 audible, |
| 12 // Inaudible (18-20 kHz) | 12 // Inaudible (18-20 kHz) |
| 13 inaudible | 13 inaudible |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 // Details for how a token is encoded in audio. | 16 // Details for how a token is encoded in audio. |
| 17 dictionary TokenEncoding { | 17 dictionary TokenEncoding { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 interface Events { | 78 interface Events { |
| 79 // Audio tokens have been received. | 79 // Audio tokens have been received. |
| 80 static void onReceived(ReceivedToken[] tokens); | 80 static void onReceived(ReceivedToken[] tokens); |
| 81 // Transmit could not be confirmed. | 81 // Transmit could not be confirmed. |
| 82 // The speaker volume might be too low. | 82 // The speaker volume might be too low. |
| 83 static void onTransmitFail(Audioband band); | 83 static void onTransmitFail(Audioband band); |
| 84 }; | 84 }; |
| 85 }; | 85 }; |
| 86 | 86 |
| OLD | NEW |