| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 STATE_INVALID, // BluetoothAdapter not presented or not powered. | 33 STATE_INVALID, // BluetoothAdapter not presented or not powered. |
| 34 STATE_DISCONNECTED, // Not connected. | 34 STATE_DISCONNECTED, // Not connected. |
| 35 STATE_IDLE, // Connected but not streaming. | 35 STATE_IDLE, // Connected but not streaming. |
| 36 STATE_PENDING, // Connected, streaming but not acquired. | 36 STATE_PENDING, // Connected, streaming but not acquired. |
| 37 STATE_ACTIVE, // Connected, streaming and acquired. | 37 STATE_ACTIVE, // Connected, streaming and acquired. |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 // Possible types of error raised by Audio Sink object. | 40 // Possible types of error raised by Audio Sink object. |
| 41 enum ErrorCode { | 41 enum ErrorCode { |
| 42 ERROR_UNSUPPORTED_PLATFORM, // A2DP sink not supported on current platform. | 42 ERROR_UNSUPPORTED_PLATFORM, // A2DP sink not supported on current platform. |
| 43 ERROR_INVALID_ADAPTER, // BluetoothAdapter not presented/powered. | 43 ERROR_INVALID_ADAPTER, // BluetoothAdapter not present/powered. |
| 44 ERROR_NOT_REGISTERED, // BluetoothAudioSink not registered. | 44 ERROR_NOT_REGISTERED, // BluetoothAudioSink not registered. |
| 45 ERROR_NOT_UNREGISTERED, // BluetoothAudioSink not unregistered. |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 // Options to configure an A2DP audio sink. | 48 // Options to configure an A2DP audio sink. |
| 48 struct Options { | 49 struct Options { |
| 49 Options(); | 50 Options(); |
| 50 ~Options(); | 51 ~Options(); |
| 51 | 52 |
| 52 uint8_t codec; | 53 uint8_t codec; |
| 53 std::vector<uint8_t> capabilities; | 54 std::vector<uint8_t> capabilities; |
| 54 }; | 55 }; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // unregistered even if the user applications fail to do so. | 106 // unregistered even if the user applications fail to do so. |
| 106 virtual ~BluetoothAudioSink(); | 107 virtual ~BluetoothAudioSink(); |
| 107 | 108 |
| 108 private: | 109 private: |
| 109 DISALLOW_COPY_AND_ASSIGN(BluetoothAudioSink); | 110 DISALLOW_COPY_AND_ASSIGN(BluetoothAudioSink); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace device | 113 } // namespace device |
| 113 | 114 |
| 114 #endif // DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ | 115 #endif // DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ |
| OLD | NEW |