Seek a relative amount in seconds in the current file handle. Definition at line 94 of file audio_format_sndfile.c. 00095 { 00096 SNDFILE *hnd = fd->drv_data; 00097 sf_count_t frame; 00098 00099 /* Make sure we always align the seek to seconds */ 00100 if (rel) 00101 len += fd->time_cur; 00102 len = CLAMP(len, 0, (int)fd->time_len); 00103 00104 frame = sf_seek(hnd, len * fd->srate, SEEK_SET); 00105 fd->time_cur = frame / fd->srate; 00106 } |
1.6.3