Lines Matching refs:bytes_read
221 uint32_t bytes_read = 0; in playback_callback() local
222 …er_read(&audio_output_ring_buffer, (uint8_t *) buffer, num_samples * BYTES_PER_FRAME, &bytes_read); in playback_callback()
223 num_samples -= bytes_read / BYTES_PER_FRAME; in playback_callback()
224 buffer += bytes_read / BYTES_PER_FRAME; in playback_callback()
540 uint32_t bytes_read; in sco_demo_send() local
541 …ad(&audio_input_ring_buffer, (uint8_t*) sample_buffer, num_samples * BYTES_PER_FRAME, &bytes_read); in sco_demo_send()
582 uint32_t bytes_read = 0; in sco_demo_send() local
583 … btstack_ring_buffer_read(&audio_input_ring_buffer, sample_data, bytes_to_copy, &bytes_read); in sco_demo_send()
588 for (i=0;i<bytes_read;i+=2){ in sco_demo_send()
594 bytes_to_copy -= bytes_read; in sco_demo_send()
595 pos += bytes_read; in sco_demo_send()