I try to do one command and after (X miliseconds) do another. What class is for inserting miliseconds delay in C++?
Please help me by code sample:
Command1
Delay
Command2
Delay
Command3
.
.
.
CommandN
Thanks,
r.Sharafi
I try to do one command and after (X miliseconds) do another. What class is for inserting miliseconds delay in C++?
Please help me by code sample:
Command1
Delay
Command2
Delay
Command3
.
.
.
CommandN
Thanks,
r.Sharafi
Are you trying to do this in your UI thread? You should not do it. Symbian is an event-driven OS. All your responses to events should be quick and return immediately to the Application Framework. If you want something to happen after a given amount of time, then use the CTimer or CPeriodic class. But this will not simply insert a delay in-line in your code. You will need to retain state information between timer hits in order to determine which "command" in your list is next.
Robert Scott
Ypsilanti, Michigan
Well, I try to play some wave files via CMdaAudioPlayerUtility. And I don't know how to play multi file in this class. So I save each wave file length in an array .
I will call CMdaAudioPlayerUtility to play each file after the last file wave length.
The wave file length is a delay time to play another!
Please help me.
Thanks!
r.Sharafi
Oh please!
Why do not you start playing the next audio file from your MapcPlayComplete method? It is invoked exactly when playing of a file is over...