This function is deprecated.
int sm_avfrec_sync(struct sm_avfrec_sync_parms *avfsp)
typedef struct sm_avfrec_sync_parms { tSMAVFrecId avfrec; /* in */ tSMAVFrecId sync_avfrec; /* in */ } SM_AVFREC_SYNC_PARMS;
Ensures that all future records on avfrec are synchronised with those on sync_avfrec. To achieve synchronised records following a call to sm_avfrec_sync() , sm_avfrec_start() must be called on both, avfrec and sync_avfrec . The records can be started in any order. Once started, the records will not process any data until the first full AVF frame arrives at either. This allows their internal time references to start in step and, therefore, for synchronised playback of a recorded AVF stream pair to be achieved. Once the records begin processing data, they progress as usual.
When two records are synchronised and processing data, if one record is stopped then restarted it will not re-synchronise with the running record and an error will be returned. If both records are stopped then restarted, the two records will synchronise as described above.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody Audio Video Format (AVF) API.