Lines Matching refs:sndfile
136 SNDFILE * sndfile = sf_open_virtual (stream ? & sf_virtual_io_stream : in read_tag() local
139 if (! sndfile) in read_tag()
142 copy_string (sndfile, SF_STR_TITLE, tuple, Tuple::Title); in read_tag()
143 copy_string (sndfile, SF_STR_ARTIST, tuple, Tuple::Artist); in read_tag()
144 copy_string (sndfile, SF_STR_ALBUM, tuple, Tuple::Album); in read_tag()
145 copy_string (sndfile, SF_STR_COMMENT, tuple, Tuple::Comment); in read_tag()
146 copy_string (sndfile, SF_STR_GENRE, tuple, Tuple::Genre); in read_tag()
147 copy_int (sndfile, SF_STR_DATE, tuple, Tuple::Year); in read_tag()
148 copy_int (sndfile, SF_STR_TRACKNUMBER, tuple, Tuple::Track); in read_tag()
150 sf_close (sndfile); in read_tag()
311 SNDFILE * sndfile = sf_open_virtual (stream ? & sf_virtual_io_stream : in play() local
314 if (sndfile == nullptr) in play()
328 sf_seek (sndfile, aud::min (frames, (int64_t) sfinfo.frames), SEEK_SET); in play()
331 int samples = sf_read_float (sndfile, buffer.begin (), buffer.len ()); in play()
338 sf_close (sndfile); in play()