Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User r.sharafi's Avatar
    Join Date
    Aug 2006
    Posts
    17
    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

  2. #2
    Regular Contributor tunelabguy's Avatar
    Join Date
    Dec 2005
    Posts
    59
    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

  3. #3
    Registered User r.sharafi's Avatar
    Join Date
    Aug 2006
    Posts
    17
    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

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,744
    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...

Similar Threads

  1. Video with audio recording delay problem on N90
    By vasya0 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-12-03, 16:44
  2. Problems sending SMS with AT commands
    By bow24el in forum General Messaging
    Replies: 4
    Last Post: 2007-02-15, 04:46
  3. Nokia 6280. (StreamConnection)Connector.open waits forever.
    By avall in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2006-08-03, 17:07
  4. problems displaying video
    By gorsken in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2006-06-21, 17:18
  5. how to insert a delay
    By yencruz in forum Symbian C++
    Replies: 3
    Last Post: 2004-03-02, 07:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved