This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Audio in J2ME

 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there audio features in J2ME?
 
serge masse
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes,
check out javax.microedition.media.Manager 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
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
http://developers.sun.com/techtopics/mobility/midp/articles/mmapioverview/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic