Android 音频通道切换HDMI,蓝牙,喇叭
创始人
2025-01-10 13:36:27
0

Android 音频通道切换HDMI,蓝牙,喇叭

private void speakerSound() {         if (soundOutput.equals("speaker")) {             return;         }         soundOutput = "speaker";         audoManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);         audoManager.setMode(AudioManager.STREAM_MUSIC);         audoManager.stopBluetoothSco();         audoManager.setBluetoothScoOn(false);         audoManager.setSpeakerphoneOn(true);     }      private void hdmiSound() {         if (soundOutput.equals("hdmi")) {             return;         }         soundOutput = "hdmi"; mContext.getSystemService(Context.AUDIO_SERVICE);         audoManager.setMode(AudioManager.MODE_IN_COMMUNICATION);         audoManager.stopBluetoothSco();         audoManager.setBluetoothScoOn(true);         audoManager.setSpeakerphoneOn(false);     }      private void bluetoothSound() {         if (soundOutput.equals("bluetooth")) {             return;         }         soundOutput = "bluetooth";         audoManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);         audoManager.setMode(AudioManager.MODE_IN_COMMUNICATION);         audoManager.startBluetoothSco();         audoManager.setBluetoothScoOn(true);         audoManager.setSpeakerphoneOn(false);     } 

参考:
https://blog.csdn.net/u010983881/article/details/72420790

相关内容

热门资讯

透视苹果版(线上德州)德扑ai... 透视苹果版(线上德州)德扑ai智能(透视)其实真的是有挂(详细辅助wepoke教程);1、每一步都需...
aapoker猫腻!aapok... aapoker猫腻!aapoker有后台操控吗,(德州aapoker俱乐部)竟然真的有挂(详细辅助系...
辅助透视(WepokE)外挂透... 辅助透视(WepokE)外挂透明挂辅助代打(wepoke是真的有挂)切实是真的有挂(详细透视透明教程...
透视软件(智星德州)德州微扑克... 透视软件(智星德州)德州微扑克辅助(透视)真是真的是有挂(详细辅助专业教程)1、超多福利:超高返利,...
aapoker外挂!aa po... aapoker外挂!aa poker辅助软件,(AAPOKER)一贯真的有挂(详细辅助攻略教程);1...
透视辅助(wEpoKe)外挂透... 透视辅助(wEpoKe)外挂透明挂辅助插件(wepoke真的有挂)本来是真的有挂(详细透视存在挂教程...
透视透视(德州ai)智星德州菠... 透视透视(德州ai)智星德州菠萝偷偷看牌功能(透视)总是真的是有挂(详细辅助攻略教程);一、智星德州...
透视好牌(WEpoke)透明挂... 透视好牌(WEpoke)透明挂辅助挂(wepoke确实有挂)确实有挂(详细透视规律教程);支持多人共...
aapoker有猫腻!aapo... aapoker有猫腻!aapoker是什么软件,(aApoker)好像真的有挂(详细辅助规律教程)a...
透视辅助(德扑)德扑之星有作弊... 透视辅助(德扑)德扑之星有作弊(透视)总是是真的有挂(详细辅助教你教程)1、德扑之星有作弊系统规律教...