×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    72

    Play Sound file...

    Hello friends

    I am having a code and trying to play a file repeatly at regular intervals...
    Now if the file is long enough,,it cant be stopped before playing the next time.is there a way out?

  2. #2
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,795

    Re: Play Sound file...

    Hello rabaf

    I think you use a similar code as below in the loop to play...

    Code:
    filename='e:\\sound.wav'
    S=audio.Sound.open(filename)
    # play the sound file
    S.play()
    If i have the above code running on my device, the previous playing is halted and the sound is played from the very beginning I dont even have to use S.stop() (As i think we are using the same obj i.e. S)
    i think that will work for you..
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. Error with makesis.exe and creating the .pkg file
    By gramya87 in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-10-10, 13:53
  2. Help needed with a 3gp file...
    By joedoe_1981 in forum Streaming and Video
    Replies: 0
    Last Post: 2007-07-18, 18:58
  3. Replies: 9
    Last Post: 2006-05-11, 21:13
  4. How to play sound file with Java in 9210?
    By Nokia_Archive in forum Mobile Java General
    Replies: 1
    Last Post: 2002-05-24, 00:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×