Lines Matching refs:frame_buffer
88 static int fill_buf(int fd, void *frame_buffer, snd_pcm_access_t access,
98 len = read(fd, frame_buffer, size);
107 static int fill_vector(int fd, void *frame_buffer, snd_pcm_access_t access,
111 char **bufs = frame_buffer;
131 static void deallocate_buf(void *frame_buffer, unsigned int samples_per_frame)
133 free(frame_buffer);
136 static void deallocate_vector(void *frame_buffer,
139 char **bufs = frame_buffer;
157 int (*fill)(int fd, void *frame_buffer, snd_pcm_access_t access,
160 void (*deallocator)(void *frame_buffer, unsigned int samples_per_frame);
161 void *frame_buffer;
175 frame_buffer = allocator(access, sample_format, samples_per_frame,
177 if (frame_buffer == NULL)
180 err = fill(gen->fd, frame_buffer, access, sample_format,
189 frame_buffer, i);
194 deallocator(frame_buffer, samples_per_frame);