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

Unified Diff: device/bluetooth/bluetooth_audio_sink.h

Issue 1034893002: device/bluetooth: Add read_mtu as an argument of BluetoothAudioSinkDataAvailable. (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 c7de6072240f0f63e9e462fc12197f66007fa199..37359256c3c60cf13965b57f8539c352bf09efb0 100644
--- a/device/bluetooth/bluetooth_audio_sink.h
+++ b/device/bluetooth/bluetooth_audio_sink.h
@@ -75,12 +75,14 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAudioSink
// 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.
+ // is the number of bytes in |data|. |read_mtu| is the max size of the RTP
+ // packet. 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;
+ size_t size,
+ uint16_t read_mtu) = 0;
};
// The ErrorCallback is used for the methods that can fail in which case it

Powered by Google App Engine
This is Rietveld 408576698