jiyong3998

导航

 

HwAudioSource connects the audio source device directly to an Android mixer.

HwAudioSource is a new type of player designed as a software patch. This enables apps that use this player to receive media key events and the output stream to be mixed and routed by Android.

mHwAudioSource = new HwAudioSource.Builder()
                .setAudioDeviceInfo(AudioDeviceInfo: info)
                .setAudioAttributes(new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build())
                .build();
mHwAudioSource.play();
mHwAudioSource.stop();

 

Android10 原生支持

 

posted on 2024-02-06 20:34  jiyong3998  阅读(39)  评论(0)    收藏  举报