Descriptiondevice/bluetooth: Add I/O watcher for audio data retrieval triggered by state change.
This CL implements the state change handling and data retrieval
during BT audio streaming. BluetoothAudioSinkDataAvailable() is
added in order to deliver audio data to the user application. File
descriptor watcher operations are bound to state change events from
BluetoothMediaTransportClient. Note that the ownership of the output
file descriptor is transferred from BlueZ to
BluetoothAudioSinkChromeOS. This CL also implements Acquire/
TryAcquire of FakeBluetoothMediaTransportClient. Corresponding tests
are added to address new changes and TODOs.
BUG=441581
TEST=device_unittests --gtest_filter=*AudioSink*
Committed: https://crrev.com/512445e1c5fd77acfbce6d5540b8e938d1702f29
Cr-Commit-Position: refs/heads/master@{#320571}
Patch Set 1 #
Total comments: 54
Patch Set 2 : Moved some overrides of BluetoothAudioSinkChromeOS to its private section and fixed nits. #
Total comments: 2
Patch Set 3 : Added AcquireDelegate function and refactored Acquire/TryAcquire. #
Total comments: 2
Patch Set 4 : #Messages
Total messages: 14 (3 generated)
|