#include <mmf/server/devsoundstandardcustominterfaces.h>
class MMMFGetTimestamps |
Public Member Functions | |
---|---|
pure virtual TInt | MmgtGetSystemTimestampForBuffer(const TTimeIntervalMicroSeconds &, TTime &) |
pure virtual TInt | MmgtSetRecordSystemTimestampsEnabled(TBool) |
This class provides an interface to configure and retrive time stamps.
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.
Parameter | Description |
---|---|
aBufferPosition | The timestamp from the buffer, as returned by CMMFBuffer::TimeToPlay. |
aTimestamp | Returns the corresponding system time, in universal time. |
Returns: A System error code. KErrNotSupported if recording is not ongoing; KErrNotReady if DevSound is not initialized, or TimeStamps have not been enabled; KErrNotFound if the timestamp given does not correspond to a recent record buffer.
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.
Parameter | Description |
---|---|
aEnable | ETrue to enable recording timestamps, EFalse to disable it. |
Returns: KErrNotReady if DevSound has not yet been initialised, KErrNotSupported if DevSound is not in recording mode or KErrInUse if recording is already underway.