# mmGetSyncPoints

Obtains sync point information from the sync point table in a multimedia file.

#### Prototype

DWORD mmGetSyncPoints ( MMFILE *pMMFile, int *pSyncTable)

Argument | Description
pMMFile | A pointer to the object that controls the multimedia file.
pSyncTable | A pointer to the start of the application’s sync table.

#### Return values

Return value | Description
SUCCESS |
MMERR_NO_SYNC_TABLE | File does not have a sync table.
MMERR_INVALID_FILE | pMMFile is NULL.

#### Details

mmGetSyncPoints gets the list of times associated with the 3GP file’s sync points and updates the pre-allocated sync table with these times. The application allocates memory for the time-based sync table using the value of the NbSyncPoints field in the FILE_INFO_DESC structure returned from mmGetFileInfo.

#### Examples

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