CN106612375B - Mobile terminal and sound effect processing method thereof - Google Patents

Mobile terminal and sound effect processing method thereof Download PDF

Info

Publication number
CN106612375B
CN106612375B CN201611215644.8A CN201611215644A CN106612375B CN 106612375 B CN106612375 B CN 106612375B CN 201611215644 A CN201611215644 A CN 201611215644A CN 106612375 B CN106612375 B CN 106612375B
Authority
CN
China
Prior art keywords
mobile terminal
sound effect
audio
preset
earphone
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.)
Active
Application number
CN201611215644.8A
Other languages
Chinese (zh)
Other versions
CN106612375A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201611215644.8A priority Critical patent/CN106612375B/en
Publication of CN106612375A publication Critical patent/CN106612375A/en
Application granted granted Critical
Publication of CN106612375B publication Critical patent/CN106612375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The invention discloses a sound effect processing method of a mobile terminal, which comprises the following steps: detecting whether the preset earphone state information changes or not; when the change of the preset earphone state information is detected, calling a sound effect slave processor to process the audio decoding data corresponding to the current audio data within the preset time; and calling a sound effect main processor after the preset time to process the audio decoding data corresponding to the current audio data, and outputting the audio decoding data processed by the sound effect main processor. The invention also discloses a mobile terminal. The invention can eliminate the harsh current sound caused by inserting or pulling the earphone into or out of the mobile terminal and improve the playing quality of audio data.

Description

