Lines Matching refs:frames
173 uint64_t written; /* total frames written, not cleared when entering standby */
819 * multiple of 16 frames, as audioflinger expects audio buffers to
820 * be a multiple of 16 frames
890 /* read_frames() reads frames from kernel driver, down samples to capture rate
891 * if necessary and output the number of frames requested to the buffer specified */
892 static ssize_t read_frames(struct stream_in *in, void *buffer, ssize_t frames)
897 while (frames_wr < frames) {
898 size_t frames_rd = frames - frames_wr;
1270 uint64_t *frames, struct timespec *timestamp)
1279 // We are just interested in the frames pending for playback in the kernel buffer here,
1291 *frames = signed_frames;
1455 static void in_apply_ramp(struct stream_in *in, int16_t *buffer, size_t frames)
1461 frames = (frames < in->ramp_frames) ? frames : in->ramp_frames;
1464 for (i = 0; i < frames; i++)
1470 for (i = 0; i < frames; i++)
1479 in->ramp_frames -= frames;