Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2010

    play many audio sound one after another

    i have to write an application that convert text to voice for non English language

    the problem that i face is that when trying to play the next one no delay is introduce so that many sound appear at the same time

    here is my code for playing one wav sound

    InputStream is;
            Player player;
            try {
                is = getClass().getResourceAsStream("media/ss.wav");
                player = Manager.createPlayer(is, "audio/X-wav");
                // get volume control for player and set volume to max
                VolumeControl vc = (VolumeControl) player.getControl("VolumeControl");
                if (vc != null) {
            } catch (Exception e) {

    the question is how to play multiple sound but the next one must not start if the previous not finished yet ???

  2. #2
    Nokia Developer Expert
    Join Date
    Feb 2009

    Re: play many audio sound one after another


    Please direct your question to PublishtoOvi.support@nokia.com and the developer support might help you.

    Thank you,

    Ovi Store Publisher Support

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2009
    Noida, India

    Re: play many audio sound one after another

    Put a Listner on your Player, and call the send player only when the first one is post the state as - END_OF_MEDIA

    public static final String END_OF_MEDIA Posted when a Player has reached the end of the media.
    When this event is received, the eventData parameter will be a Long object designating the media time when the Player reached end of media and stopped.
    Value endOfMedia is assigned to END_OF_MEDIA.

    Refer to: API for javax.microedition.media.PlayerListener


Similar Threads

  1. how to play a predefined audio file?
    By sabera_mina in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2010-02-01, 11:07
  2. Not able to play audio in my nokia 5130
    By ruhulcool1 in forum Audio
    Replies: 0
    Last Post: 2010-01-02, 08:11
  3. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  4. Play sound on 3rd edition
    By Bill_Murray in forum Symbian Media (Closed)
    Replies: 17
    Last Post: 2008-09-20, 04:37
  5. Play video without sound
    By shsf in forum Symbian
    Replies: 0
    Last Post: 2004-08-17, 10:17

Posting Permissions

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