staticintset_hwparams(snd_pcm_t*handle,snd_pcm_hw_params_t*params,snd_pcm_access_taccess){interr, dir;/* choose all parameters */err = snd_pcm_hw_params_any(handle,params);if(err <0) {printf("Access type not available for playback: %s\n", snd_strerror(err));returnerr; }/* set...