MMMFGetTimestamps Class Reference

class MMMFGetTimestamps

This class provides an interface to configure and retrive time stamps.

Member Functions Documentation

MmgtGetSystemTimestampForBuffer(const TTimeIntervalMicroSeconds &, TTime &)

TInt MmgtGetSystemTimestampForBuffer ( const TTimeIntervalMicroSeconds & aBufferPosition,
TTime & aTimestamp
) const [pure virtual]

This method returns the system timestamp corresponding to the CMMFDataBuffer with the given position within the recording stream. This timestamp is the system time at which the buffers timestamp, as returned by CMMFBuffer::TimeToPlay , was valid. This method can only be used if the recording timestamps were enabled before recording started using the SetRecordSystemTimestampsEnabled method.

Parameters

const TTimeIntervalMicroSeconds & aBufferPosition The timestamp from the buffer, as returned by CMMFBuffer::TimeToPlay.
TTime & aTimestamp Returns the corresponding system time, in universal time.

MmgtSetRecordSystemTimestampsEnabled(TBool)

TInt MmgtSetRecordSystemTimestampsEnabled ( TBool aEnable ) [pure virtual]

Enable or disable support for system timestamps during recording, used for Audio / Video sync. This method can only be called after recording has been initialised, but before recording has started. Once recording is underway, the setting cannot be changed.

Parameters

TBool aEnable ETrue to enable recording timestamps, EFalse to disable it.