diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2014-05-26 15:16:31 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-06-01 10:17:16 +0300 |
commit | 60bcd3bcd92828ba3b4c1cb5269ef4e6dc694bb0 (patch) | |
tree | fbf172e0238c06d9ecca024b6e672b5a2ca456f8 /android/hal-audio.h | |
parent | 8f14d896d1b1b252b601313bffdb55408736df2b (diff) | |
download | bluez-60bcd3bcd92828ba3b4c1cb5269ef4e6dc694bb0.tar.gz |
android/hal-audio: Make RTP header optional
Not every codec on A2DP will use RTP so it's now optional - codec can
be defined to use it and core will take care of filling the data.
Diffstat (limited to 'android/hal-audio.h')
-rw-r--r-- | android/hal-audio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/hal-audio.h b/android/hal-audio.h index dc1a81259..be7147397 100644 --- a/android/hal-audio.h +++ b/android/hal-audio.h @@ -57,6 +57,10 @@ struct rtp_header { #endif struct media_packet { + uint8_t data[0]; +}; + +struct media_packet_rtp { struct rtp_header hdr; uint8_t data[0]; }; @@ -69,6 +73,7 @@ struct audio_input_config { struct audio_codec { uint8_t type; + bool use_rtp; int (*get_presets) (struct audio_preset *preset, size_t *len); |