Audio playing method of mobile terminal and mobile terminal
A mobile terminal, audio playback technology, applied in the direction of sound input/output, data processing input/output process, instruments, etc., can solve problems such as abnormal playback, and achieve the effect of avoiding abnormal states
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0023] Embodiments of the present invention provide an audio playback method for a mobile terminal, such as figure 1 As shown, the method includes:
[0024] Step 101: Detect whether the first audio data obtained through hardware decoding and the second audio data obtained through software decoding need to be played.
[0025] Wherein, hardware decoding is DSD audio hardware decoding, and the first audio data obtained through hardware decoding is DSD data. The chip used for DSD audio hardware decoding is mainly integrated in the digital-to-analog converter (DAC) chip, and the data format required for DSD audio hardware decoding is the standard Dop (DSD over PCM) protocol.
[0026] Software decoding is the central processing unit (CPU) decoding, which converts files in various formats such as mp3, flac, ape, wav, dff, etc. into PCM data. Therefore, the second audio data is PCM data.
[0027] Step 102: When both the first audio data and the second audio data need to be played, ...
no. 2 example
[0034] Embodiments of the present invention provide an audio playback method for a mobile terminal, such as figure 2 As shown, the method includes:
[0035] Step 201: Detect whether the first audio data obtained through hardware decoding and the second audio data obtained through software decoding need to be played.
[0036] Wherein, hardware decoding is DSD audio hardware decoding, and the first audio data obtained through hardware decoding is DSD data. The chip used for DSD audio hardware decoding is mainly integrated in the digital-to-analog converter (DAC) chip, and the data format required for DSD audio hardware decoding is the standard Dop (DSD over PCM) protocol.
[0037] In addition, the Android system framework applied by the mobile terminal includes an application layer (Application), a framework layer (Framework), a hardware abstraction layer (HAL) and an audio driver layer (TinyAlsa). When audio data needs to be played, the audio data will be transmitted to the ...
no. 3 example
[0061] Embodiments of the present invention provide a mobile terminal, such as Figure 4 As shown, the mobile terminal 400 includes:
[0062] The first detection module 401 is used to detect whether there is the first audio data obtained by hardware decoding and the second audio data obtained by software decoding that need to be played;
[0063] The first playback control module 402 is configured to play the first audio data when the first detection module 401 detects that both the first audio data and the second audio data need to be played, and discard the audio data in the The second audio data needs to be played during the playing of the first audio data, and a message that the discarded second audio data has been played is returned to the application program used for playing the second audio data.
[0064] Preferably, as Figure 5 As shown, the mobile terminal 400 also includes:
[0065] The second detection module 403 is configured to detect whether there is second au...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


