mmSeekToNextSyncPoint

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

Prototype

DWORD mmSeekToNextSyncPoint ( MMFILE *pMMFile)

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_MORE_SYNC_POINTS

If the application attempts to seek to the next sync point and the current time is greater than or equal to the last sync point time in the sync table, this error is returned.

Details

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

Examples

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