A kind of sound transmission method, mobile terminal and computer readable storage mediumTechnical field
The present invention relates to a kind of mobile communication technology field more particularly to sound transmission method, mobile terminal and calculatingMachine readable storage medium storing program for executing.
Background technology
With the development of internet and popularizing for terminal, the user group of terminal is increasing, while also being proposed to softwareMore intelligence, the demand of hommization.
In existing technology, terminal in fact, although by user as a game machine or television set, it is also possible to oneLearning machine, it is also possible to which more enjoyment are brought in the paradise etc. for becoming baby to our life.More with communication productNew to regenerate, mobile terminal (such as mobile phone, individual digital assistant PDA etc.) has become the communication tool of people's indispensability.Various sidesThe function that persons who happens to be on hand for an errand live can be realized on mobile terminals, such as mobile TV, GPS, mobile payment etc., be required for movingTerminal is linked into internet and could realize.
With the fast development of electronic industry, mobile terminal intelligence degree is higher and higher.Mobile terminal researches and develops companyIncreasingly focus on intelligent, human oriented design.Under the background of this mobile terminal fast development, the operation readiness and human nature of terminalChange is designed to the very important part of mobile terminal.
Present mobile phone opens two in application, only most post-opening application at this time just has voice transmission simultaneously, answers moreSound is unable to simultaneous transmission and cannot selectively control the sound size of specified application respectively, and user experience is bad.
The problem of being unable to simultaneous transmission for the sound more applied in the related technology, not yet proposes solution at present.
Invention content
It is a primary object of the present invention to propose a kind of sound transmission method, mobile terminal and computer-readable storage mediumMatter, it is intended to solve the problems, such as that the sound more applied in the related technology is unable to simultaneous transmission.
To achieve the above object, the embodiment of the present invention proposes a kind of sound transmission method, including:
It detects while opening the first application and the second application;
The L channel of earphone is matched with first application, the right channel of the earphone and described second are appliedIt is matched;
The sound of first application described in L channel and right channel simultaneous transmission by the earphone and second application.
Preferably, the L channel of earphone is being matched with first application, by the right channel of the earphone and instituteSecond is stated using after being matched, the method further includes:
The volume adjustment frame of volume adjustment is popped up in display interface;
The volume of first application and second application is adjusted respectively according to the volume adjustment frame.
Preferably, before the volume adjustment frame that display interface pops up volume adjustment, the method further includes:
The suspension switch of virtual volume adjustment is shown in the display interface;
Start the volume adjustment frame by suspending to switch to receive.
Preferably, the volume of first application and second application is being carried out respectively according to the volume adjustment frameAfter adjusting, the method further includes:
Receive the out code for closing the volume adjustment frame, wherein the out code is except the volume adjustmentThe touch command of white space except frame;
The volume adjustment frame is closed according to the out code.
Preferably, it is applied by the first application and described second described in the L channel of the earphone and right channel simultaneous transmissionSound include:
The sound of first application described in left channel transfer by the earphone, while being passed by the right channel of the earphoneThe sound of defeated second application;Or
After the sound that described first applies is mixed with the sound of second application, pass through the left sound of the earphoneRoad and right channel transmit mixed sound.
Another aspect according to the ... of the embodiment of the present invention, additionally provides a kind of mobile terminal, and the mobile terminal includes processingDevice, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing the voice transmission program stored in memory, to realize following steps:
It detects while opening the first application and the second application;
The L channel of earphone is matched with first application, the right channel of the earphone and described second are appliedIt is matched;
The sound of first application described in L channel and right channel simultaneous transmission by the earphone and second application.
Preferably, the processor is additionally operable to execute voice transmission program, to realize following steps:
The L channel of earphone is being matched with first application, the right channel of the earphone and described second are being answeredAfter being matched, the volume adjustment frame of volume adjustment is popped up in display interface;
The volume of first application and second application is adjusted respectively according to the volume adjustment frame.
Preferably, the processor is additionally operable to execute voice transmission program, to realize following steps:
Before the volume adjustment frame that display interface pops up volume adjustment, virtual whether open shown in the display interfaceOpen the suspension switch of the volume adjustment frame;The open command for opening the volume adjustment frame is received by suspending to switch, according toThe open command opens the volume adjustment frame.
Preferably, the processor is additionally operable to execute voice transmission program, to realize following steps:
It is being adjusted to the volume of first application and second application respectively according to the volume adjustment frameAfterwards, the out code for closing the volume adjustment frame is received, wherein the out code is in addition to the volume adjustment frameWhite space touch command;
The volume adjustment frame is closed according to the out code.
Preferably, the processor is additionally operable to execute voice transmission program, to realize following steps:
The sound of first application described in left channel transfer by the earphone, while being passed by the right channel of the earphoneThe sound of defeated second application;Or
After the sound that described first applies is mixed with the sound of second application, pass through the left sound of the earphoneRoad and right channel transmit mixed sound.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of computer readable storage medium, the computerReadable storage medium storing program for executing is stored with one or more program, and one or more of programs can be by one or more processorIt executes, the step of to realize the above sound transmission method.
Through the invention, it detects while opening the first application and the second application;By the L channel of earphone and described firstUsing being matched, the right channel of the earphone is matched with second application;By the L channel of the earphone andThe sound of first application described in right channel simultaneous transmission and second application, solves the sound more applied in the related technology notThe problem of energy simultaneous transmission, the sound of two applications of simultaneous transmission are realized by the cooperation of L channel and right channel, are improvedUser experience.
Description of the drawings
The hardware architecture diagram of Fig. 1 one optional mobile terminals of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of sound transmission method according to the ... of the embodiment of the present invention;
Fig. 4 is the schematic diagram one of volume adjustment according to the ... of the embodiment of the present invention;
Fig. 5 is the schematic diagram two of volume adjustment according to the ... of the embodiment of the present invention;
Fig. 6 is the schematic diagram three of volume adjustment according to the ... of the embodiment of the present invention;
Fig. 7 is the schematic diagram four of volume adjustment according to the ... of the embodiment of the present invention;
Fig. 8 is the schematic diagram five of volume adjustment according to the ... of the embodiment of the present invention;
Fig. 9 is the block diagram of the mobile terminal according to the ... of the embodiment of the present invention for adjusting volume.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is onlyThe explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mixGround uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tabletComputer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portableThe shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometerThe fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to specialExcept element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shiftingMoving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base stationDownlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetratingFrequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communicationStandard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunicationsSystem), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (CodeDivision Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code DivisionMultiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous CodeDivision Multiple Access, TD SDMA), FDD-LTE (Frequency DivisionDuplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time DivisionDuplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 showsGo out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to needIt to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received orThe audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappearsBreath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition modeOr the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries outReason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be depositedStorage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.MikeWind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data canTo be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model.Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographiesSensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environmentThe light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's earDisplay panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generalFor three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrapDisplay panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be usedForms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminalFamily is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 withAnd other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detectionTwo parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bandThe signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by itIt is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, canTo realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrapIt includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it orAfter neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thingThe type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, canThe function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specificallyIt limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothingLine data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) endMouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, numberIt is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be withFor the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program areaAnd storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one functionSound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such asAudio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easyThe property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connectionA part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storageData in device 109 execute the various functions and processing data of mobile terminal, to carry out whole monitoring to mobile terminal.PlaceReason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediatedManage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainProcessing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, putThe functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention intoRow description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network systemSystem is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successivelyFamily equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRANGround wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returningJourney (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy andCharging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 andThe control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registersSuch as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data ratesThe dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resourcesPoint, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimediaSystem) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not onlySuitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA withAnd the following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Embodiment 1
Based on above-mentioned mobile terminal, an embodiment of the present invention provides a kind of sound transmission method, Fig. 3 is according to the present inventionThe flow chart one of the sound transmission method of embodiment, as shown in figure 3, this approach includes the following steps:
Step S301 is detected while being opened the first application and the second application;
Step S302 matches the L channel of earphone with first application, by the right channel of the earphone and instituteThe second application is stated to be matched;
Step S303, the first application and described second described in the L channel and right channel simultaneous transmission by the earphone are answeredSound.
Through the above steps, it detects while opening the first application and the second application;By the L channel of earphone and described theOne application is matched, and the right channel of the earphone is matched with second application;Pass through the L channel of the earphoneWith the sound of the first application described in right channel simultaneous transmission and second application, solves the sound more applied in the related technologyThe problem of being unable to simultaneous transmission realizes the sound of two applications of simultaneous transmission by the cooperation of L channel and right channel, improvesUser experience.
Fig. 4 is the schematic diagram one of volume adjustment according to the ... of the embodiment of the present invention, as shown in figure 4, popping up sound in display interfaceBefore measuring the volume adjustment frame adjusted, show that the virtual suspension for whether opening the volume adjustment frame is opened in the display interfaceIt closes, receives the open command for opening the volume adjustment frame by suspending to switch, the volume is opened according to the open commandConditioning box displays whether that opening the suspension that volume adjustment frame is opens in the presumptive area of display interface in a manner of suspension windowsIt closes, user clicks suspension switch and then opens volume adjustment frame, if white space of the user except suspension switch is clicked,It indicates that user is not intended to adjust volume, then closes suspension switch.
Fig. 5 is the schematic diagram two of volume adjustment according to the ... of the embodiment of the present invention, as shown in figure 5, by the L channel of earphoneIt is matched with first application, after the right channel of the earphone is matched with second application, on display circleThe volume adjustment frame of volume adjustment is popped up in face, is applied respectively to first application and described second according to the volume adjustment frameVolume be adjusted, respectively adjust first application A and second application B volume, can directly be shown in volume adjustment frameThe title of application, for example, the first application A is wechat, the second application B is video player.Fig. 6 is according to the ... of the embodiment of the present inventionThe schematic diagram three of volume adjustment, as shown in fig. 6, can also be mixed to the volume and the volume of the second application B of the first application AVolume is adjusted, for example, sound mix that the sound of the first application A applies B with second and then adjusting separately firstUsing the volume of the applications of A and second B, at this point, A and second can be applied by the L channel and right channel simultaneous transmission first of earphoneUsing the mixed sound of B, B can be applied to distinguish the first application A and second by different volumes.
Earphone is inserted into when opening two applications simultaneously, the sound of two applications is matched automatically by earphone left and right acoustic channels to be passedIt is defeated, and the sound of each application can be controlled respectively by the volume adjustment of screen, promote user experience.It is applied when opening two simultaneouslyAfter A and B, after being inserted into earphone at this time, mobile phone screen will appear virtual Intelligent volume and adjust the switch that suspends;User clicks to suspend and openIt closes and opens Intelligent volume adjuster bullet frame, headphones sound transmission is defaulted as the sound of left/right sound channel difference transmission application A/B;According to the slider bar of the opening sequence Auto-matching volume of application sequence, the application first opened is defaulted as A, the application secondly openedFor B, while left and right earphone gives tacit consent to matching using A/B (left ear is A, auris dextra B) respectively, passes through adjust A/B volume slides at this timeItem can control the volume using A and application B, i.e., the volume of left earphone transmission application A, the sound of right earphone transmission application B respectivelyAmount;After clicking selection sound channel mixing, A/B is applied using A/B volume sliders are i.e. controllable by adjusting, applies A/B's at this timeSound can pass through earphone simultaneous transmission;Intelligent volume adjusting bullet frame can be packed up by clicking blank space.
An embodiment of the present invention provides a kind of volume adjusting method, this method is applied to mobile terminal, mobile terminal toolThere are one audio output device, such as speaker, the output volume of the audio output device adjusts in the first range, this method packetInclude following steps:
The volume of the audio output device is determined according to the first value in first range;Mainly it is to determine current shiftingThe volume range of the audio output device of dynamic terminal, when due to using the audio output device every time, user may adjustThe highest volume of its output volume, the i.e. audio output device may change at any time, therefore, adjust the defeated of each applicationBefore going out volume, it need to determine down that the volume of the audio output device, first value are the highest of the current audio output deviceOutput volume.In addition, if only there are one apply when carrying out volume output using the audio output device (for example, intelligenceThe output of television channel content on TV), user there are one the output volume applied when being only adjusted this, the soundThe volume of sound output equipment is with adjustment.
When the first of the mobile terminal, which applies, applies while playing with second, answered the second range as described firstWith the adjustable extent of the output volume with the second application, first application and the second application are need to be using defeated to the soundGo out the application of equipment;
The first application and the scene of the second application while broadcasting in the present embodiment are during the first application plays, to use(for example, receiving the video calling of other side) is applied in dynamic the second application of startup of householder or passive startup second, and system is startedThe instruction of second application, immediately the second application start, i.e., the second application applies the state for entering and playing simultaneously with first.
First application and the second application include video player, music player and chat tool etc., same movementMay also there is multiple same type of player, by taking video player as an example, storm wind can be installed in same mobile terminal in terminalAudio and video player, skin skin player, QQ players, PPTV players etc., that is, the first application can be same class with the second applicationThe program of type is such as video player, and the two may be different types of program, and such as one is video player, anotherA is chat tool.
The volume range between minimum value and the first value in described second ranging from described first range, due to each applicationItself also carries volume adjusting module, is most likely not respectively the maximum sound for being respectively currently able to output using current output volumeAmount, also, be that can not accurately weigh each answer for same audio output device due to two applications while when playingOutput volume, it can only judge that the broadcast sound volume of which program is high from volume effect, which broadcast sound volume is low, therefore,If two applications play simultaneously, for the volume range of each program certainly less than first value, i.e. the maximum value of the second range is logicalOften less than the first value is as only being exported there are one applying when the maximum value of the second range is equal to the first value, another applicationOutput volume is zero.
An operation information is obtained, a volume adjustment value, the operation information instruction are determined in second rangeThe output volume of first application is adjusted in second range;According to the instruction of user, the range of volume adjustment is obtained,In the present embodiment during volume adjustment, the output volume of the first application and the second application is shifting relationship, i.e.,The volume adjustment value can be the volume adjustment value of the first application, or the volume adjustment value of the second application, the behaviourMake the information that information can be the output volume of the first application of instruction adjustment, or the output sound of the second application of instruction adjustmentThe information of amount is only illustrated for the former in the present embodiment.
According to the volume adjustment value, while adjusting the output volume of first application, adjustment second applicationOutput volume, i.e. an output volume in two applications changes, another necessarily changes simultaneously;Wherein, byDuring volume adjustment, the output volume of the first application and the second application is shifting relationship, that is, described firstIt is defeated after the second application adjustment when being higher than the output volume before the first application adjustment using the output volume after adjustmentGo out volume less than the output volume before the second application adjustment;Alternatively, the output volume after the first application adjustment is less thanIt is described first application adjustment before output volume when, it is described second application adjustment after output volume higher than it is described second application adjustOutput volume before whole.
In volume adjusting method disclosed by the embodiments of the present invention, the process of the first application of adjustment and the second application output volumeIt specifically includes, as shown in figure 5, the mobile terminal has a volume adjustment unit, under working condition, shown in the volume adjustment frameFor volume control item, pass through the volume of the volume and the second application B of the application of adjusting first A of volume control item.
According to the above display mode, according to volume adjustment value in the present embodiment, the output volume of the first application of adjustment it is sameWhen, the output volume of adjustment second application specifically includes:
On mobile terminal simultaneously play first application and second in application, user need adjust two application volumes, thisWhen, user need to only drag the volume control item i.e. size of adjusting sound volume, adjust the first application A and second respectively and apply BOutput volume.
The present embodiment can obtain an operation information, in sound when two applications are opened simultaneously according to the instruction of userA volume adjustment value is determined in the current volume range of output equipment (i.e. in the second range), and according to the volume adjustment value, is adjustedWhile whole first application output volume, the output volume of the second application of adjustment, that is, the output volume and second of the first application is answeredOutput volume is shifting relationship during the adjustment, to meet the different demands of user.
Preferably, it is applied by the first application and described second described in the L channel of the earphone and right channel simultaneous transmissionSound may include:The sound of first application described in left channel transfer by the earphone, while passing through the earphoneRight channel transmits the sound of second application;Or the sound applied described first and the sound of second application carry outAfter mixing, mixed sound is transmitted by the L channel and right channel of the earphone.
Embodiment 2
Another volume adjusting method is disclosed in volume adjusting method disclosed by the embodiments of the present invention, Fig. 7 is according to thisThe schematic diagram four of the volume adjustment of inventive embodiments, as shown in fig. 7, there are two volume adjustment items for mobile terminal tool, work shapeUnder state, which includes at least two volume control items, i.e. the first volume control item and the second volume control item, theOne application A corresponds to the left-hand component of the first volume control item, and the second application B corresponds to the right-hand component of the first volume control item, oftenA volume adjustment mark, the i.e. circle since left-hand component and right-hand component is isolated are all had between the both ends of a volume control itemFirst volume adjustment in shape region, i.e. the first volume control item identifies, the second volume adjustment mark on the second volume control item,Each volume adjustment mark can be moved to the both ends of the volume control item where itself, for adjusting the defeated of corresponding applicationGo out volume, the volume of the first application A and the second application B are adjusted by controlling the first volume adjustment mark.Fig. 8 is according to thisThe schematic diagram five of the volume adjustment of inventive embodiments, as shown in figure 8, first application A and second application B sound mix itAfterwards, the first application A and second is adjusted using the mixed volumes of B by dragging the second volume adjustment mark.
It should be noted that the volume control item shown on the interface of the volume space, except respectively applying for unlatching is correspondingCan also include the volume control item etc. for indicating the audio output device output volume except volume control item.
According to the above display mode, according to volume adjustment value in the present embodiment, the output volume of the first application of adjustment it is sameWhen, the specified context of the output volume of adjustment second application is:
When playing the first application A and the second application B on mobile terminal simultaneously, user needs to adjust the volume of two applications,At this point, user is identified by volume adjustment on the first volume control item, for example, along first direction mobile the (as to the right)One volume adjustment identifies, and changes the first volume adjustment mark while the position on the first volume control item, the second volumeIt is (i.e. to the left) mobile in the opposite direction in the second volume control upper edge and first party to adjust mark, wherein the volume tuneWhole value is that volume adjustment identifies the distance moved on the volume control item.
User need to only adjust the position of volume adjustment mark in the present embodiment, can adjust first and apply A and secondUsing the volume of B, and it is shifting relationship.
It should be noted that, although from the angle of audio output device, it is difficult to specifically give each using output volumeSpecific changing value, the volume that can only intuitively differentiate each application is to improve also to be reduction of, but in Design of System Software,Can by the output volume of each application account for itself highest output volume it is a certain proportion of in the form of the respective volume adjustment value of display.
For example, only there are one when application plays, highest volume is 100%, the decibel value of the highest volume be withThe variation of first value of audio output device and change, i.e., first application or second application the highest volume of itself be100%, before volume adjustment, the output volume of the first application A is the 30% of its highest volume, and the output volume of the second application B isThe 70% of its highest volume, user move the first volume adjustment mark, and it is its descant that the output volume of the first application A, which is increased,The 80% of amount, i.e. volume improves the 50% of its highest volume, then the second application B outputs it volume and is reduced to its highest automaticallyThe 20% of volume, i.e. volume reduce the 50% of its highest volume.
Above example is illustrated for volume adjustment process by two applications while when playing, and the present invention is implementedThe case where method disclosed in example is equally applicable to three even more applications while playing, at this point, volume adjustment process is aobviousShow that interface is preferably volume control interface disclosed in embodiment three, by taking three applications play simultaneously as an example, with above description classSeemingly, the corresponding third volume control item of third application and third volume adjustment mark, when the output volume for needing the first application of adjustingWhen, user only need to move the first volume adjustment by mouse or other operation keys and identify the position on the first volume control item,Second volume adjustment is identified will adjust automatically, such as first with position of the third volume adjustment mark on respective volume control itemVolume adjustment mark moves up, and the second volume adjustment mark and third volume adjustment mark can then move down a spacing automaticallyFrom the two specifically moves down how many, can freely be arranged, and preferably, the volume that the output volume of the first application improves accounts for it mostThe ratio of louder volume is a%, and the volume that the output volume of the second application and third application reduces accounts for the ratio of its respective highest volumeExample is (a/2) %.
For ease of the understanding of scheme, still illustrated so that two applications are opened simultaneously as an example in following embodiment.
The present embodiment additionally provides a kind of volume adjusting method, unlike above example, same in the present embodimentWhen play first application and second application before increase according to using collocation mode, know respectively collocation volume process, toolBody, this method is applied to mobile terminal, which has an audio output device, the output of the audio output deviceVolume adjusts in the first range, and this approach includes the following steps:
The volume of the audio output device is determined according to the first value in first range;It obtains and applies collocation modeWith each correspondence set using output volume, the set includes the collocation mode of the first application and the second application, withAnd the output volume respectively applied under the collocation mode accounts for the ratio of the second range, which can be understood as in an embodimentThe output volume respectively applied accounts for the ratio of its highest output volume, and highest output volume can be with audio output deviceThe variation of volume and change, but the volume between the minimum value and the first value in constant second ranging from first range of the ratioRange, while when being also that two applications play simultaneously, the adjustable extent of the output volume of two applications.
According to first application, the collocation mode with second application and second range, determine in the setGo out the collocation volume to match with current collocation mode, when the collocation volume is the first application and the second application collocation, respectivelyFrom output volume.
Particularly, the collocation volume can pass through the output respectively applied under the collocation mode that is stored in the setThe ratio that volume accounts for the second range is multiplied by currently respectively using highest volume (the first value of audio output device), to be calculatedThe output volume respectively applied under the collocation mode.
Later, first application and the second application are played according to the collocation volume that matching obtains.
Wherein, the process of establishing of the set of the correspondence includes:It is broadcast simultaneously for the first time in the first application and the second applicationWhen putting, the first application and the second application are arranged in pairs or groups, and according to the volume adjustment value, adjust the first application and the second applicationOutput volume, the collocation volume both obtained;First application and the second application is calculated according to the collocation volumeOutput volume account for the ratio of second range, i.e., when the first application and the second application collocation play, respective output volumeThe ratio for accounting for itself highest volume, referring specifically to above example;Store the collocation mode of first application and the second applicationThe correspondence that the ratio of second range is accounted for the output volume of the two, obtains the set of the correspondence.
In this first application and the second application simultaneously playing process, according to the operation information of acquisition, adjust againThe output volume of whole first application and the second application, the embodiment of the present invention also add on the basis of this mode of operation to describedThe process that correspondence set is updated plays out in the next use according to the newest collocation volume of each program,Save the operation that user readjusts volume, that is,
Keep the operating process of user more simplified.The renewal process is referring specifically to following steps:Step S206:It will readjustNewest collocation volume of the output volume of the first application and the second application afterwards as the two;According to the newest collocation audiovolume indicatorCalculate the newest ratio for showing that the output volume of first application and the second application accounts for second range;Described first is stored to answerWith with second application collocation mode and the newest ratio correspondence, to update the set of the correspondence.
It should be noted that in other embodiments of the present invention, can also be not provided with above-mentioned correspondence set, directly according toFixed volume plays first application and the second application, removes the output volume for adjusting each application by user again later.
After user completes volume adjustment, it can click or double-click blank space and close volume adjustment frame, according toAfter volume adjustment frame is respectively adjusted the volume of first application and second application, receives and close the volumeThe out code of conditioning box, wherein the out code refers to for the touch-control in the white space in addition to the volume adjustment frameIt enables;The volume adjustment frame is closed according to the out code.
Embodiment 3
Another aspect according to the ... of the embodiment of the present invention, additionally provides a kind of mobile terminal, and Fig. 9 is according to embodiments of the present inventionAdjusting volume mobile terminal block diagram, as shown in figure 9, the mobile terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing the voice transmission program stored in memory, to realize following steps:
It detects while opening the first application and the second application;
The L channel of earphone is matched with first application, the right channel of the earphone and described second are appliedIt is matched;
The sound of first application described in L channel and right channel simultaneous transmission by the earphone and second application.
Preferably, the processor is additionally operable to execute voice transmission program, to realize following steps:
The L channel of earphone is being matched with first application, the right channel of the earphone and described second are being answeredAfter being matched, the volume adjustment frame of volume adjustment is popped up in display interface;
The volume of first application and second application is adjusted respectively according to the volume adjustment frame.
Preferably, the processor is additionally operable to execute voice transmission program, to realize following steps:
Before the volume adjustment frame that display interface pops up volume adjustment, virtual whether open shown in the display interfaceOpen the suspension switch of the volume adjustment frame;The open command for opening the volume adjustment frame is received by suspending to switch, according toThe open command opens the volume adjustment frame.
Preferably, the processor is additionally operable to execute voice transmission program, to realize following steps:
It is being adjusted to the volume of first application and second application respectively according to the volume adjustment frameAfterwards, the out code for closing the volume adjustment frame is received, wherein the out code is in addition to the volume adjustment frameWhite space touch command;
The volume adjustment frame is closed according to the out code.
Preferably, the processor is additionally operable to execute voice transmission program, to realize following steps:
The sound of first application described in left channel transfer by the earphone, while being passed by the right channel of the earphoneThe sound of defeated second application;Or
After the sound that described first applies is mixed with the sound of second application, pass through the left sound of the earphoneRoad and right channel transmit mixed sound.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of computer readable storage medium, the computerReadable storage medium storing program for executing is stored with one or more program, and one or more of programs can be by one or more processorIt executes, the step of to realize the above sound transmission method.
Embodiment 4
The embodiment of the present invention detects while opening the first application and the second application;By the L channel of earphone and described theOne application is matched, and the right channel of the earphone is matched with second application;Pass through the L channel of the earphoneWith the sound of the first application described in right channel simultaneous transmission and second application, solves the sound more applied in the related technologyThe problem of being unable to simultaneous transmission realizes the sound of two applications of simultaneous transmission by the cooperation of L channel and right channel, improvesUser experience.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-rowHis property includes, so that process, method, article or device including a series of elements include not only those elements, andAnd further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsicElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including thisThere is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior artGoing out the part of contribution can be expressed in the form of software products, which is stored in a storage mediumIn (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, serviceDevice, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specificEmbodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the artUnder the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very muchForm, all of these belong to the protection of the present invention.