Mobile terminal and sound effect processing method thereof
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a mobile terminal and a sound effect processing method of the mobile terminal.
Background
At present, along with the popularization of mobile terminals, users have higher and higher requirements on playing tone quality, tone quality and sound effect of the mobile terminals, and high code rate, multi-channel and lossless sound sources gradually become standard configurations of the mobile terminals. When the audio of the mobile terminal is researched and developed, a third-party sound effect processing module is generally required to be integrated, but when the mobile terminal processes audio data through the third-party sound effect processing module under the condition that earphone state information changes and the like, sound effect parameters of the audio data are suddenly changed, so that current sounds of different degrees appear on the mobile terminal, and the playing quality of the audio data is influenced.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal and a sound effect processing method of the mobile terminal, and aims to solve the technical problem that the playing quality of audio data is influenced by current sounds of different degrees of the mobile terminal.
In order to achieve the above object, the present invention provides a mobile terminal, including:
the detection module is used for detecting whether the preset earphone state information changes;
the first calling module is used for calling a sound effect slave processor to process audio decoding data corresponding to the current audio data within preset time when the change of the preset earphone state information is detected;
the second calling module is used for calling the sound effect main processor to process the audio decoding data corresponding to the current audio data after the preset time;
and the output module is used for outputting the audio decoding data processed by the sound effect main processor.
Optionally, the mobile terminal further includes:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring an audio connection mode when detecting that the preset earphone state information changes, wherein the audio connection mode comprises a play-out mode, an earphone connection mode and a Bluetooth connection mode;
and the output module is also used for outputting the audio decoding data processed by the sound effect main processor according to the audio connection mode.
Optionally, the detection module includes:
an obtaining unit, configured to obtain a preset function value representing the preset earphone state information;
and the judging unit is used for judging that the preset earphone state information changes when the preset function value changes.
Optionally, the mobile terminal further includes:
the judging module is used for judging whether the sound effect slave processor is in an idle state or not;
the first calling module is used for calling the sound effect slave processor to process audio decoding data corresponding to the current audio data within preset time if the sound effect slave processor is in an idle state;
and the third calling module is used for calling the sound effect main processor to process the audio decoding data corresponding to the current audio data if the sound effect slave processor is not in the idle state.
Optionally, the mobile terminal further includes:
the fourth calling module is used for calling the sound effect main processor to process the audio decoding data corresponding to the current audio data when the preset earphone state information is not detected to be changed;
the output module is further configured to output the processed audio decoding data.
In addition, in order to achieve the above object, the present invention further provides a sound processing method of a mobile terminal, wherein the sound processing method of the mobile terminal comprises the following steps:
detecting whether the preset earphone state information changes or not;
when the change of the preset earphone state information is detected, calling a sound effect slave processor to process the audio decoding data corresponding to the current audio data within the preset time;
and calling a sound effect main processor after the preset time to process the audio decoding data corresponding to the current audio data, and outputting the audio decoding data processed by the sound effect main processor.
Optionally, before the step of invoking the sound effect within the preset time and processing the audio decoding data corresponding to the current audio data from the processor, the sound effect processing method of the mobile terminal further includes:
when detecting that the preset earphone state information changes, acquiring an audio connection mode, wherein the audio connection mode comprises a play-out mode, an earphone connection mode and a Bluetooth connection mode.
The step of outputting the audio decoding data processed by the sound effect main processor comprises the following steps:
and outputting the audio decoding data processed by the sound effect main processor according to the audio connection mode.
Optionally, the step of detecting whether the preset earphone state information changes includes:
acquiring a preset function value representing the preset earphone state information;
and when the preset function value changes, judging that the preset earphone state information changes.
Optionally, before the step of invoking the sound effect within the preset time and processing the audio decoding data corresponding to the current audio data from the processor, the sound effect processing method of the mobile terminal further includes:
judging whether the sound effect slave processor is in an idle state or not;
if the sound effect slave processor is in an idle state, the step of calling the sound effect slave processor within preset time to process audio decoding data corresponding to the current audio data is executed;
and if the sound effect slave processor is not in an idle state, calling the sound effect master processor to process audio decoding data corresponding to the current audio data.
Optionally, after the step of detecting whether the earphone status information changes, the sound effect processing method of the mobile terminal further includes:
and when the preset earphone state information is not detected to be changed, calling a sound effect main processor to process the audio decoding data corresponding to the current audio data, and outputting the processed audio decoding data.
When the mobile terminal detects that the preset earphone state information changes, the sound effect slave processor is called within the preset time to process the audio decoding data corresponding to the current audio data, then the mobile terminal is switched to the sound effect master processor after the preset time to process the audio decoding data corresponding to the current audio data, and the audio decoding data processed by the sound effect master processor is output.
Drawings
Fig. 1 is a schematic diagram of an alternative hardware configuration of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication device of the mobile terminal shown in FIG. 1;
fig. 3 is a functional block diagram of a mobile terminal according to a first embodiment of the present invention;
FIG. 4 is a schematic diagram of a refinement function module of the detection module shown in FIG. 3;
fig. 5 is a functional block diagram of a mobile terminal according to a second embodiment of the present invention;
fig. 6 is a functional block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 7 is a functional block diagram of a mobile terminal according to a fourth embodiment of the present invention;
FIG. 8 is a flowchart illustrating a sound processing method of a mobile terminal according to a first embodiment of the present invention;
fig. 9 is a detailed flowchart of the step of detecting whether the preset headphone state information changes in fig. 8;
FIG. 10 is a flowchart illustrating a sound processing method of a mobile terminal according to a second embodiment of the present invention;
FIG. 11 is a flowchart illustrating a sound processing method of a mobile terminal according to a third embodiment of the present invention;
FIG. 12 is a flowchart illustrating a sound processing method for a mobile terminal according to a fourth embodiment of the present invention;
fig. 13 is a schematic diagram of the mobile terminal in the earphone unplugged state according to the embodiment of the present invention;
fig. 14 is a schematic diagram of the mobile terminal in the earphone insertion state according to the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware structure of an alternative mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication device or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may be in an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), etcThe form exists. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting devices. In particular, the broadcast receiving module 111 may receive a broadcast signal by using a signal such as multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO)@) A digital broadcasting apparatus such as a digital broadcasting apparatus, a terrestrial digital broadcasting integrated service (ISDB-T), etc. receives digital broadcasting. The broadcast receiving module 111 may be constructed as various broadcasting devices suitable for providing broadcast signals as well as the above-described digital broadcasting device. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetoothTMRadio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbeeTMAnd so on.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module is a GPS (global positioning device). According to the current technology, the location information module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS module 115 can calculate speed information by continuously calculating current position information in real time.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or jerky movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 141 as will be described below in connection with a touch screen.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include an audio output module 152, and the like.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a microphone, a buzzer, and the like.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication means such as wired and wireless communication means and satellite-based communication means that transmit data via frames or packets.
A communication apparatus in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication devices may use different air interfaces and/or physical layers. For example, the air interface used by the communication device includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and universal mobile telecommunications device (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and so forth. The following description relates to a CDMA communication device, as a non-limiting example, but such teachings are equally applicable to other types of devices.
Referring to fig. 2, the CDMA wireless communication apparatus may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station BS270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that an apparatus as shown in fig. 2 may include a plurality of BSCs 275.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a base transceiver sub-assembly (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the apparatus. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several global positioning device (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The location information module 115 as shown in fig. 1 is generally configured to cooperate with the satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication apparatus, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station BS270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the hardware structure of the mobile terminal and the structure of the communication device, the device and the method of the invention are provided with various embodiments.
The invention provides a mobile terminal.
Referring to fig. 3, fig. 3 is a functional module diagram of a mobile terminal according to a first embodiment of the present invention.
In one embodiment, the mobile terminal includes:
the detection module 10 is used for detecting whether the preset earphone state information changes;
the mobile terminal is applied to mobile terminals, and comprises a smart phone, a tablet computer and the like. In this embodiment, the mobile terminal includes an audio effect co-processing module, which includes an audio effect slave processor and an audio effect master processor. The sound effect main processor is a sound effect hardware processor, a DSP (Digital Signal Processing, abbreviated as DSP) chip is integrated in the sound effect hardware processor, and a sound effect Processing algorithm in the DSP chip has high operation speed and low power consumption; the sound effect slave processor is a sound effect software processor which can quickly respond to the change condition of the audio data and process the changed audio data in time.
The mobile terminal detects whether the preset earphone state information in the mobile terminal changes through the detection module 10, that is, whether the audio playing mode of the mobile terminal changes, for example, the audio is played through a power amplifier loudspeaker of the mobile terminal, and the audio is played through an earphone connected with the mobile terminal.
Specifically, referring to fig. 4, fig. 4 is a schematic diagram of a detailed functional module of the detection module 10 in fig. 3, where the detection module 10 includes:
an obtaining unit 11, configured to obtain a preset function value representing the preset earphone state information;
and the judging unit 12 is configured to judge that the preset earphone state information changes when the preset function value changes.
In this embodiment, the mobile terminal presets a function representing the earphone status information, where the function value of the function may be zero or one, and when the function value is zero, it represents that the earphone is inserted into the mobile terminal, that is, the mobile terminal is in the earphone insertion state; when the function value is one, the earphone is pulled out of the mobile terminal, namely, the mobile terminal is in an earphone pulling-out state. The mobile terminal obtains a preset function value representing the preset earphone state information through the obtaining unit 11, and when the preset function value changes, namely the preset function value changes from zero to one or from one to zero, the judging unit 12 judges that the preset earphone state information in the mobile terminal changes. As shown in fig. 13, the mobile terminal is in an earphone pull-out state, the mobile terminal is not connected to an earphone, and the mobile terminal plays an audio, that is, the audio is played through a power amplifier speaker, and a preset function value representing the preset earphone state information is zero.
The first calling module 20 is configured to, when detecting that the preset earphone state information changes, call a sound effect from the slave processor to process audio decoding data corresponding to current audio data within a preset time;
the second calling module 30 is configured to call the sound effect main processor to process audio decoding data corresponding to the current audio data after the preset time;
and the output module 40 is used for outputting the audio decoding data processed by the sound effect main processor.
The mobile terminal calls a creating function of a preset sound effect output channel module, creates a self-adaptive switching sound effect output channel module, initializes the sound effect output channel module, calls a detection function of preset earphone state information, detects whether the preset earphone state information changes, calls a sound effect cooperative processing module when the mobile terminal detects that the preset earphone state information changes through a detection module 10, calls a sound effect slave processor to process audio decoding data corresponding to current audio data within a preset time through a first calling module 20, such as noise reduction, sound enhancement and the like on the audio decoding data, and calls a sound effect master processor to process the audio decoding data corresponding to the current audio data after the preset time, namely after the audio data is output stably, through a calling output module 30, and finally calling a destruction function of the sound effect output channel module, destroying and releasing the created self-adaptive switching sound effect output channel module, and outputting the processed audio data, namely playing the processed audio.
As shown in fig. 14, the mobile terminal is in an earphone insertion state, the earphone is connected to the mobile terminal through an earphone hole in the mobile terminal, and the mobile terminal plays an audio, where the audio is played through the earphone, and a preset function value representing the preset earphone state information is one, if a user pulls out the earphone from the mobile terminal at this time, the preset function value of the preset earphone state information becomes zero, the mobile terminal is in an earphone pull-out state, that is, the preset earphone state information in the mobile terminal changes, at this time, the mobile terminal calls a sound effect slave processor to process the played audio, and after a certain time, the mobile terminal switches to a sound effect master processor to process the played audio, switches a sound effect output channel of the earphone to a sound effect output channel of a power amplifier speaker, and plays the audio through the power amplifier speaker of the mobile terminal.
In this embodiment, when detecting that the preset earphone state information changes, the mobile terminal of the present invention invokes the audio slave processor within the preset time to process the audio decoding data corresponding to the current audio data, then switches to the audio master processor after the preset time to process the audio decoding data corresponding to the current audio data, and outputs the audio decoding data processed by the audio master processor.
Further, referring to fig. 5, a functional module diagram of a second embodiment of the mobile terminal of the present invention can be obtained based on the first embodiment, in this embodiment, the mobile terminal further includes:
the acquiring module 50 is configured to acquire an audio connection mode when detecting that the preset earphone state information changes, where the audio connection mode includes a play-out mode, an earphone connection mode, and a bluetooth connection mode;
the output module 40 is further configured to output the audio decoding data processed by the sound effect main processor according to the audio connection mode.
When the mobile terminal detects that the preset earphone state information changes through the detection module 10, an audio connection mode is obtained, wherein the audio connection mode comprises a play-out mode, an earphone connection mode and a Bluetooth connection mode. In a specific implementation, the audio connection mode further includes a sound connection mode, which can be divided into a wired connection mode and a wireless connection mode, wherein the wired connection mode is used for connecting the mobile terminal and the sound through one connection line, and the wireless connection mode is used for connecting the mobile terminal and the sound through bluetooth. The mobile terminal can rapidly switch the audio output channel according to the current audio connection mode, so that the mobile terminal outputs the audio data processed by the sound effect main processor according to the audio output channel.
In this embodiment, when detecting that the preset state information of the earphone changes, the present invention obtains the audio connection mode, and outputs the audio decoding data processed by the sound effect main processor according to the audio connection mode.
Further, referring to fig. 6, a functional module diagram of a third embodiment of the mobile terminal according to the present invention can be obtained based on the first or second embodiment, in this embodiment, the mobile terminal further includes:
the judging module 60 is used for judging whether the sound effect slave processor is in an idle state;
the first calling module 20 is configured to, if the slave audio-effect processor is in an idle state, call the slave audio-effect processor within a preset time to process audio decoding data corresponding to current audio data;
the third invoking module 70 is configured to invoke the main sound effect processor to process the audio decoding data corresponding to the current audio data if the sub sound effect processor is not in the idle state.
When the mobile terminal detects that the earphone state information changes through the detection module 10, whether the sound effect slave processor is in an idle state is judged, if the sound effect slave processor is in the idle state, the sound effect slave processor is called to process audio decoding data corresponding to current audio data within preset time, and if the sound effect slave processor is not in the idle state, the sound effect master processor is called to process the audio decoding data corresponding to the current audio data.
In the implementation, the method and the device can call the sound effect slave processor to process the audio data when the sound effect slave processor is idle, and can also call the sound effect master processor to process the audio data when the sound effect slave processor is not idle, so that the processing speed of the audio data is improved.
Further, referring to fig. 7, a functional module diagram of a fourth embodiment of the mobile terminal according to the present invention can be obtained based on the first, second, or third embodiments, and in this embodiment, the mobile terminal further includes:
the fourth calling module 80 is configured to, when it is detected that the preset earphone state information does not change, call the sound effect main processor to process audio decoding data corresponding to the current audio data;
the output module 40 is further configured to output the processed audio decoding data.
And when the mobile terminal detects that the preset earphone state information is not changed, calling a sound effect main processor to process audio decoding data corresponding to the current audio data and outputting the processed audio decoding data.
When the preset earphone state information is not changed, the mobile terminal only calls the sound effect master processor and does not call the sound effect slave processor, so that the processing speed of the audio data is improved.
The invention further provides a sound effect processing method of the mobile terminal.
Referring to fig. 8, fig. 8 is a flowchart illustrating a sound processing method of a mobile terminal according to a first embodiment of the present invention.
In this embodiment, the sound effect processing method of the mobile terminal includes:
step S10, detecting whether the preset earphone state information changes;
the sound effect processing method of the mobile terminal is applied to the mobile terminal, and the mobile terminal comprises a smart phone, a tablet computer and the like. In this embodiment, the mobile terminal includes an audio effect co-processing module, which includes an audio effect slave processor and an audio effect master processor. The sound effect main processor is a sound effect hardware processor, a DSP (Digital Signal Processing, abbreviated as DSP) chip is integrated in the sound effect hardware processor, and a sound effect Processing algorithm in the DSP chip has high operation speed and low power consumption; the sound effect slave processor is a sound effect software processor which can quickly respond to the change condition of the audio data and process the changed audio data in time.
The mobile terminal detects whether preset earphone state information in the mobile terminal changes, that is, whether a mode of playing audio by the mobile terminal changes, for example, playing audio through a power amplifier loudspeaker of the mobile terminal, and playing audio through an earphone connected with the mobile terminal.
Specifically, referring to fig. 9, fig. 9 is a schematic diagram of a detailed flow of step S10 in fig. 8, where the step S10 includes:
step S11, acquiring a preset function value representing the preset earphone state information;
and step S12, when the preset function value changes, judging that the preset earphone state information changes.
In this embodiment, the mobile terminal presets a function representing the earphone status information, where the function value of the function may be zero or one, and when the function value is zero, it represents that the earphone is inserted into the mobile terminal, that is, the mobile terminal is in the earphone insertion state; when the function value is one, the earphone is pulled out of the mobile terminal, namely, the mobile terminal is in an earphone pulling-out state. The mobile terminal obtains a preset function value representing the preset earphone state information through the obtaining unit 11, and when the preset function value changes, namely the preset function value changes from zero to one or from one to zero, the judging unit 12 judges that the preset earphone state information in the mobile terminal changes. As shown in fig. 13, the mobile terminal is in an earphone pull-out state, the mobile terminal is not connected to an earphone, and the mobile terminal plays an audio, that is, the audio is played through a power amplifier speaker, and a function value indicating the preset earphone state information is zero.
Step S20, when detecting that the preset earphone state information changes, calling a sound effect from the processor to process the audio decoding data corresponding to the current audio data within the preset time;
and step S30, calling the sound effect main processor after the preset time to process the audio decoding data corresponding to the current audio data, and outputting the audio decoding data processed by the sound effect main processor.
The mobile terminal calls a creating function of a preset sound effect output channel module, creates a self-adaptive switching sound effect output channel module, initializes the sound effect output channel module, calls a detection function of preset earphone state information, detects whether the preset earphone state information changes, calls a sound effect cooperative processing module when the mobile terminal detects that the preset earphone state information changes, calls a sound effect slave processor within preset time to process audio decoding data corresponding to the current audio data, such as noise reduction, sound enhancement and the like on the audio decoding data, calls a sound effect master processor to process the audio decoding data corresponding to the current audio data after the preset time, namely after the audio data is output stably, quickly responds to a sound effect processing algorithm, and finally calls a destroying function of the sound effect output channel module, and destroying and releasing the created self-adaptive switching sound effect output channel module, and outputting the processed audio data, namely playing the processed audio.
As shown in fig. 14, the mobile terminal is in an earphone insertion state, the earphone is connected to the mobile terminal through an earphone hole in the mobile terminal, and the mobile terminal plays an audio, where the audio is played through the earphone, and a preset function value representing the preset earphone state information is one, if a user pulls out the earphone from the mobile terminal at this time, the preset function value of the preset earphone state information becomes zero, the mobile terminal is in an earphone pull-out state, that is, the preset earphone state information in the mobile terminal changes, at this time, the mobile terminal calls a sound effect slave processor to process the played audio, and after a certain time, the mobile terminal switches to a sound effect master processor to process the played audio, switches a sound effect output channel of the earphone to a sound effect output channel of a power amplifier speaker, and plays the audio through the power amplifier speaker of the mobile terminal.
In this embodiment, when detecting that the preset earphone state information changes, the mobile terminal of the present invention invokes the audio slave processor within the preset time to process the audio decoding data corresponding to the current audio data, then switches to the audio master processor after the preset time to process the audio decoding data corresponding to the current audio data, and outputs the audio decoding data processed by the audio master processor.
Further, referring to fig. 10, a flowchart of a second embodiment of the sound processing method of the mobile terminal according to the present invention can be obtained based on the first embodiment, in this embodiment, before the step S20, the sound processing method of the mobile terminal further includes:
step S40, when detecting that the preset earphone state information changes, acquiring an audio connection mode, wherein the audio connection mode comprises a play mode, an earphone connection mode and a Bluetooth connection mode.
The step S30 includes:
and step S31, outputting the audio decoding data processed by the sound effect main processor according to the audio connection mode.
When the mobile terminal detects that the preset earphone state information changes, an audio connection mode is obtained, wherein the audio connection mode comprises a play-out mode, an earphone connection mode and a Bluetooth connection mode. In a specific implementation, the audio connection mode further includes a sound connection mode, which can be divided into a wired connection mode and a wireless connection mode, wherein the wired connection mode is used for connecting the mobile terminal and the sound through one connection line, and the wireless connection mode is used for connecting the mobile terminal and the sound through bluetooth. The mobile terminal can rapidly switch the audio output channel according to the current audio connection mode, so that the mobile terminal outputs the audio data processed by the sound effect main processor according to the audio output channel.
In this embodiment, when detecting that the preset earphone state information changes, the present invention obtains an audio connection mode, and outputs audio decoding data processed by the sound effect main processor according to the audio connection mode.
Further, referring to fig. 11, a flow chart of a third embodiment of the sound processing method of the mobile terminal according to the present invention can be obtained based on the first or second embodiment, in this embodiment, before the step S20, the sound processing method of the mobile terminal further includes:
step S50, judging whether the sound effect slave processor is in idle state;
if the slave processor of the sound effect is in the idle state, executing step S20, namely invoking the slave processor of the sound effect within the preset time to process the audio decoding data corresponding to the current audio data;
and step S60, if the sound effect slave processor is not in an idle state, calling the sound effect master processor to process the audio decoding data corresponding to the current audio data.
When the mobile terminal detects that the earphone state information changes, whether the sound effect slave processor is in an idle state or not is judged, if the sound effect slave processor is in the idle state, the sound effect slave processor is called within preset time to process audio decoding data corresponding to current audio data, and if the sound effect slave processor is not in the idle state, the sound effect master processor is called to process the audio decoding data corresponding to the current audio data.
In the implementation, the method and the device can call the sound effect slave processor to process the audio data when the sound effect slave processor is idle, and can also call the sound effect master processor to process the audio data when the sound effect slave processor is not idle, so that the processing speed of the audio data is improved.
Further, referring to fig. 12, a flowchart of a fourth embodiment of the sound processing method of the mobile terminal according to the present invention can be obtained based on the first, second or third embodiments, in this embodiment, after step S10, the sound processing method of the mobile terminal further includes:
and step S70, when the preset earphone state information is not detected to be changed, calling the sound effect main processor to process the audio decoding data corresponding to the current audio data, and outputting the processed audio decoding data.
And when the mobile terminal detects that the preset earphone state information is not changed, calling a sound effect main processor to process audio decoding data corresponding to the current audio data and outputting the processed audio decoding data.
When the preset earphone state information is not changed, the mobile terminal only calls the sound effect master processor and does not call the sound effect slave processor, so that the processing speed of the audio data is improved.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A mobile terminal, characterized in that the mobile terminal comprises:
the detection module is used for detecting whether the preset earphone plugging state information changes;
the first calling module is used for calling the sound effect software processor within the preset time to process the audio decoding data corresponding to the current audio data when the change of the plugging and unplugging state information of the preset earphone is detected;
the second calling module is used for calling the sound effect hardware processor to process the audio decoding data corresponding to the current audio data after the preset time;
and the output module is used for outputting the audio decoding data processed by the sound effect hardware processor.
2. The mobile terminal of claim 1, wherein the mobile terminal further comprises:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring an audio connection mode when detecting that the plugging and unplugging state information of a preset earphone changes, wherein the audio connection mode comprises a play-out mode, an earphone connection mode and a Bluetooth connection mode;
and the output module is also used for outputting the audio decoding data processed by the sound effect hardware processor according to the audio connection mode.
3. The mobile terminal of claim 1, wherein the detection module comprises:
the acquisition unit is used for acquiring a preset function value representing the plugging and unplugging state information of the preset earphone;
and the judging unit is used for judging that the preset earphone plugging state information changes when the preset function value changes.
4. The mobile terminal of claim 1, wherein the mobile terminal further comprises:
the judging module is used for judging whether the sound effect software processor is in an idle state or not;
the first calling module is used for calling the sound effect software processor within preset time to process audio decoding data corresponding to the current audio data if the sound effect software processor is in an idle state;
and the third calling module is used for calling the sound effect hardware processor to process the audio decoding data corresponding to the current audio data if the sound effect software processor is not in the idle state.
5. The mobile terminal of any of claims 1-4, wherein the mobile terminal further comprises:
the fourth calling module is used for calling the sound effect hardware processor to process the audio decoding data corresponding to the current audio data when the preset earphone plugging state information is not detected to be changed;
the output module is further configured to output the processed audio decoding data.
6. A sound effect processing method of a mobile terminal is characterized by comprising the following steps:
detecting whether the preset earphone plugging state information changes;
when the change of the plugging and unplugging state information of the preset earphone is detected, calling a sound effect software processor within the preset time to process audio decoding data corresponding to the current audio data;
and calling a sound effect hardware processor to process audio decoding data corresponding to the current audio data after the preset time, and outputting the audio decoding data processed by the sound effect hardware processor.
7. The mobile terminal sound-effect processing method of claim 6, wherein before the step of calling the sound-effect software processor within the preset time to process the audio decoding data corresponding to the current audio data, the mobile terminal sound-effect processing method further comprises:
when detecting that the preset earphone plugging state information changes, acquiring an audio connection mode, wherein the audio connection mode comprises a play-out mode, an earphone connection mode and a Bluetooth connection mode;
the step of outputting the audio decoding data processed by the sound effect hardware processor comprises the following steps:
and outputting the audio decoding data processed by the sound effect hardware processor according to the audio connection mode.
8. The sound-effect processing method of mobile terminal according to claim 6, wherein said step of detecting whether the preset earphone plugging/unplugging status information changes comprises:
acquiring a preset function value representing the plugging and unplugging state information of the preset earphone;
and when the preset function value changes, judging that the plugging and unplugging state information of the preset earphone changes.
9. The mobile terminal sound-effect processing method of claim 6, wherein before the step of calling the sound-effect software processor within the preset time to process the audio decoding data corresponding to the current audio data, the mobile terminal sound-effect processing method further comprises:
judging whether the sound effect software processor is in an idle state or not;
if the sound effect software processor is in an idle state, executing a step of calling the sound effect software processor within preset time to process audio decoding data corresponding to the current audio data;
and if the sound effect software processor is not in an idle state, calling a sound effect hardware processor to process audio decoding data corresponding to the current audio data.
10. The sound-effect processing method of mobile terminal according to any of claims 6-9, wherein after the step of detecting whether the preset earphone plugging/unplugging state information changes, the sound-effect processing method of mobile terminal further comprises:
and when detecting that the plugging and unplugging state information of the preset earphone is not changed, calling a sound effect hardware processor to process audio decoding data corresponding to the current audio data and outputting the processed audio decoding data.
CN201611215644.8A 2016-12-23 2016-12-23 Mobile terminal and sound effect processing method thereof Active CN106612375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611215644.8A CN106612375B (en) 2016-12-23 2016-12-23 Mobile terminal and sound effect processing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611215644.8A CN106612375B (en) 2016-12-23 2016-12-23 Mobile terminal and sound effect processing method thereof

Publications (2)

Publication Number Publication Date
CN106612375A CN106612375A (en) 2017-05-03
CN106612375B true CN106612375B (en) 2020-03-13

Family

ID=58636781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611215644.8A Active CN106612375B (en) 2016-12-23 2016-12-23 Mobile terminal and sound effect processing method thereof

Country Status (1)

Country Link
CN (1) CN106612375B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052239A (en) * 2006-04-03 2007-10-10 英华达(上海)电子有限公司 High frequency circuit and its method for eliminating earphone noise
CN201750528U (en) * 2010-03-31 2011-02-16 宇龙计算机通信科技(深圳)有限公司 Audio processing device
CN205017561U (en) * 2015-08-24 2016-02-03 上海与德通讯技术有限公司 Electronic equipment and suppression circuit of earphone plug plosive thereof
CN106060143A (en) * 2016-06-21 2016-10-26 徐文波 Multilayer server architecture based sound effect control device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226766B (en) * 2007-01-19 2012-06-20 鸿富锦精密工业(深圳)有限公司 Audio play device automatically adjusting play parameter
CN101841588B (en) * 2009-03-17 2014-04-30 深圳富泰宏精密工业有限公司 Audio interface device and electronic device using same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052239A (en) * 2006-04-03 2007-10-10 英华达(上海)电子有限公司 High frequency circuit and its method for eliminating earphone noise
CN201750528U (en) * 2010-03-31 2011-02-16 宇龙计算机通信科技(深圳)有限公司 Audio processing device
CN205017561U (en) * 2015-08-24 2016-02-03 上海与德通讯技术有限公司 Electronic equipment and suppression circuit of earphone plug plosive thereof
CN106060143A (en) * 2016-06-21 2016-10-26 徐文波 Multilayer server architecture based sound effect control device

Also Published As

Publication number Publication date
CN106612375A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
US8171427B2 (en) Mobile terminal and controlling method thereof
CN105188098B (en) Network switching device and network switching method of mobile terminal
CN106157970B (en) Audio identification method and terminal
CN104834517A (en) Mobile terminal power-saving method and mobile terminal
CN106547439B (en) Method and device for processing message
CN106210286B (en) Parameter adjusting method and device for double-screen mobile terminal
CN106791238B (en) Call control method and device of multi-party call conference system
CN109101447B (en) Method and terminal for parallel execution of OTG function and charging function
CN104796956A (en) Mobile terminal network switching method and mobile terminal
CN105551479B (en) Mobile terminal noise reduction method and device
CN104915140A (en) Processing method based on virtual key touch operation data and processing device based on virtual key touch operation data
CN105357367A (en) Keystroke identification device and method based on pressure sensor
CN106453863B (en) Method and system for controlling terminal and earphone
CN104967949A (en) Sound effect adjusting method and device
CN107132967B (en) Application starting method and device, storage medium and terminal
CN106790810B (en) Radio frequency seat device, circuit board and mobile terminal
CN106648324B (en) Hidden icon control method and device and terminal
CN105722246B (en) Network speed superposition device and method
CN109240579B (en) Touch operation method, equipment and computer storage medium
CN110971726A (en) Electronic equipment and subassembly, camera module thereof
CN109168029B (en) Method, device and computer-readable storage medium for adjusting resolution
CN104731499A (en) Method and device for starting background applications and mobile terminal
CN105791541B (en) Screenshot method and mobile terminal
CN104659469A (en) Antenna assembly and control method thereof
CN107241497B (en) Mobile terminal and loudness output adjusting method

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
GR01 Patent grant
GR01 Patent grant