Searched refs:send_pcm_data (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/samples/bluetooth/bap_broadcast_source/src/ |
D | main.c | 152 static int16_t send_pcm_data[MAX_NUM_SAMPLES]; variable 197 uint32_t size = ring_buf_get(&source_stream->audio_ring_buf, (uint8_t *)send_pcm_data, in send_data() 198 sizeof(send_pcm_data)); in send_data() 200 if (size < sizeof(send_pcm_data)) { in send_data() 201 const size_t padding_size = sizeof(send_pcm_data) - size; in send_data() 204 memset(&((uint8_t *)send_pcm_data)[size], 0, padding_size); in send_data() 208 ret = lc3_encode(source_stream->lc3_encoder, LC3_PCM_FORMAT_S16, send_pcm_data, 1, in send_data() 218 net_buf_add_mem(buf, send_pcm_data, preset_active.qos.sdu); in send_data() 276 fill_audio_buf_sin(send_pcm_data, frame_duration_us, AUDIO_TONE_FREQUENCY_HZ, freq_hz); in init_lc3_thread() 472 for (size_t i = 0U; i < ARRAY_SIZE(send_pcm_data); i++) { in main() [all …]
|