Lines Matching refs:read_current
1453 return psf->read_current ; in sf_seek()
1458 seek_from_start = psf->read_current + offset ; in sf_seek()
1467 return psf->read_current ; in sf_seek()
1468 seek_from_start = psf->read_current + offset ; in sf_seek()
1510 psf->read_current = retval ; in sf_seek()
1516 psf->read_current = retval ; in sf_seek()
1630 if (bytes < 0 || psf->read_current >= psf->sf.frames) in sf_read_raw()
1641 if (psf->seek (psf, SFM_READ, psf->read_current) < 0) in sf_read_raw()
1646 if (psf->read_current + count / blockwidth <= psf->sf.frames) in sf_read_raw()
1647 psf->read_current += count / blockwidth ; in sf_read_raw()
1649 { count = (psf->sf.frames - psf->read_current) * blockwidth ; in sf_read_raw()
1652 psf->read_current = psf->sf.frames ; in sf_read_raw()
1688 if (psf->read_current >= psf->sf.frames) in sf_read_short()
1699 if (psf->seek (psf, SFM_READ, psf->read_current) < 0) in sf_read_short()
1704 if (psf->read_current + count / psf->sf.channels <= psf->sf.frames) in sf_read_short()
1705 psf->read_current += count / psf->sf.channels ; in sf_read_short()
1707 { count = (psf->sf.frames - psf->read_current) * psf->sf.channels ; in sf_read_short()
1710 psf->read_current = psf->sf.frames ; in sf_read_short()
1738 if (psf->read_current >= psf->sf.frames) in sf_readf_short()
1749 if (psf->seek (psf, SFM_READ, psf->read_current) < 0) in sf_readf_short()
1754 if (psf->read_current + count / psf->sf.channels <= psf->sf.frames) in sf_readf_short()
1755 psf->read_current += count / psf->sf.channels ; in sf_readf_short()
1757 { count = (psf->sf.frames - psf->read_current) * psf->sf.channels ; in sf_readf_short()
1760 psf->read_current = psf->sf.frames ; in sf_readf_short()
1796 if (psf->read_current >= psf->sf.frames) in sf_read_int()
1807 if (psf->seek (psf, SFM_READ, psf->read_current) < 0) in sf_read_int()
1812 if (psf->read_current + count / psf->sf.channels <= psf->sf.frames) in sf_read_int()
1813 psf->read_current += count / psf->sf.channels ; in sf_read_int()
1815 { count = (psf->sf.frames - psf->read_current) * psf->sf.channels ; in sf_read_int()
1818 psf->read_current = psf->sf.frames ; in sf_read_int()
1846 if (psf->read_current >= psf->sf.frames) in sf_readf_int()
1857 if (psf->seek (psf, SFM_READ, psf->read_current) < 0) in sf_readf_int()
1862 if (psf->read_current + count / psf->sf.channels <= psf->sf.frames) in sf_readf_int()
1863 psf->read_current += count / psf->sf.channels ; in sf_readf_int()
1865 { count = (psf->sf.frames - psf->read_current) * psf->sf.channels ; in sf_readf_int()
1868 psf->read_current = psf->sf.frames ; in sf_readf_int()
1904 if (psf->read_current >= psf->sf.frames) in sf_read_float()
1915 if (psf->seek (psf, SFM_READ, psf->read_current) < 0) in sf_read_float()
1920 if (psf->read_current + count / psf->sf.channels <= psf->sf.frames) in sf_read_float()
1921 psf->read_current += count / psf->sf.channels ; in sf_read_float()
1923 { count = (psf->sf.frames - psf->read_current) * psf->sf.channels ; in sf_read_float()
1926 psf->read_current = psf->sf.frames ; in sf_read_float()
1954 if (psf->read_current >= psf->sf.frames) in sf_readf_float()
1965 if (psf->seek (psf, SFM_READ, psf->read_current) < 0) in sf_readf_float()
1970 if (psf->read_current + count / psf->sf.channels <= psf->sf.frames) in sf_readf_float()
1971 psf->read_current += count / psf->sf.channels ; in sf_readf_float()
1973 { count = (psf->sf.frames - psf->read_current) * psf->sf.channels ; in sf_readf_float()
1976 psf->read_current = psf->sf.frames ; in sf_readf_float()
2012 if (psf->read_current >= psf->sf.frames) in sf_read_double()
2023 if (psf->seek (psf, SFM_READ, psf->read_current) < 0) in sf_read_double()
2028 if (psf->read_current + count / psf->sf.channels <= psf->sf.frames) in sf_read_double()
2029 psf->read_current += count / psf->sf.channels ; in sf_read_double()
2031 { count = (psf->sf.frames - psf->read_current) * psf->sf.channels ; in sf_read_double()
2034 psf->read_current = psf->sf.frames ; in sf_read_double()
2062 if (psf->read_current >= psf->sf.frames) in sf_readf_double()
2073 if (psf->seek (psf, SFM_READ, psf->read_current) < 0) in sf_readf_double()
2078 if (psf->read_current + count / psf->sf.channels <= psf->sf.frames) in sf_readf_double()
2079 psf->read_current += count / psf->sf.channels ; in sf_readf_double()
2081 { count = (psf->sf.frames - psf->read_current) * psf->sf.channels ; in sf_readf_double()
2084 psf->read_current = psf->sf.frames ; in sf_readf_double()
2963 psf->read_current = -1 ; in psf_open_file()
3239 psf->read_current = 0 ; in psf_open_file()