Seeks all of the tracks in a multimedia file to the previous sync point.
DWORD mmSeekToPrevSyncPoint ( MMFILE *pMMFile)
|
Argument |
Description |
|
pMMFile |
A pointer to the object that controls the multimedia file. |
|
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. |
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.
DWORD ret;
ret = mmSeekToPrevSyncPoint(&mmFile);
If( ret != SUCCESS )
{
printf ("\nERROR in mmSeekToPrevSyncPoint (%d)\n", ret);
return -1;
}