intmain(){intfp;unsignedintpcm, tmp, dir;intbuff_size;longloops;intrc;intsize;snd_pcm_t*handle;snd_pcm_hw_params_t*params;unsignedintval;snd_pcm_uframes_tframes;char*buff;intrate, channels, seconds;/* Open PCM device for recording (capture). */rc = snd_pcm_open(&handle,"default", ...