TTimeIntervalMicroSeconds
| Fri, 2005-02-18 15:16 | |
|
Code: TTimeIntervalMicroSeconds a(0); iMdaAudioPlayerUtility->GetPosition(a+500); a=a+500; trying to fastforward audio playback.. not sure if im going about it the right way. The above code doesn't work just put it there to give an idea of the way im thinking. i know to add there is Quote TTime operator+(TTimeIntervalMicroSeconds aMicroSecond) const; but dont know how to use itany help |
|






Forum posts: 1379
TTimeIntervalMicroSeconds aTime;
iMdaAudioPlayerUtility->GetPosition(aTime);
SetPosition would be used to set the position, so to fastforward 500 microseconds:
TTimeIntervalMicroSeconds aTime;
iMdaAudioPlayerUtility->GetPosition(aTime);
aTime += TTimeIntervalMicroSeconds(500);
iMdaAudioPlayerUtility->SetPosition(aTime);
didster
Forum posts: 10
still doesnt work though, get the following error
Forum posts: 1379
Try aTime += 500;
and if that doesn't work,
try
aTime = aTime + TTimeIntervalMicroSeconds(500);
didster
Forum posts: 10
must be something stupid I've missed,
I've included #include <e32std.h>
can't think what else I'm doing wrong though
Forum posts: 92
Forum posts: 1379
You will have to do it like this:
TTimeIntervalMicroSeconds aTime;
iMdaAudioPlayerUtility->GetPosition(aTime);
TTimeIntervalMicroSeconds aTimeNew = aTime.Int64() + 500;
iMdaAudioPlayerUtility->SetPosition(aTime);
didster
Forum posts: 192
TTimeIntervalMicroSeconds aTime;
iMdaAudioPlayerUtility->GetPosition(aTime);
TTimeIntervalMicroSeconds aTimeNew = aTime.Int64() + 500;
iMdaAudioPlayerUtility->SetPosition(aTimeNew);
Forum posts: 1379
didster
Forum posts: 10
Forum posts: 10
had the 6.1 sdk then installed the 7.0 so could be something to do with that.. have the latest version of perl. do I need a different one for it to work ??