mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
use recommended SCO packet size of 24 frames for single channel
This commit is contained in:
parent
8961322356
commit
800f1352ca
@ -115,7 +115,7 @@ static void try_send_sco(void){
|
|||||||
// printf("try_send_sco, cannot send now\n");
|
// printf("try_send_sco, cannot send now\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const int frames_per_packet = 180;
|
const int frames_per_packet = 24;
|
||||||
hci_reserve_packet_buffer();
|
hci_reserve_packet_buffer();
|
||||||
uint8_t * sco_packet = hci_get_outgoing_packet_buffer();
|
uint8_t * sco_packet = hci_get_outgoing_packet_buffer();
|
||||||
// set handle + flags
|
// set handle + flags
|
||||||
@ -216,6 +216,10 @@ int btstack_main(int argc, const char * argv[]){
|
|||||||
compute_signal();
|
compute_signal();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// 8-bit, 2's complement (== int8_t)
|
||||||
|
// 16-bit samples probably required for USB:
|
||||||
|
// hci_set_sco_voice_setting(0x0060);
|
||||||
|
|
||||||
hci_register_sco_packet_handler(&sco_packet_handler);
|
hci_register_sco_packet_handler(&sco_packet_handler);
|
||||||
|
|
||||||
hci_discoverable_control(1);
|
hci_discoverable_control(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user