File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Audio in J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Audio in J2ME" Watch "Audio in J2ME" New topic

Audio in J2ME

Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Are there audio features in J2ME?
serge masse
Ranch Hand

Joined: Jul 23, 2003
Posts: 102
check out in MIDP 2:
For example, here are a few common content types:
Wave audio files: audio/x-wav
AU audio files: audio/basic
MP3 audio files: audio/mpeg
MIDI files: audio/midi
Tone sequences: audio/x-tone-seq

serge - - my android apps
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Here is some important tips in developing audio applications in J2ME Wireless Toolkit, that I extracted from an article that I once received as newsletter from Sun... The API used to developer multimedia application in J2ME is called MMAPI(Mobile Media API)...

Limitations on Using MMAPI in the Toolkit
Keep in mind that the J2ME Wireless Toolkit has the following limitations � and that every device will have its own, different limitations:
-An application can create multiple players, but can realize only one MIDI player or one tone-sequence player. Any attempt to realize a second player of either type will throw a MediaException. In other words, only one MIDI or tone sequence player can be in use at any time.
-The toolkit allows any number of simultaneous playTone() calls for a single note, but guarantees only that at least four will actually work. The playTone() method can be called while a MIDI or tone-sequence player is playing.
-The number of video players is limited by the size of the heap, as specified in the -Xheapsize option of the emulator command if you are using the command line utilities, or from KToolBar by choosing Edit -> Preferences -> Storage.
-The number of WAV audio players is also limited by the heap size.
-Only one audio capture can be in use at one time.

Here is the link to the article, u might want to read to gain some knowledge about developing the multimedia applications with J2ME...

Co-author of SCMAD Exam Guide, Author of JMADPlus
I agree. Here's the link:
subject: Audio in J2ME
It's not a secret anymore!