static int snd_pcm_ladspa_close(snd_pcm_t *pcm) { snd_pcm_ladspa_t *ladspa = pcm->private_data; snd_pcm_ladspa_free(ladspa); return snd_pcm_generic_close(pcm); }
static int snd_pcm_file_close(snd_pcm_t *pcm) { snd_pcm_file_t *file = pcm->private_data; if (file->fname) { free((void *)file->fname); close(file->fd); } if (file->ifname) { free((void *)file->ifname); close(file->ifd); } return snd_pcm_generic_close(pcm); }
static int snd_pcm_file_close(snd_pcm_t *pcm) { snd_pcm_file_t *file = pcm->private_data; if (file->fname) { if (file->wav_header.fmt) fixup_wav_header(pcm); free((void *)file->fname); if (file->fd >= 0) { close(file->fd); } } if (file->ifname) { free((void *)file->ifname); close(file->ifd); } return snd_pcm_generic_close(pcm); }