×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    Smile Does multiple players work for 60 and 40 ? (2 wavs + 1 midi at the same time)

    Hi,

    We are developing an action game for s60/40. Now we are at the stage of sound programming.

    We have 1 question:

    1- Can we have 2 players playing 2 or more audio sources at the same time?

    f.ex.
    - player_music is a backgound music, player_music.setLoopCount(-1);
    - player_sfx_1 need to be started while player_music is playing.

    We tried it on simulator, all works, we can at least have 2 players of music and 1 player of SFX playing at the same time,
    But:
    - 5310 (s40) won't play SFX when music is on
    - N95 can play music and play sfx, but it can't have 2 music players play at the same time.

    Everything depends on the devices? Or we can do it better?

    Cheers.

    Loup

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Does multiple players work for 60 and 40 ? (2 wavs + 1 midi at the same time)

    well you should look for the audio mixing tag in the device's specifications,
    http://www.forum.nokia.com/devices/matrix_all_1.html

    And actually, my experience with the N95 is that it is possible to play two MediaPlayers simultaniously, even though I only tried with two files of the same format (for example .mp3), so I don't know what it will do if you are using two differently encoded files...

  3. #3
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    Re: Does multiple players work for 60 and 40 ? (2 wavs + 1 midi at the same time)

    Thx Tiger79. As r2j7 suggested, I read these article, with s60 3rd edition, audio mixing is possible and we tested on N95. Although the responding time of wav is not ideal. And MMAPI is not open sourced, so I think it's not possible to do any fancy sound mixing stuff with it.

  5. #5
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    Re: Does multiple players work for 60 and 40 ? (2 wavs + 1 midi at the same time)

    Thx r2j7, these topics are very helpful. It looks like we can't do any mixing with s40, one player and one player only.

    at s40, the fact "no mixing" is not false for 2 players of midi and wav.

    When 2 waves, fake mixing is possibles under "swap and play" mode. But since player is thread, s&p mess up in a very short time, when it happened, no more sound, threads jammed.

    so I recommend not using sound mixing for 40.

    Thanks again.
    Last edited by loup; 2010-06-15 at 19:41.

Posting Permissions

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