diff --git a/test/le_audio/le_audio_broadcast_source.c b/test/le_audio/le_audio_broadcast_source.c index bd5a5ad5b..4b5ba4ad5 100644 --- a/test/le_audio/le_audio_broadcast_source.c +++ b/test/le_audio/le_audio_broadcast_source.c @@ -457,50 +457,13 @@ static void send_iso_packet(uint8_t bis_index) { packet_sequence_numbers[bis_index]++; } - -static void encode_and_send(uint8_t bis_index){ - encode(bis_index); - send_iso_packet(bis_index); -} - -static void try_send(void){ - if (app_state != APP_STREAMING) return; - - bool all_can_send = true; +static void generate_audio_and_encode(void){ uint8_t i; - for (i=0; i it sends at half speed for stereo configuration - if (all_can_send) { - if (next_sender == 0) { - generate_audio(); - } - bis_can_send[next_sender] = false; - encode_and_send(next_sender); - next_sender = (num_bis - 1) - next_sender; - } -#else - // check if next audio frame should be produced and send - if (all_can_send){ - generate_audio(); - for (i=0; i= 3){ - uint16_t num_handles = packet[2]; - if (size != (3u + num_handles * 4u)) break; - uint16_t offset = 3; - uint16_t i; - for (i=0; i