Пример #1
0
static int read_seek_openmpt(AVFormatContext *s, int stream_idx, int64_t ts, int flags)
{
    OpenMPTContext *openmpt = s->priv_data;
    openmpt_module_set_position_seconds(openmpt->module, (double)ts/AV_TIME_BASE);
    return 0;
}
Пример #2
0
void MPTWrap::seek(int pos)
{
  openmpt_module_set_position_seconds(mod, pos / 1000.0);
}