diff options
author | mcchou <mcchou@chromium.org> | 2015-02-26 10:34:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-26 18:35:52 +0000 |
commit | 4a0cac258fddaafd18cdcd0cea53121826ab4c3a (patch) | |
tree | 59ee772939db9c58e459a992a694e7728a167fd0 /device/bluetooth/bluetooth_audio_sink.cc | |
parent | 0471c66927ca0c21a0785174ef3fe245b9908766 (diff) | |
download | chromium_src-4a0cac258fddaafd18cdcd0cea53121826ab4c3a.zip chromium_src-4a0cac258fddaafd18cdcd0cea53121826ab4c3a.tar.gz chromium_src-4a0cac258fddaafd18cdcd0cea53121826ab4c3a.tar.bz2 |
device/bluetooth: Implement Unregister() of BlueotoothAudioSinkChromeOS and disconnection-related clean-up.
This CL implements all functions related to unregistering
BluetoothAudioSinkChromeOS and cleaning up the resources, such as
media, media endpoint, media transport and transport-specific
properties. These functions will be called when a connect between
a remote device and an A2DP sink closes. The corresponding tests
are included in BluetoothAudioSinkChromeOSTest.
BUG=441581
TEST=device_unittests --gtest_filter=*AudioSink*
Review URL: https://codereview.chromium.org/939753004
Cr-Commit-Position: refs/heads/master@{#318266}
Diffstat (limited to 'device/bluetooth/bluetooth_audio_sink.cc')
-rw-r--r-- | device/bluetooth/bluetooth_audio_sink.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_audio_sink.cc b/device/bluetooth/bluetooth_audio_sink.cc index 4c9435e..75247fe 100644 --- a/device/bluetooth/bluetooth_audio_sink.cc +++ b/device/bluetooth/bluetooth_audio_sink.cc @@ -27,6 +27,9 @@ namespace { namespace device { +// static +const uint16_t BluetoothAudioSink::kInvalidVolume = 128; + BluetoothAudioSink::Options::Options() : codec(kDefaultCodec) { capabilities.assign(kDefaultCapabilities, kDefaultCapabilities + sizeof(kDefaultCapabilities)); |