CN106648537A - Audio data decoding control method and mobile terminal - Google Patents

Audio data decoding control method and mobile terminal Download PDF

Info

Publication number
CN106648537A
CN106648537A CN201611243104.0A CN201611243104A CN106648537A CN 106648537 A CN106648537 A CN 106648537A CN 201611243104 A CN201611243104 A CN 201611243104A CN 106648537 A CN106648537 A CN 106648537A
Authority
CN
China
Prior art keywords
audio
dsd
player
data
hardware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611243104.0A
Other languages
Chinese (zh)
Other versions
CN106648537B (en
Inventor
韩金伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611243104.0A priority Critical patent/CN106648537B/en
Publication of CN106648537A publication Critical patent/CN106648537A/en
Application granted granted Critical
Publication of CN106648537B publication Critical patent/CN106648537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs

Abstract

The invention provides an audio data decoding control method and a mobile terminal. The method comprises steps of encapsulating DSD audio data into a voice data package capable of being decoded by audio hardware, identifying an audio decoding way used by an audio player, decapsulating the audio data package to achieve DSD audio data if the audio decoding way is an audio software decoding way, converting the DSD audio data into PCM audio data, decoding the PCM audio data via the audio software decoding way, and otherwise decoding the audio data via the audio hardware decoding way. When the audio decoding way used by the player changes, re-transmission of the DSD audio data can be unnecessary; the audio data package can be decoded via the current audio decoding way, so DSD audio data can be continuously transmitted during software and hardware decoding switch, and user experience can be improved.

Description

A kind of control method and mobile terminal of voice data decoding
Technical field
The present invention relates to the communications field, more particularly to a kind of control method and the movement of voice data decoding
Terminal.
Background technology
Directly bit streaming digital (DSD, Direct Stream Digital) formatted music and pulse code modulation (PCM, Pulse Code Modulation) formatted music is that have visibly different.PCM is that analog signal is carried out with certain sample rate Sampling, quantization and coding, generation meets the PCM data of pcm interface specification.DSD is sampled with the mode of 1bit bit streams, is adopted The mode of height sampling, is directly changed in a pulsed fashion digital signal analog music signal, and DSD data are not meet PCM to connect Mouth specification, if to transmit, it is necessary to which the requirement according to pcm interface is Resealed and passed with the interface of PCM It is defeated.The advantage of DSD data is that tonequality is very good, and the DSD formatted musics of prior art have two kinds of hardware decoding and software decoding Mode, wherein, the process of hardware decoding is that DSD data are parsed using DOP (DOP, DSD Over PCM) parsing module Encapsulation obtains DOP data, is then decoded DOP data transfers to hardware decoding path;The process of software decoding is by DSD Data are converted to PCM data, and then PCM data is transmitted to software decoding path being decoded.When hardware decoding switch to it is soft Part is decoded, and needs first to destroy DOP parsing modules, then DSD data is converted to into PCM data from newly.So, software and hardware is being carried out Need, from new transmission DSD voice datas, there is a problem of DSD voice data Transmissions when decoding switching.
The content of the invention
The embodiment of the present invention provides a kind of control method and mobile terminal of voice data decoding, is entered with solving prior art Need, from new transmission DSD voice datas, there is a problem of DSD voice data Transmissions when the decoding switching of row software and hardware.
In a first aspect, embodiments providing a kind of control method of voice data decoding, it is applied to that sound is installed The mobile terminal of frequency player, including:
DSD voice datas are packaged into into the packets of audio data for audio hardware decoding;
Recognize the audio decoder mode that the audio player is used;
If recognizing, the audio decoder mode is audio software decoding process, and the packets of audio data is unsealed Dress, obtains the DSD voice datas, and the DSD voice datas are converted to into PCM audio data;
The PCM audio data is decoded using audio software decoding process;
If recognizing, the audio decoder mode is audio hardware decoding process, using audio hardware decoding process to audio frequency Packet is decoded.
Second aspect, the embodiment of the present invention also provides a kind of mobile terminal, and the mobile terminal is provided with audio player, Including:
Package module, for DSD voice datas to be packaged into the packets of audio data for audio hardware decoding;
Identification module, for recognizing the audio decoder mode that the audio player is used;
Modular converter, if for recognizing that the audio decoder mode is audio software decoding process, to the audio frequency number Decapsulated according to bag, obtained the DSD voice datas, and the DSD voice datas are converted to into PCM audio data;
First decoder module, for being decoded to the PCM audio data using audio software decoding process;
Second decoder module, if for recognizing that the audio decoder mode is audio hardware decoding process, using audio frequency Hardware decoding process is decoded to packets of audio data.
In the embodiment of the present invention, DSD voice datas are packaged into into the packets of audio data for audio hardware decoding;Identification institute State the audio decoder mode that audio player is used;If recognizing, the audio decoder mode is audio software decoding process, right The packets of audio data is decapsulated, and obtains the DSD voice datas, and the DSD voice datas are converted to into pcm audio Data;The PCM audio data is decoded using audio software decoding process;If recognizing, the audio decoder mode is sound Frequency hardware decoding process, then decoded using audio hardware decoding process to packets of audio data.So, when player is used When audio decoder mode switches, without from new transmission DSD voice datas, according to current audio decoder mode come to audio frequency Packet is decoded, it is achieved thereby that continuously transmitting DSD voice datas during software and hardware decoding switching, and improves user's body Test.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to needed for embodiment of the present invention description The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can be being obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart of the control method of the voice data decoding that first embodiment of the invention is provided;
Fig. 2 is the flow chart of the control method of another kind of voice data decoding that second embodiment of the invention is provided;
Fig. 3 is a kind of structure chart of mobile terminal that third embodiment of the invention is provided;
Fig. 4 is the structure chart of another kind of mobile terminal that third embodiment of the invention is provided;
Fig. 5 is one of structure chart of identification module in the mobile terminal that third embodiment of the invention is provided;
Fig. 6 is the two of the structure chart of the identification module in the mobile terminal that third embodiment of the invention is provided;
Fig. 7 is a kind of structure chart of mobile terminal that fourth embodiment of the invention is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than the embodiment of whole.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under the premise of creation work is not made Example, belongs to the scope of protection of the invention.
First embodiment
Referring to Fig. 1, Fig. 1 is the flow chart of the control method of voice data decoding provided in an embodiment of the present invention, such as Fig. 1 institutes Show, comprise the following steps:
Step 101, by DSD voice datas be packaged into for audio hardware decoding packets of audio data.
In the step, DSD data are to cannot be directly used to audio hardware decoding, if to carry out audio hardware decoding, are needed DSD data are packaged using tunneling, obtain packets of audio data.It is, for example possible to use (DOP, DSD Over PCM) agreement is packaged to DSD data, will be referred to as DOP data, above-mentioned DOP data using the DSD data after DOP protocol encapsulations Just it is used directly for audio hardware decoding to decode path to transmit using the DSD after DOP protocol encapsulations using audio hardware Data.It should be noted that DSD data are cannot directly to carry out audio hardware decoding, need to use DOP agreements to DSD data After being packaged, the DSD data after encapsulation just can be transmitted on audio hardware decoding path.
The audio decoder mode that step 102, the identification audio player are used.
In the step, above-mentioned audio decoder mode can be with audio hardware decoding process, or audio software decoding side Formula, when audio player is when DSD music is played, by the unlatching shape for detecting HiFi (High-Fidelity, high-fidelity is played) State and the opening of DSD hardware decoding recognizing audio decoder mode that audio player is used, if the audio frequency is played The high-fidelity broadcast state of device and the DSD hardware decoded state of the audio player are in opening, recognize the sound Frequency player uses audio hardware decoding process;If the high-fidelity of the audio player is played and is closed or described The DSD hardware decoded state of audio player is closed, and recognizes that the audio player uses audio software decoding side Formula;For example, user is opened when HiFi is played or DSD hardware decoded state is closed, and can send request command to being System, by detecting that this request command may determine that unlatching HiFi plays or closes HiFi and plays and DSD hardware decoding State.So, it is different to carry out to the packets of audio data in above-mentioned steps by recognizing currently used audio decoder mode Decoding, to adapt to voice data transmission, so as to realize continuously transmitting when software and hardware decoding switching is carried out.
If step 103, recognizing that the audio decoder mode for audio software decoding process, is entered to the packets of audio data Row decapsulation, obtains the DSD voice datas, and the DSD voice datas are converted to into PCM audio data.
In the step, it is possible to use DOP agreements are packaged DSD data, become DOP data, when audio decoder mode For audio software decoding process, the packets of audio data is decapsulated, obtain the DSD voice datas, DOP data have head Portion's information, i.e. DOP data headers have signal data, realized by this header information DOP data and DSD voice datas it Between mutual conversion, as long as the data with this header information just be DOP data, remove this header information and be converted to DSD voice datas, and DSD voice datas are converted to into PCM audio data, such audio software decoding process just can be to PCM Voice data is decoded.
Step 104, the PCM audio data is decoded using audio software decoding process.
In the step, above-mentioned PCM audio data is decoded by using audio software decoding process, so, work as sound Frequency decoding process from audio hardware decoding process to audio software decoding process switch when, without from new transmission DSD voice datas, As long as converting to DOP voice datas, so as to realize continuously transmitting for voice data, the experience of user is improve.
If step 105, the audio decoder mode is recognized for audio hardware decoding process, using audio hardware decoding side Formula is decoded to packets of audio data.
In the step, above-mentioned PCM audio data is decoded by using audio hardware decoding process, so, work as sound Frequency decoding process from audio software decoding process to audio hardware decoding process switch when, without from new transmission DSD voice datas, As long as being directly transferred to audio hardware decoding path to DOP voice datas to decode, so as to realize the continuous biography of voice data It is defeated, improve the experience of user.
In the embodiment of the present invention, above-mentioned mobile terminal can be with any mobile terminal for possessing DSD audio players, such as: Mobile phone, panel computer (Tablet Personal Computer), kneetop computer (Laptop Computer), individual digital Assistant (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, ) or Wearable device (Wearable Device) etc. MID.
The control method of the voice data decoding of the embodiment of the present invention, DSD voice datas are packaged into for audio hardware The packets of audio data of decoding;Recognize the audio decoder mode that the audio player is used;If recognizing the audio decoder mode For audio software decoding process, then the packets of audio data is decapsulated, obtain the DSD voice datas, and will be described DSD voice datas are converted to PCM audio data;The PCM audio data is decoded using audio software decoding process;If Recognize that the audio decoder mode is audio hardware decoding process, then packets of audio data is carried out using audio hardware decoding process Decoding.So, when the audio decoder mode that player is used switches, without from new transmission DSD voice datas, according to working as Front audio decoder mode to packets of audio data decoding, it is achieved thereby that continuously transmitting DSD during software and hardware decoding switching Voice data, and improve Consumer's Experience.
Second embodiment
Referring to Fig. 2, Fig. 2 is voice data decoding control method flow chart provided in an embodiment of the present invention, as shown in Fig. 2 Comprise the following steps:
Step 201, by DSD voice datas be packaged into for audio hardware decoding packets of audio data.
In the step, DSD data are to cannot be directly used to audio hardware decoding, if to carry out audio hardware decoding, are needed DSD data are packaged using tunneling, obtain packets of audio data.It is, for example possible to use (DOP, DSD Over PCM) agreement is packaged to DSD data, will be referred to as DOP data, above-mentioned DOP data using the DSD data after DOP protocol encapsulations Just it is used directly for audio hardware decoding to decode path to transmit using the DSD after DOP protocol encapsulations using audio hardware Data.It should be noted that DSD data are cannot directly to carry out audio hardware decoding, need to use DOP agreements to DSD data After being packaged, the DSD data after encapsulation just can be transmitted on audio hardware decoding path.
Whether the audio-frequence player device that step 202, detection are connected with the mobile terminal has the operation of disconnection.
In the step, above-mentioned audio frequency apparatus can be wired earphone, wireless headset such as bluetooth earphone or and mobile terminal The stereo set of connection, when audio-frequence player device has the operation of disconnection, can detect this trigger action for disconnecting, detection Implementation can be detected by system function, for example, by IsBluetoothA2dpOn () function bluetooth ear be checked Whether machine is connected with mobile terminal, is checked whether line control earphone connects with mobile terminal by IsWiredHeadsetOn () function Connect.So, when detecting the audio-frequence player device that is connected with the mobile terminal and having the operation of disconnection, execution step 202, from And the audio decoder mode that audio player is used preferably is recognized, while the power consumption of mobile terminal can also be saved.
If the audio-frequence player device that step 203, detection are connected with the mobile terminal has the operation of disconnection, the sound is recognized The audio decoder mode that frequency player is used.
In the step, above-mentioned audio decoder mode can be with audio hardware decoding process, or audio software decoding side Formula, when audio player is when DSD music is played, by the unlatching shape for detecting HiFi (High-Fidelity, high-fidelity is played) State and the opening of DSD hardware decoding recognizing audio decoder mode that audio player is used, if the audio frequency is played The high-fidelity broadcast state of device and the DSD hardware decoded state of the audio player are in opening, recognize the sound Frequency player uses audio hardware decoding process;If the high-fidelity of the audio player is played and is closed or described The DSD hardware decoded state of audio player is closed, and recognizes that the audio player uses audio software decoding side Formula;For example, user is opened when HiFi is played or DSD hardware decoded state is closed, and can send request command to being System, by detecting that this request command may determine that unlatching HiFi plays or closes HiFi and plays and DSD hardware decoding State.So, it is different to carry out to the packets of audio data in above-mentioned steps by recognizing currently used audio decoder mode Decoding, to adapt to voice data transmission, so as to realize continuously transmitting when software and hardware decoding switching is carried out.
If step 204, recognizing that the audio decoder mode for audio software decoding process, is entered to the packets of audio data Row decapsulation, obtains the DSD voice datas, and the DSD voice datas are converted to into PCM audio data.
In the step, it is possible to use DOP agreements are packaged DSD data, become DOP data, when audio decoder mode For audio software decoding process, the packets of audio data is decapsulated, obtain the DSD voice datas, DOP data have head Portion's information, i.e. DOP data headers have signal data, realized by this header information DOP data and DSD voice datas it Between mutual conversion, as long as the data with this header information just be DOP data, remove this header information and be converted to DSD voice datas, and DSD voice datas are converted to into PCM audio data, such audio software decoding process just can be to PCM Voice data is decoded.
Step 205, the PCM audio data is decoded using audio software decoding process.
In the step, above-mentioned PCM audio data is decoded by using audio software decoding process, so, work as sound Frequency decoding process from audio hardware decoding process to audio software decoding process switch when, without from new transmission DSD voice datas, As long as converting to DOP voice datas, so as to realize continuously transmitting for voice data, the experience of user is improve.
If step 206, the audio decoder mode is recognized for audio hardware decoding process, using audio hardware decoding side Formula is decoded to packets of audio data.
In the step, above-mentioned PCM audio data is decoded by using audio hardware decoding process, so, work as sound Frequency decoding process from audio software decoding process to audio hardware decoding process switch when, without from new transmission DSD voice datas, As long as being directly transferred to audio hardware decoding path to DOP voice datas to decode, so as to realize the continuous biography of voice data It is defeated, improve the experience of user.
Optionally, the step of audio decoder mode that the identification audio player is used, including:
Detect the high-fidelity broadcast state of the audio player;
Detect the DSD hardware decoded state of the audio player;
If at the DSD hardware decoded state of the high-fidelity broadcast state of the audio player and the audio player In opening, recognize that the audio player uses audio hardware decoding process.
In the embodiment, by detecting the high-fidelity broadcast state of frequency player and the DSD of the audio player Hardware decoded state is in opening, one finger can occur to system when such as audio player plays DSD music by HiFi Order opens HiFi broadcast states to represent, by this instruction HiFi (high-fidelity) broadcast state can be recognized, is connect by detection Bit stream digital hardware decoded state is sent to the instruction of system and can recognize DSD hardware decoded state when opening, so, work as inspection The DSD hardware decoded state for measuring above-mentioned high-fidelity broadcast state and the audio player recognizes audio frequency in opening Player uses audio hardware decoding process.It should be noted that first embodiment can also be applied in above-mentioned embodiment Corresponding steps in, and identical technique effect can be reached, in order to avoid repeating, be not repeated herein.
Optionally, the step of audio decoder mode that the identification audio player is used, including:
Detect the high-fidelity broadcast state of the audio player;
Detect the DSD hardware decoded state of the audio player;
If the high-fidelity of the audio player play be closed or the audio player DSD hardware solution Code state is closed, and recognizes that the audio player uses audio software decoding process.
In the embodiment, by detecting that the high-fidelity broadcasting of audio player is closed or the audio frequency is broadcast The DSD hardware decoded state for putting device is closed, and e.g., detects the finger of the high-fidelity broadcast state for closing audio player Order detects the instruction for closing DSD hardware decoded state, then recognize that audio player uses audio software decoding process. Such as, when the operation that earphone is extracted from the earpiece holes of mobile phone is detected, will notification audio player in form of a message, this when Wait and suspend currently playing music, if carry out when audio software decoding is played without configure the decoder of player but will DOP voice datas are converted to DSD voice datas and carry out audio software decoding, can thus realize the continuous biography of voice data It is defeated.It should be noted that can also be applied in the corresponding steps of first embodiment in above-mentioned embodiment, and can reach identical Technique effect, in order to avoid repeat, be not repeated herein.
Optionally, it is described the step of the DSD voice datas are converted to into PCM audio data, including:
Sampling processing is carried out to the DSD voice datas with default sample rate, to obtain PCM audio data.
In the embodiment, default sample rate is configured according to the attribute of different processor chips, at present application Processor only supports the voice data streaming of 192KHz sample rates, and the sample rate of DSD audio streams is 2.8244MHz, so Default sample rate can be 192KHz, and DSD voice datas are carried out to obtain PCM audio stream after above-mentioned sampling processing, then press Audio decoder chip is streamed to according to the pcm audio of the sample rate of 192KHz.So, by the way that DOP voice datas are converted to into DSD Voice data, and DSD voice datas are converted to into PCM audio data, so as to by PCM audio data transmission audio software decode into Row decoding, it is possible to achieve continuously transmitting when software and hardware decoding process switches.It should be noted that may be used also in above-mentioned embodiment In to be applied to the corresponding steps of first embodiment, and identical technique effect can be reached, in order to avoid repeating, no longer be tired out herein State.
The control method of the voice data decoding of the embodiment of the present invention, DSD voice datas are packaged into for audio hardware The packets of audio data of decoding;Whether the audio-frequence player device that detection is connected with the mobile terminal has the operation of disconnection;If detection The audio-frequence player device being connected with the mobile terminal has the operation of disconnection, recognizes the audio decoder that the audio player is used Mode;If recognizing, the audio decoder mode is audio software decoding process, and the packets of audio data is decapsulated, and is obtained To the DSD voice datas, and the DSD voice datas are converted to into PCM audio data;Using audio software decoding process pair The PCM audio data is decoded;If recognizing, the audio decoder mode is audio hardware decoding process, hard using audio frequency Part decoding process is decoded to packets of audio data.So, when the audio decoder mode that player is used switches, without From new transmission DSD voice datas, packets of audio data is decoded according to current audio decoder mode, it is achieved thereby that soft DSD voice datas are continuously transmitted during hardware decoding switching, and improves Consumer's Experience.
3rd embodiment
Referring to Fig. 3, Fig. 3 is the structure chart of the mobile terminal that the present invention implements to provide, and can realize embodiment one and embodiment The details of the control method of two voice datas decoding, and reach identical effect.As shown in figure 3, mobile terminal 300 includes:
Package module 301, for DSD voice datas to be packaged into the packets of audio data for audio hardware decoding.
Identification module 302, for recognizing the audio decoder mode that the audio player is used.
Modular converter 303, if for recognizing that the audio decoder mode is audio software decoding process, to the audio frequency Packet is decapsulated, and obtains the DSD voice datas, and the DSD voice datas are converted to into PCM audio data.
First decoder module 304, for being decoded to the PCM audio data using audio software decoding process.
Second decoder module 305, if for recognizing that the audio decoder mode is audio hardware decoding process, using sound Frequency hardware decoding process is decoded to packets of audio data.
Optionally, as shown in figure 4, the mobile terminal 300 also includes:
Detection module 306, for detecting whether the audio-frequence player device being connected with the mobile terminal has the operation of disconnection.
If the identification module 302 is used to detect the behaviour that the audio-frequence player device being connected with the mobile terminal has disconnection Make, recognize the audio decoder mode that the audio player is used.
Optionally, as shown in figure 5, the identification module 302 includes:
First detector unit 3021, for detecting the high-fidelity broadcast state of the audio player.
Second detector unit 3022, for detecting the DSD hardware decoded state of the audio player.
First recognition unit 3023, if the high-fidelity broadcast state and the audio frequency for the audio player is played The DSD hardware decoded state of device is in opening, recognizes that the audio player uses audio hardware decoding process.
Optionally, as shown in fig. 6, the identification module 302 includes:
3rd detector unit 3024, for detecting the high-fidelity broadcast state of the audio player.
4th detector unit 3025, for detecting the DSD hardware decoded state of the audio player.
Second recognition unit 3026, if the high-fidelity broadcasting for the audio player is closed or described The DSD hardware decoded state of audio player is closed, and recognizes that the audio player uses audio software decoding side Formula.
Optionally, if the modular converter 303 is used to recognize the audio decoder mode for audio software decoding process, The packets of audio data is decapsulated, the DSD voice datas are obtained, and with default sample rate to the DSD audio frequency number According to sampling processing is carried out, to obtain PCM audio data.
Mobile terminal 300 can realize each process that mobile terminal is realized in previous embodiment, and can reach identical Technique effect, to avoid repeating, repeats no more here.
The mobile terminal 300 of the embodiment of the present invention, by DSD voice datas the audio frequency number for audio hardware decoding is packaged into According to bag;Recognize the audio decoder mode that the audio player is used;If recognizing, the audio decoder mode is audio software solution Code mode, then decapsulate to the packets of audio data, obtains the DSD voice datas, and the DSD voice datas are turned It is changed to PCM audio data;The PCM audio data is decoded using audio software decoding process;If recognizing the audio frequency Decoding process is audio hardware decoding process, then packets of audio data is decoded using audio hardware decoding process.So, when When the audio decoder mode that player is used switches, without from new transmission DSD voice datas, according to current audio decoder Mode it is achieved thereby that continuously transmitting DSD voice datas during software and hardware decoding switching, and is carried decoding to packets of audio data High Consumer's Experience.
Fourth embodiment
Referring to Fig. 7, Fig. 7 is the structure chart of the mobile terminal that the present invention implements to provide, and can realize the application in embodiment one The details of program display method, and reach identical effect.As shown in fig. 7, mobile terminal 700 includes:At least one processor 701st, memory 702, at least one network interface 704 and user interface 703.Each component in mobile terminal 700 is by total Linear system system 705 is coupled.It is understood that bus system 705 is used to realize the connection communication between these components.Bus system 705 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But for clear explanation For the sake of, in the figure 7 various buses are all designated as into bus system 705.
Wherein, user interface 703 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 702 of system and method described herein be intended to including but not limited to these and arbitrarily its It is adapted to the memory of type.
In some embodiments, memory 702 stores following element, can perform module or data structure, or Person their subset, or their superset:Operating system 7021 and application program 7022.
Wherein, operating system 7021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and process hardware based task.Application program 7022, comprising various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 7022.
In embodiments of the present invention, by call memory 702 store program or instruction, specifically, can be application The program stored in program 7022 or instruction, processor 701 is used for:
DSD voice datas are packaged into into the packets of audio data for audio hardware decoding;
Recognize the audio decoder mode that the audio player is used;
If recognizing, the audio decoder mode is audio software decoding process, and the packets of audio data is unsealed Dress, obtains the DSD voice datas, and the DSD voice datas are converted to into PCM audio data;
The PCM audio data is decoded using audio software decoding process;
If recognizing, the audio decoder mode is audio hardware decoding process, using audio hardware decoding process to audio frequency Packet is decoded.
The method that the embodiments of the present invention are disclosed can apply in processor 701, or be realized by processor 701. A kind of possibly IC chip of processor 701, the disposal ability with signal.During realization, said method it is each Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 701 or software form.Above-mentioned process Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute The step of disclosed method, can be embodied directly in hardware decoding processor and perform and complete, or with the hardware in decoding processor And software module combination execution is completed.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 702, processor 701 reads the information in memory 702, the step of complete said method with reference to its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine to realize.For hardware is realized, processing unit can be realized in one or more special ICs (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
For software is realized, can be realized herein by performing the module (such as process, function etc.) of function described herein Described technology.Software code is storable in memory and by computing device.Memory can within a processor or Realize processor outside.
Optionally, it is described by DSD voice datas be packaged into for audio hardware decoding packets of audio data the step of it Afterwards, before the step of audio decoder mode that the detection audio player is used, processor 701 is additionally operable to detection and institute State whether the audio-frequence player device of mobile terminal connection has the operation of disconnection;
If the audio-frequence player device that detection is connected with the mobile terminal has the operation of disconnection, the audio player is recognized The audio decoder mode for using.
Optionally, processor 701 is used to perform the step of the audio decoder mode that the identification audio player is used Suddenly, including:
Detect the high-fidelity broadcast state of the audio player;
Detect the DSD hardware decoded state of the audio player;
If at the DSD hardware decoded state of the high-fidelity broadcast state of the audio player and the audio player In opening, recognize that the audio player uses audio hardware decoding process.
Optionally, processor 701 is used to perform the step of the audio decoder mode that the identification audio player is used Suddenly, including:
Detect the high-fidelity broadcast state of the audio player;
Detect the DSD hardware decoded state of the audio player;
If the high-fidelity of the audio player play be closed or the audio player DSD hardware solution Code state is closed, and recognizes that the audio player uses audio software decoding process.
Optionally, processor 701 be used to performing it is described the step of the DSD voice datas are converted to into PCM audio data, Including:
Sampling processing is carried out to the DSD voice datas with default sample rate, to obtain PCM audio data.
Mobile terminal 700 can realize each process that mobile terminal is realized in previous embodiment, and can reach identical Technique effect, to avoid repeating, repeats no more here.
The mobile terminal 700 of the embodiment of the present invention, by DSD voice datas the audio frequency number for audio hardware decoding is packaged into According to bag;Recognize the audio decoder mode that the audio player is used;If recognizing, the audio decoder mode is audio software solution Code mode, then decapsulate to the packets of audio data, obtains the DSD voice datas, and the DSD voice datas are turned It is changed to PCM audio data;The PCM audio data is decoded using audio software decoding process;If recognizing the audio frequency Decoding process is audio hardware decoding process, then packets of audio data is decoded using audio hardware decoding process.So, when When the audio decoder mode that player is used switches, without from new transmission DSD voice datas, according to current audio decoder Mode to packets of audio data decoding, it is achieved thereby that continuously transmitting DSD voice datas during software and hardware decoding switching.
Those of ordinary skill in the art are it is to be appreciated that the list of each example with reference to the embodiments described herein description Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Each specific application can be used different methods to realize described function, but this realization it is not considered that exceeding The scope of the present invention.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can pass through other Mode is realized.For example, device embodiment described above is only schematic, and for example, the division of the unit is only A kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can with reference to or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit Connect, can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize embodiment of the present invention scheme Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is realized and as independent production marketing or when using using in the form of SFU software functional unit, can be with In being stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And aforesaid storage medium includes:USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of control method of voice data decoding, is applied to be provided with the mobile terminal of audio player, it is characterised in that Including:
Direct bit streaming digital DSD voice data is packaged into into the packets of audio data for audio hardware decoding;
Recognize the audio decoder mode that the audio player is used;
If recognizing, the audio decoder mode is audio software decoding process, and the packets of audio data is decapsulated, and is obtained To the DSD voice datas, and the DSD voice datas are converted to into pulse code modulation PCM audio data;
The PCM audio data is decoded using audio software decoding process;
If recognizing, the audio decoder mode is audio hardware decoding process, using audio hardware decoding process to voice data Bag is decoded.
2. control method according to claim 1, it is characterised in that described by direct bit streaming digital DSD voice data It is described to recognize the audio frequency that the audio player is used after the step of being packaged into the packets of audio data for audio hardware decoding Before the step of decoding process, methods described also includes:
Whether the audio-frequence player device that detection is connected with the mobile terminal has the operation of disconnection;
If the audio-frequence player device that detection is connected with the mobile terminal has the operation of disconnection, recognize that the audio player is used Audio decoder mode.
3. the control method according to claims 1 or 2, it is characterised in that the identification audio player is used Audio decoder mode the step of, including:
Detect the high-fidelity broadcast state of the audio player;
Detect the DSD hardware decoded state of the audio player;
If the DSD hardware decoded state of the high-fidelity broadcast state of the audio player and the audio player is in and opens State is opened, recognizes that the audio player uses audio hardware decoding process.
4. the control method according to claims 1 or 2, it is characterised in that the identification audio player is used Audio decoder mode the step of, including:
Detect the high-fidelity broadcast state of the audio player;
Detect the DSD hardware decoded state of the audio player;
If the high-fidelity broadcasting of the audio player is closed or the DSD hardware of the audio player decodes shape State is closed, and recognizes that the audio player uses audio software decoding process.
5. the control method according to claims 1 or 2, it is characterised in that described to be converted to the DSD voice datas The step of pulse code modulation PCM audio data, including:
Sampling processing is carried out to the DSD voice datas with default sample rate, to obtain PCM audio data.
6. a kind of mobile terminal, the mobile terminal is provided with audio player, it is characterised in that include:
Package module, for DSD voice datas to be packaged into the packets of audio data for audio hardware decoding;
Identification module, for recognizing the audio decoder mode that the audio player is used;
Modular converter, if for recognizing that the audio decoder mode is audio software decoding process, to the packets of audio data Decapsulated, obtained the DSD voice datas, and the DSD voice datas are converted to into PCM audio data;
First decoder module, for being decoded to the PCM audio data using audio software decoding process;
Second decoder module, if for recognizing that the audio decoder mode is audio hardware decoding process, using audio hardware Decoding process is decoded to packets of audio data.
7. mobile terminal according to claim 6, it is characterised in that the mobile terminal also includes:
Detection module, for detecting whether the audio-frequence player device being connected with the mobile terminal has the operation of disconnection;
If the identification module is used to detect the operation that the audio-frequence player device being connected with the mobile terminal has disconnection, institute is recognized State the audio decoder mode that audio player is used.
8. the mobile terminal according to claim 6 or 7, it is characterised in that the identification module includes:
First detector unit, for detecting the high-fidelity broadcast state of the audio player;
Second detector unit, for detecting the DSD hardware decoded state of the audio player;
First recognition unit, if the DSD of the high-fidelity broadcast state and the audio player for the audio player Hardware decoded state is in opening, recognizes that the audio player uses audio hardware decoding process.
9. the mobile terminal according to claim 6 or 7, it is characterised in that the identification module includes:
3rd detector unit, for detecting the high-fidelity broadcast state of the audio player;
4th detector unit, for detecting the DSD hardware decoded state of the audio player;
Second recognition unit, if the high-fidelity broadcasting for the audio player is closed or the audio frequency is played The DSD hardware decoded state of device is closed, and recognizes that the audio player uses audio software decoding process.
10. the mobile terminal according to claim 6 or 7, it is characterised in that if the modular converter to be used for identification described Audio decoder mode is audio software decoding process, then the packets of audio data is decapsulated, and obtains the DSD audio frequency number According to, and sampling processing is carried out to the DSD voice datas with default sample rate, to obtain PCM audio data.
CN201611243104.0A 2016-12-29 2016-12-29 A kind of decoded control method of audio data and mobile terminal Active CN106648537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611243104.0A CN106648537B (en) 2016-12-29 2016-12-29 A kind of decoded control method of audio data and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611243104.0A CN106648537B (en) 2016-12-29 2016-12-29 A kind of decoded control method of audio data and mobile terminal

Publications (2)

Publication Number Publication Date
CN106648537A true CN106648537A (en) 2017-05-10
CN106648537B CN106648537B (en) 2018-10-19

Family

ID=58837021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611243104.0A Active CN106648537B (en) 2016-12-29 2016-12-29 A kind of decoded control method of audio data and mobile terminal

Country Status (1)

Country Link
CN (1) CN106648537B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107507617A (en) * 2017-08-15 2017-12-22 深圳山灵数码科技发展有限公司 A kind of system and method realized DSD audios and solved firmly
CN107580227A (en) * 2017-09-27 2018-01-12 维沃移动通信有限公司 A kind of method for video coding, mobile terminal
CN110221805A (en) * 2019-06-13 2019-09-10 上海航盛实业有限公司 Audio frequency playing method, system, terminal and storage medium
CN110636370A (en) * 2018-06-25 2019-12-31 阿里巴巴集团控股有限公司 Video processing method and device, electronic equipment and readable medium
CN113763971A (en) * 2021-09-07 2021-12-07 广州飞傲电子科技有限公司 Audio decoding control method and device and audio decoding control equipment
CN114095778A (en) * 2020-08-25 2022-02-25 海信视像科技股份有限公司 Audio hard decoding method of application-level player and display equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074257A (en) * 2011-01-17 2011-05-25 博视联(苏州)信息科技有限公司 Software and hardware-decoding general multi-media playing equipment and playing method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074257A (en) * 2011-01-17 2011-05-25 博视联(苏州)信息科技有限公司 Software and hardware-decoding general multi-media playing equipment and playing method thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107507617A (en) * 2017-08-15 2017-12-22 深圳山灵数码科技发展有限公司 A kind of system and method realized DSD audios and solved firmly
CN107507617B (en) * 2017-08-15 2022-04-22 深圳山灵数码科技发展有限公司 System and method for realizing DSD audio hard solution
CN107580227A (en) * 2017-09-27 2018-01-12 维沃移动通信有限公司 A kind of method for video coding, mobile terminal
CN107580227B (en) * 2017-09-27 2020-06-05 维沃移动通信有限公司 Video coding method and mobile terminal
CN110636370A (en) * 2018-06-25 2019-12-31 阿里巴巴集团控股有限公司 Video processing method and device, electronic equipment and readable medium
CN110636370B (en) * 2018-06-25 2022-02-01 斑马智行网络(香港)有限公司 Video processing method and device, electronic equipment and readable medium
CN110221805A (en) * 2019-06-13 2019-09-10 上海航盛实业有限公司 Audio frequency playing method, system, terminal and storage medium
CN114095778A (en) * 2020-08-25 2022-02-25 海信视像科技股份有限公司 Audio hard decoding method of application-level player and display equipment
CN113763971A (en) * 2021-09-07 2021-12-07 广州飞傲电子科技有限公司 Audio decoding control method and device and audio decoding control equipment

Also Published As

Publication number Publication date
CN106648537B (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN106648537B (en) A kind of decoded control method of audio data and mobile terminal
CN109257646A (en) Method for processing video frequency, device, electronic equipment and computer-readable medium
CN107087072A (en) A kind of audio frequency playing method and mobile terminal
TWI279156B (en) Wireless audio system using wireless LAN
CN106792454A (en) Bluetooth communication method, communicator, communication system and electronic equipment
CN107135256A (en) Bluetooth communication method, communicator, communication system and electronic equipment
CN104834623B (en) Audio frequency playing method and device
CN104507001B (en) The method for playing music of Baffle Box of Bluetooth
CN102832968B (en) Method for performing communication between mobile phone and equipment by using audio interface
CN101965708A (en) Multiple transmitter system and method
CN107481721A (en) Voice interactive method and wearable electronic for wearable electronic
CN107329726A (en) To the treating method and apparatus of the voice data of input in android system
JP2023134491A (en) Method for operating bluetooth device
CN105895128B (en) A kind of playback method and relevant apparatus
EP4086899A1 (en) Audio transmission method and electronic device
WO2021228132A1 (en) Information sending method, resource processing method, apparatus, and electronic device
CN105407225A (en) Data transmission method and Bluetooth equipment
CN107277691A (en) Multichannel audio player method, system and audio frequency net gate way apparatus based on cloud
CN109951400A (en) Instruction sending method, device, electronic equipment and the readable storage medium storing program for executing of terminal
CN106504759A (en) A kind of mixed audio processing method and terminal device
US20230370774A1 (en) Bluetooth speaker control method and system, storage medium, and mobile terminal
CN107957860A (en) Can adjust automatically sound output method and electronic device
CN103974215B (en) Control method of electronic device and electronic equipment
CN106713592A (en) Mobile terminal recording method and mobile terminal
WO2014057503A2 (en) Method and system for enabling communication between at least two communication devices using an animated character in real-time

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171107

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant after: VIVO MOBILE COMMUNICATION CO., LTD.

Applicant after: Wewo Mobile Communication Co. Ltd. Beijing branch

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant before: VIVO MOBILE COMMUNICATION CO., LTD.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200514

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Patentee after: VIVO MOBILE COMMUNICATION Co.,Ltd.

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Co-patentee before: Wewo Mobile Communication Co. Ltd. Beijing branch

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.