现在的位置: 首页 > 综合 > 正文

Android关于view按键音的修改

2013年09月14日 ⁄ 综合 ⁄ 共 1111字 ⁄ 字号 评论关闭

首先简单介绍下预备知识:

1.Android的audio流的类型有以下12种:

[java] view
plain
copy

  1. /* The audio stream for phone calls */  
  2.     public static final int STREAM_VOICE_CALL = 0;//通话连接时的音频流(通话声)  
  3.     /* The audio stream for system sounds */  
  4.     public static final int STREAM_SYSTEM = 1;//系统音频流  
  5.     /* The audio stream for the phone ring and message alerts */  
  6.     public static final int STREAM_RING = 2;//来电铃声  
  7.     /* The audio stream for music playback */  
  8.     public static final int STREAM_MUSIC = 3;//媒体音频流  
  9.     /* The audio stream for alarms */  
  10.     public static final int STREAM_ALARM = 4;//闹钟音频流  
  11.     /* The audio stream for notifications */  
  12.     public static final int STREAM_NOTIFICATION = 5;//通知音频流  
  13.     /* @hide The audio stream for phone calls when connected on bluetooth */  
  14.     public static final int STREAM_BLUETOOTH_SCO = 6;//从注释上看时使用蓝牙耳机通话的音频流  
  15.     /* @hide The audio stream for enforced system sounds in certain countries (e.g camera in Japan) */  
  16.     public static final int STREAM_SYSTEM_ENFORCED = 7;//一些国家强制使用的音频流??不太明白  
  17.     /* @hide The audio stream for DTMF tones */  
  18.     public static final int STREAM_DTMF = 

抱歉!评论已关闭.