Lines Matching defs:buffer
168 printf("Unable to set buffer size %li for %s: %s\n", bufsize * 2, id, snd_strerror(err));
287 printf("playback device does not support 2 periods per buffer\n");
296 printf("capture device does not support 2 periods per buffer\n");
465 void applyeffect(char* buffer,int r)
467 short* samples = (short*) buffer;
528 "-B,--buffer buffer size in frames\n"
536 "-x,--posdump dump buffer positions\n"
570 {"buffer", 1, NULL, 'B'},
583 char *buffer;
686 buffer = malloc((latency_max * 2 * snd_pcm_format_physical_width(format) / 8) * channels);
747 if (snd_pcm_format_set_silence(format, buffer, latency * channels) < 0) {
751 if (writebuf(phandle, buffer, latency, &frames_out) < 0) {
755 if (writebuf(phandle, buffer, latency, &frames_out) < 0) {
817 if ((r = readbuf(chandle, buffer, cap_avail, &frames_in, &in_max)) < 0)
821 applyeffect(buffer, r);
822 if (writebuf(phandle, buffer, r, &frames_out) < 0)
868 free(buffer);