Lines Matching defs:sf
48 SNDFILE *sf = NULL;
76 if (!(sf = sf_open_fd(fd, SFM_READ, &sfi, 1))) {
83 if (pa_sndfile_read_sample_spec(sf, ss) < 0) {
88 if ((map && pa_sndfile_read_channel_map(sf, map) < 0)) {
95 pa_sndfile_init_proplist(sf, p);
110 if ((readf_function && readf_function(sf, ptr, sfi.frames) != sfi.frames) ||
111 (!readf_function && sf_read_raw(sf, ptr, (sf_count_t) l) != (sf_count_t) l)) {
120 if (sf)
121 sf_close(sf);
137 SNDFILE*sf = NULL;
144 if (!(sf = sf_open(fname, SFM_READ, &sfi))) {
149 if (pa_sndfile_read_sample_spec(sf, &ss) < 0) {
151 sf_close(sf);
155 sf_close(sf);