×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    36

    playing sound in j2me

    I am developing two applications . The first one is an informative app which has slideshow. This slideshow requires playing of music in the background.
    The second app is a basic game (Tic -Tac -Toe) which consists of playing of iterative sound.

    The problem i am facing is I am not able to play sound (using MMAPI ) on all phones since its an optional package so please provide me some solution

  2. #2
    Registered User
    Join Date
    Aug 2009
    Posts
    15

    Re: playing sound in j2me

    Hello,

    I think you have to use Pre-processor directives to check if MMAPI exists in the Phone and use differnt configurations in you IDE. I use Netbeans and I can use different configurations.

    Links to help:
    http://antenna.sourceforge.net/wtkpr...php#preprocess
    http://www.devx.com/wireless/Article/29449/0/page/4

    other way is, I think this works:
    version = System.getProperty ("microedition.media.version"); //check if MMAPI is available

    version variable is null if MMAPI is not supported.

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: playing sound in j2me

    Quote Originally Posted by jiten_shah18 View Post
    The problem i am facing is I am not able to play sound (using MMAPI ) on all phones since its an optional package so please provide me some solution
    What devices do you want to support?

    All MIDP-2 devices provide a subset of MMAPI (enough for playing sound) - it's a requirement of the MIDP-2 standard.

    Graham.

Similar Threads

  1. Replies: 3
    Last Post: 2008-08-03, 09:04
  2. Nokia Communicator playing Default Sound
    By pmramprasath in forum Mobile Java General
    Replies: 0
    Last Post: 2007-10-25, 04:45
  3. problem with playing sound with Nokia UI API
    By rajbalan in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2003-06-16, 15:16
  4. help with sound recording and playing
    By walterzcm in forum Mobile Java General
    Replies: 1
    Last Post: 2002-11-06, 11:42
  5. J2ME and Sound
    By gfafara in forum Mobile Java General
    Replies: 0
    Last Post: 2002-06-26, 19:38

Posting Permissions

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