Lines Matching defs:frames
97 snd_pcm_sframes_t frames;
102 frames = symbol_table()->snd_pcm_avail_update()(handle_);
103 if (frames < 0) {
104 LOG(LS_ERROR) << "snd_pcm_avail_update(): " << GetError(frames);
105 Recover(frames);
107 } else if (frames > 0) {
109 return frames;
125 frames = symbol_table()->snd_pcm_avail_update()(handle_);
126 if (frames < 0) {
127 LOG(LS_ERROR) << "snd_pcm_avail_update(): " << GetError(frames);
128 Recover(frames);
130 } else if (frames == 0) {
135 return frames;
152 // The delay is in frames. Convert to microseconds.
372 LOG(LS_ERROR) << "Writes with fractional frames are not supported";
375 snd_pcm_uframes_t frames = size / stream_.frame_size();
379 frames);
384 } else if (static_cast<snd_pcm_uframes_t>(written) < frames) {
386 LOG(LS_ERROR) << "Stream wrote only " << written << " of " << frames
387 << " frames!";