US 12,293,129 B2
Method for activating audio device, and terminal and computer-readable storage medium
Mei Xu, Shenzhen (CN)
Assigned to ZTE CORPORATION, Shenzhen (CN)
Appl. No. 18/011,909
Filed by ZTE CORPORATION, Shenzhen (CN)
PCT Filed Aug. 25, 2021, PCT No. PCT/CN2021/114568
§ 371(c)(1), (2) Date Dec. 21, 2022,
PCT Pub. No. WO2022/068476, PCT Pub. Date Apr. 7, 2022.
Claims priority of application No. 202011047831.6 (CN), filed on Sep. 29, 2020.
Prior Publication US 2023/0244439 A1, Aug. 3, 2023
Int. Cl. G06F 3/16 (2006.01)
CPC G06F 3/165 (2013.01) [G06F 3/162 (2013.01)] 11 Claims
OG exemplary drawing
 
1. A method for activating an audio device, comprising:
acquiring an attribute of an audio application;
acquiring an audio device identification (ID) mapped to the attribute from a preset audio device switching routing table according to the attribute, wherein the audio device ID mapped to the attribute comprises:
an audio device ID of an audio device codec corresponding to the attribute; and
activating the audio device corresponding to the audio device ID;
wherein in response to a presence of at least two audio applications, acquiring an attribute of an audio application comprises:
in response to at least two audio applications being opened successively, acquiring attributes of the at least two audio applications respectively; and
activating the audio device corresponding to the audio device ID comprises:
in response to detecting that the attribute of the audio application opened later maps at least two audio device IDs, that the attribute of the audio application opened earlier maps one audio device ID, and that a shared audio device ID is an audio device ID with a highest priority among the audio device IDs mapped to the attribute of the audio application opened later, connecting the audio application opened later to an audio device corresponding to the audio device ID with a second highest priority, and
connecting the audio application opened earlier to an audio device corresponding to the shared audio device ID.