| CPC G06F 3/165 (2013.01) [G06F 3/162 (2013.01)] | 11 Claims |

|
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.
|