AudioManger和AudioSystem的关系
2016-03-13 00:18
435 查看
// This section re-defines new output device constants from AudioSystem, because the AudioSystem // class is not used by other parts of the framework, which instead use definitions and methods // from AudioManager. AudioSystem is an internal class used by AudioManager and AudioService. /** @hide * The audio device code for representing "no device." */ public static final int DEVICE_NONE = AudioSystem.DEVICE_NONE; /** @hide * The audio output device code for the small speaker at the front of the device used * when placing calls. Does not refer to an in-ear headphone without attached microphone, * such as earbuds, earphones, or in-ear monitors (IEM). Those would be handled as a * {@link #DEVICE_OUT_WIRED_HEADPHONE}. */ public static final int DEVICE_OUT_EARPIECE = AudioSystem.DEVICE_OUT_EARPIECE; /** @hide * The audio output device code for the built-in speaker */ public static final int DEVICE_OUT_SPEAKER = AudioSystem.DEVICE_OUT_SPEAKER; /** @hide * The audio output device code for a wired headset with attached microphone */ public static final int DEVICE_OUT_WIRED_HEADSET = AudioSystem.DEVICE_OUT_WIRED_HEADSET; /** @hide * The audio output device code for a wired headphone without attached microphone */ public static final int DEVICE_OUT_WIRED_HEADPHONE = AudioSystem.DEVICE_OUT_WIRED_HEADPHONE; /** @hide * The audio output device code for generic Bluetooth SCO, for voice */ public static final int DEVICE_OUT_BLUETOOTH_SCO = AudioSystem.DEVICE_OUT_BLUETOOTH_SCO; /** @hide * The audio output device code for Bluetooth SCO Headset Profile (HSP) and * Hands-Free Profile (HFP), for voice */ public static final int DEVICE_OUT_BLUETOOTH_SCO_HEADSET = AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_HEADSET; /** @hide * The audio output device code for Bluetooth SCO car audio, for voice */ public static final int DEVICE_OUT_BLUETOOTH_SCO_CARKIT = AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_CARKIT;
之前对二者的关系不是特别的清楚. 现在搞清楚.
通过这段注释 我们可以很清晰的知道
// This section re-defines new output device constants from AudioSystem, because the AudioSystem
// class is not used by other parts of the framework, which instead use definitions and methods
// from AudioManager. AudioSystem is an internal class used by AudioManager and AudioService.
AudioSystem 是 AudioManager and AudioService. 的 internal class 内部类, 不对别的模块提供支持.
相关文章推荐
- AudioService 和AudioManager 以及使用举例.
- CoreImage 之 CIDetector iOS 人脸识别
- iOS音频播放器锁屏歌词显示与性能优化
- 多线程
- XZ_iOS之实现离线缓存
- iOS多线程的初步研究(三)-- NSRunLoop
- iOS的三种多线程技术
- iOS开发中常用的几种设计模式
- 第一个iOS程序简单计算器设计-用到View,get点语法
- iOS 多线程 NSthread的简单使用——iOS 编码复习(六)(多线程4)
- IOS调试—断点调试
- iOS开发两个距离较近的按钮同时触发事件的解决方法
- iOS之04-方法的声明和实现
- ios 图片的两种加载方式
- iOS之03-类的合理设计
- ios数据存储(一)
- ios开发中的基本设计模式(代理,观察者,MVC,单例,策略,工厂,MVVM,原型,Target-Action,通知(notification)机制)
- iOS之02-第一个OC的类
- iOS开发--打印NSRange,CGRect,CGPoint等结构体
- iOS中MD5加密