Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2091129
  • 博文数量: 413
  • 博客积分: 10926
  • 博客等级: 上将
  • 技术积分: 3862
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-09 18:14
文章分类

全部博文(413)

文章存档

2015年(5)

2014年(1)

2013年(5)

2012年(6)

2011年(138)

2010年(85)

2009年(42)

2008年(46)

2007年(26)

2006年(59)

分类: 嵌入式

2011-03-28 17:37:49

  1. Docs
    • Audio and Video
      http://developer.android.com/guide/topics/media/index.html
    • Android Supported Media Formats
      http://developer.android.com/guide/appendix/media-formats.html
    • xxx
  2. Classes Summary
    • Audio
      • AudioManager
      • Sound Effects (音效)
        Sound effects are stored in memory and are usually no longer than a few seconds.

        • Ringtone & RingtoneManager
          Ringtone provides a quick method for playing a ringtone, notification, or other similar types of sounds.
        • ToneGenerator
          Provides methods to play DTMF tones (ITU-T Recommendation Q.23), call supervisory tones (3GPP TS 22.001, CEPT) and proprietary tones (3GPP TS 31.111)
        • SoundPool (Play sound effects)
          The SoundPool class manages and plays audio resources for applications.
          A SoundPool is a collection of samples that can be loaded into memory from a resource inside the APK or from a file in the file system. The SoundPool library uses the MediaPlayer service to decode the audio into a raw 16-bit PCM mono or stereo stream.
      • AudioTrack
        Manages and plays a single audio resource

      • AudioRecord
        Manages the audio resources record audio from the audio input hardware of the platform.
    • Video (& Audio)
      • MediaPlayer (Play stream music)
        Small sound effects fit into the limited heap memory an Android application gets from the operating system. Bigger audio files containing longer music pieces don’t. For this reason we need to stream the music to the audio hardware, which means that we only read-in a small chunk at a time, enough to decode it to raw PCM data and throw that at the audio chip. 

        Control playback of audio/video files and streams.

      • MediaRecorder
        Used to record audio and video.
    • xxx
  3. UI
    In general, SurfaceView is used to play media.
  4. xxx
阅读(675) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~