mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
avdtp source: remove unused api call
This commit is contained in:
parent
af68b735bb
commit
4ae2f2585c
@ -254,14 +254,6 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
|
||||
avdtp_packet_handler(packet_type, channel, packet, size, &avdtp_source_context);
|
||||
}
|
||||
|
||||
void avdtp_set_fill_audio_ring_buffer_timeout_ms(avdtp_stream_endpoint_t * stream_endpoint, uint32_t timeout_ms){
|
||||
if (!stream_endpoint){
|
||||
printf("avdtp_set_fill_audio_ring_buffer_timeout_ms: stream_endpoint does not exist\n");
|
||||
return;
|
||||
}
|
||||
stream_endpoint->fill_audio_ring_buffer_timeout_ms = timeout_ms;
|
||||
}
|
||||
|
||||
void avdtp_source_init(void){
|
||||
avdtp_source_context.stream_endpoints = NULL;
|
||||
avdtp_source_context.connections = NULL;
|
||||
|
@ -165,8 +165,6 @@ void avdtp_source_stop_stream(uint16_t con_handle, uint8_t acp_seid);
|
||||
|
||||
avdtp_stream_endpoint_t * avdtp_source_create_stream_endpoint(avdtp_sep_type_t sep_type, avdtp_media_type_t media_type);
|
||||
|
||||
void avdtp_set_fill_audio_ring_buffer_timeout_ms(avdtp_stream_endpoint_t * stream_endpoint, uint32_t timeout_ms);
|
||||
|
||||
/* API_END */
|
||||
|
||||
#if defined __cplusplus
|
||||
|
@ -607,7 +607,6 @@ static void avdtp_source_stream_data_stop(avdtp_stream_endpoint_t * stream_endpo
|
||||
printf("stream_endpoint in wrong state %d\n", stream_endpoint->state);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void stdin_process(btstack_data_source_t *ds, btstack_data_source_callback_type_t callback_type){
|
||||
@ -711,7 +710,6 @@ int btstack_main(int argc, const char * argv[]){
|
||||
gap_discoverable_control(1);
|
||||
gap_set_class_of_device(0x200408);
|
||||
|
||||
avdtp_set_fill_audio_ring_buffer_timeout_ms(local_stream_endpoint, 50);
|
||||
memset(audio_samples_storage, 0, sizeof(audio_samples_storage));
|
||||
memset(sbc_samples_storage, 0, sizeof(sbc_samples_storage));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user