Home
last modified time | relevance | path

Searched refs:stereo_frame (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.7.0/subsys/bluetooth/audio/shell/
Dbap_usb.c138 static int16_t stereo_frame[LC3_MAX_NUM_SAMPLES_STEREO]; in bap_usb_send_frames_to_usb() local
146 if (ring_buf_space_get(&usb_out_ring_buf) < sizeof(stereo_frame)) { in bap_usb_send_frames_to_usb()
176 stereo_frame[j * 2] = sample; in bap_usb_send_frames_to_usb()
177 stereo_frame[j * 2 + 1] = sample; in bap_usb_send_frames_to_usb()
179 stereo_frame[j * 2] = left_frame[j]; in bap_usb_send_frames_to_usb()
180 stereo_frame[j * 2 + 1] = right_frame[j]; in bap_usb_send_frames_to_usb()
184 rb_size = ring_buf_put(&usb_out_ring_buf, (uint8_t *)stereo_frame, in bap_usb_send_frames_to_usb()
185 sizeof(stereo_frame)); in bap_usb_send_frames_to_usb()
186 if (rb_size != sizeof(stereo_frame)) { in bap_usb_send_frames_to_usb()
/Zephyr-Core-3.7.0/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c269 static int16_t stereo_frame[LC3_MAX_NUM_SAMPLES_STEREO]; in lc3_decoder_thread() local
274 if (ring_buf_space_get(&usb_ring_buf) < sizeof(stereo_frame)) { in lc3_decoder_thread()
278 memset(stereo_frame, 0, sizeof(stereo_frame)); in lc3_decoder_thread()
289 stereo_frame[j * 2] = left_frame[j]; in lc3_decoder_thread()
290 stereo_frame[j * 2 + 1] = left_frame[j]; in lc3_decoder_thread()
292 stereo_frame[j * 2] = right_frame[j]; in lc3_decoder_thread()
293 stereo_frame[j * 2 + 1] = right_frame[j]; in lc3_decoder_thread()
296 stereo_frame[j * 2] = left_frame[j]; in lc3_decoder_thread()
297 stereo_frame[j * 2 + 1] = right_frame[j]; in lc3_decoder_thread()
301 add_to_usb_ring_buf(stereo_frame); in lc3_decoder_thread()