void modplug_seek ( struct audio_file fd,
int  len,
int  rel 
)

Seek the modplug file a relatime amount of seconds.

Definition at line 162 of file audio_format_modplug.c.

00163 {
00164         struct modplug_drv_data *data = fd->drv_data;
00165         size_t off;
00166 
00167         off = len * SAMPLERATE;
00168         if (rel)
00169                 off += data->sample;
00170         /* Don't seek out of reach */
00171         off = CLAMP(off, 0, (fd->time_len - 1) * SAMPLERATE);
00172 
00173         ModPlug_Seek(data->modplug, (off * 10) / (SAMPLERATE / 100));
00174         data->sample = off;
00175         fd->time_cur = data->sample / SAMPLERATE;
00176 }

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:04 2010 for herrie by  doxygen 1.6.3