mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-14 00:40:57 +00:00
avdtp/a2dp: fix bitrate type in aac configuration events
This commit is contained in:
parent
e43d1938b9
commit
cf789a7843
@ -1973,7 +1973,7 @@ typedef uint8_t sm_key_t[16];
|
||||
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 0x15
|
||||
|
||||
/**
|
||||
* @format 12111113111
|
||||
* @format 12111113131
|
||||
* @param subevent_code
|
||||
* @param avdtp_cid
|
||||
* @param local_seid
|
||||
@ -2125,7 +2125,7 @@ typedef uint8_t sm_key_t[16];
|
||||
#define A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AUDIO_CONFIGURATION 0x03
|
||||
|
||||
/**
|
||||
* @format 12111113111
|
||||
* @format 12111113131
|
||||
* @param subevent_code
|
||||
* @param a2dp_cid
|
||||
* @param local_seid
|
||||
|
@ -6187,10 +6187,10 @@ static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration
|
||||
* @brief Get field bit_rate from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
|
||||
* @param event packet
|
||||
* @return bit_rate
|
||||
* @note: btstack_type 1
|
||||
* @note: btstack_type 3
|
||||
*/
|
||||
static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){
|
||||
return event[14];
|
||||
static inline uint32_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_bit_rate(const uint8_t * event){
|
||||
return little_endian_read_24(event, 14);
|
||||
}
|
||||
/**
|
||||
* @brief Get field vbr from event A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_MPEG_AAC_CONFIGURATION
|
||||
@ -6199,7 +6199,7 @@ static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t a2dp_subevent_signaling_media_codec_mpeg_aac_configuration_get_vbr(const uint8_t * event){
|
||||
return event[15];
|
||||
return event[17];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user