Lines Matching refs:streams
146 } streams[CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT]; variable
280 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init_lc3_thread()
282 streams[i].lc3_encoder = lc3_setup_encoder(frame_duration_us, freq_hz, 0, in init_lc3_thread()
283 &streams[i].lc3_encoder_mem); in init_lc3_thread()
285 if (streams[i].lc3_encoder == NULL) { in init_lc3_thread()
291 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init_lc3_thread()
294 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init_lc3_thread()
295 send_data(&streams[i]); in init_lc3_thread()
337 for (size_t i = 0U; i < MIN(ARRAY_SIZE(streams), 2); i++) { in data_received()
339 ring_buf_put(&(streams[i].audio_ring_buf), (uint8_t *)(usb_pcm_data[i]), in data_received()
345 ring_buf_capacity_get(&(streams[i].audio_ring_buf))); in data_received()
409 stream_params[j].stream = &streams[j].stream; in setup_broadcast_source()
490 (void)memset(streams, 0, sizeof(streams)); in main()
492 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in main()
493 ring_buf_init(&(streams[i].audio_ring_buf), sizeof(streams[i]._ring_buffer_memory), in main()
494 streams[i]._ring_buffer_memory); in main()
496 ring_buf_capacity_get(&(streams[i].audio_ring_buf))); in main()
607 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in main()
609 stream_sent_cb(&streams[i].stream); in main()