站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Wireless Java Developing with J2ME, Second Edition

Chapter 12: Sound and Music - Wireless Java Developing with J2ME, Second Edition

Previous Section Next Section

Chapter 12: Sound and Music

Overview

MIDP 2.0 Includes basic audio capabilities. The media APIs in MIDP 2.0 are a strict subset of the Mobile Media API (MMAPI), a more general API for multimedia rendering. For full details on MMAPI, see the specification here:

http://jcp.org/jsr/detail/135.jsp

The MMAPI itself is kind of a pint-sized version of the Java Media Framework (JMF), which is an optional package for J2SE. More information on the JMF is available here:

http://java.sun.com/products/java-media/jmf/

The subset of the MMAPI that is included in MIDP 2.0 is called the Audio Building Block (ABB). It includes the capability to play simple tones and sampled audio. The ABB is implemented in the javax.microedition.media and javax.microedition.media.control packages. This chapter begins with a rush of runnable code, and then backs off to explain some of the concepts and dig into the APIs more carefully.


Previous Section Next Section