Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: device/bluetooth/bluetooth_audio_sink.h

Issue 993273002: device/bluetooth: Add I/O watcher for audio data retrieval triggered by state change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_audio_sink.h
diff --git a/device/bluetooth/bluetooth_audio_sink.h b/device/bluetooth/bluetooth_audio_sink.h
index 6abb8a5d14e43909ab140d00845ff152df95fa09..c7de6072240f0f63e9e462fc12197f66007fa199 100644
--- a/device/bluetooth/bluetooth_audio_sink.h
+++ b/device/bluetooth/bluetooth_audio_sink.h
@@ -73,9 +73,14 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAudioSink
BluetoothAudioSink* audio_sink,
uint16_t volume) = 0;
- // TODO(mcchou): Add method to monitor the availability of audio data during
- // the streaming. This method should associate with BluetoothAudioSink
- // specific IOBuffer wrapping fd, read_mtu and write_mtu.
+ // Called when there is audio data available. |audio_sink| indicates the
+ // object being changed. |data| is the pointer to the audio data and |size|
+ // is the number of bytes in |data|. This method provides the raw audio data
+ // which hasn't been processed, so RTP assembling and SBC decoding need to
+ // be handled in order to get PCM data.
+ virtual void BluetoothAudioSinkDataAvailable(BluetoothAudioSink* audio_sink,
+ char* data,
+ size_t size) = 0;
};
// The ErrorCallback is used for the methods that can fail in which case it
« no previous file with comments | « chromeos/dbus/fake_bluetooth_media_transport_client.cc ('k') | device/bluetooth/bluetooth_audio_sink_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698