mmSeekToPrevSyncPoint

Seeks all of the tracks in a multimedia file to the previous sync point.

Prototype

DWORD mmSeekToPrevSyncPoint ( MMFILE *pMMFile)

Argument Description

Argument

Description

pMMFile

A pointer to the object that controls the multimedia file.

Return values

Return value

Description

SUCCESS

 

MMERR_NO_SYNC_TABLE

File does not have a sync table.

MMERR_INVALID_FILE

pMMFile is NULL.

MMERR_NO_PREV_SYNC_POINT

If the application attempts to seek to a previous sync point and the current time is less than or equal to the first sync point time in the sync table, this error is returned.

Details

Use mmSeekToPrevSyncPoint to seek to the previous sync point in the file. The track pointer for all tracks is repositioned to the previous sync point time. mmSeekToPrevSyncPoint can only be called during a play operation being done in partial buffer mode.

Examples

DWORD ret;
ret = mmSeekToPrevSyncPoint(&mmFile);
If( ret != SUCCESS )
{
printf ("\nERROR in mmSeekToPrevSyncPoint (%d)\n", ret);
return -1;
}