今天我们讲下如何更改A2dp编码Codec格式:
/vendor/mediatek/proprietary/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/A2dpService.java
在A2dp服务中,会首先获取到可连接audio devices 最大数量
- protected boolean start() {
- 116 Log.i(TAG, "start()");
- 117 if (mStarted) {
- 118 Log.w(TAG, "A2dpService already started.");
- 119 return true;
- 120 }
- 。。。。。。。
- // Step 2: Get maximum number of connected audio devices
- 135 mMaxConnectedAudioDevices = mAdapterService.getMaxConnectedAudioDevices();
- 136 Log.i(TAG, "Max connected audio devices set to " + mMaxConnectedAudioDevices);