Lines Matching refs:tail
78 size_t tail; member
95 audio_vbuffer->tail = 0; in audio_vbuffer_init()
127 if (audio_vbuffer->live == 0 || audio_vbuffer->head > audio_vbuffer->tail) { in audio_vbuffer_write()
129 } else if (audio_vbuffer->head < audio_vbuffer->tail) { in audio_vbuffer_write()
130 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head)); in audio_vbuffer_write()
155 audio_vbuffer->tail > audio_vbuffer->head) { in audio_vbuffer_read()
156 frames = MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->tail); in audio_vbuffer_read()
157 } else if (audio_vbuffer->tail < audio_vbuffer->head) { in audio_vbuffer_read()
158 frames = MIN(frame_count, audio_vbuffer->head - audio_vbuffer->tail); in audio_vbuffer_read()
163 &audio_vbuffer->data[audio_vbuffer->tail*audio_vbuffer->frame_size], in audio_vbuffer_read()
168 audio_vbuffer->tail = (audio_vbuffer->tail + frames) % audio_vbuffer->frame_count; in audio_vbuffer_read()