diff --git a/src/classic/a2dp_source.h b/src/classic/a2dp_source.h index 48a023315..279486c2e 100644 --- a/src/classic/a2dp_source.h +++ b/src/classic/a2dp_source.h @@ -150,7 +150,7 @@ uint8_t a2dp_source_disconnect(uint16_t a2dp_cid); * @param a2dp_cid A2DP channel identifier. * @param local_seid ID of a local stream endpoint. */ -void a2dp_source_stream_endpoint_request_can_send_now(uint16_t a2dp_cid, uint8_t local_seid); +void a2dp_source_stream_endpoint_request_can_send_now(uint16_t a2dp_cid, uint8_t local_seid); /** * @brief Return maximal media payload size, does not include media header. @@ -158,7 +158,7 @@ void a2dp_source_stream_endpoint_request_can_send_now(uint16_t a2dp_cid, uint8_ * @param local_seid ID of a local stream endpoint. * @return max_media_payload_size_without_media_header */ -int a2dp_max_media_payload_size(uint16_t a2dp_cid, uint8_t local_seid); +int a2dp_max_media_payload_size(uint16_t a2dp_cid, uint8_t local_seid); /** * @brief Send media payload. @@ -171,8 +171,7 @@ int a2dp_max_media_payload_size(uint16_t a2dp_cid, uint8_t local_seid); * @param marker * @return status */ -uint8_t -a2dp_source_stream_send_media_payload_rtp(uint16_t a2dp_cid, uint8_t local_seid, uint8_t marker, uint32_t timestamp, +uint8_t a2dp_source_stream_send_media_payload_rtp(uint16_t a2dp_cid, uint8_t local_seid, uint8_t marker, uint32_t timestamp, uint8_t *payload, uint16_t payload_size); /** diff --git a/src/classic/avdtp_source.c b/src/classic/avdtp_source.c index 791f36b61..6363ae34c 100644 --- a/src/classic/avdtp_source.c +++ b/src/classic/avdtp_source.c @@ -168,8 +168,7 @@ void avdtp_source_deinit(void){ avdtp_deinit(); } -static void -avdtp_source_setup_media_header(uint8_t *media_packet, uint8_t marker, uint16_t sequence_number, uint32_t timestamp) { +static void avdtp_source_setup_media_header(uint8_t *media_packet, uint8_t marker, uint16_t sequence_number, uint32_t timestamp) { uint8_t rtp_version = 2; uint8_t padding = 0; uint8_t extension = 0; @@ -188,8 +187,7 @@ avdtp_source_setup_media_header(uint8_t *media_packet, uint8_t marker, uint16_t big_endian_store_32(media_packet, pos, ssrc); // only used for multicast } -uint8_t -avdtp_source_stream_send_media_payload_rtp(uint16_t avdtp_cid, uint8_t local_seid, uint8_t marker, uint32_t timestamp, +uint8_t avdtp_source_stream_send_media_payload_rtp(uint16_t avdtp_cid, uint8_t local_seid, uint8_t marker, uint32_t timestamp, const uint8_t *payload, uint16_t payload_size) { UNUSED(avdtp_cid); diff --git a/src/classic/avdtp_source.h b/src/classic/avdtp_source.h index d029b7fc5..aac5a070b 100644 --- a/src/classic/avdtp_source.h +++ b/src/classic/avdtp_source.h @@ -256,8 +256,7 @@ uint8_t avdtp_source_stream_send_media_packet(uint16_t avdtp_cid, uint8_t local_ * @param size * @return status */ -uint8_t -avdtp_source_stream_send_media_payload_rtp(uint16_t avdtp_cid, uint8_t local_seid, uint8_t marker, uint32_t timestamp, +uint8_t avdtp_source_stream_send_media_payload_rtp(uint16_t avdtp_cid, uint8_t local_seid, uint8_t marker, uint32_t timestamp, const uint8_t *payload, uint16_t size); /** diff --git a/src/le-audio/gatt-service/broadcast_audio_scan_service_client.h b/src/le-audio/gatt-service/broadcast_audio_scan_service_client.h index 0549754c2..968d34da2 100644 --- a/src/le-audio/gatt-service/broadcast_audio_scan_service_client.h +++ b/src/le-audio/gatt-service/broadcast_audio_scan_service_client.h @@ -158,7 +158,7 @@ typedef struct { * - GATTSERVICE_SUBEVENT_BASS_CLIENT_NOTIFICATION_COMPLETE * @param packet_handler for events */ -void broadcast_audio_scan_service_client_init(btstack_packet_handler_t packet_handler); +void broadcast_audio_scan_service_client_init(btstack_packet_handler_t packet_handler); /** * @brief Connect to BASS Service on remote device