Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
As shown in Figure 1, the audio frequency playing method of a present invention at least embodiment, is applied to mobile terminal, it is described mobile whole
At least two sounding bodies positioned at different location are provided on end, the method includes:
Step 101, the target motor pattern of currently employed virtual sound source is determined, the target motor pattern is for indicating
The dynamic motion mode of the corresponding virtual sound source of audio signal of target audio file.
At least two sounding bodies positioned at different location are provided in the embodiment of the present invention, on mobile terminal, when at least
When two sounding bodies carry out audio broadcasting, the sound that user is played by least two sounding bodies can navigate to a virtual sound source,
For being simultaneously emitted by identical volume such as sounding body 20 in Fig. 2 and sounding body 21, user's first 22 can position the virtual sound source and be located at O
Place.It is the audio experience for being supplied to user more rich in the embodiment, has preset the multi-motion modes of virtual sound source,
It is exactly the dynamic motion side of the corresponding virtual sound source of audio signal of target audio file (user chooses the audio file of broadcasting)
Formula.So in this step, the target motor pattern of currently employed virtual sound source is first determined, for follow-up each sounding body
Volume adjustment clearly adjusts target.
Step 102, the dynamic volume adjustment side of corresponding at least two sounding body of the target motor pattern is obtained
Formula, the dynamic volume adjustment mode include the functional relation between volume and playing time.
In this step, according to fixed target motor pattern in step 101, shifting is corresponded to obtain the target motor pattern
The dynamic volume adjustment mode of at least two sounding bodies in dynamic terminal, to carry out at least two sounding on mobile terminal in next step
The volume adjustment of body lays the foundation, to realize the target motor pattern of virtual sound source.Wherein, which includes
Functional relation between volume and playing time, certainly, the functional relation between volume and playing time are difference
Each corresponding sounding body, to carry out the specific volume adjustment of corresponding sounding body.
Step 103, the audio signal is sent to each sounding body to play out, in playing process, according to described
Dynamic volume adjustment mode adjusts separately volume when each sounding body plays the audio signal.
In this step, the audio signal of target audio file is sent to each sounding body and is played out, in playing process
In, it can also be according to the dynamic volume adjustment mode that step 102 is got, to complete when each sounding body plays the audio signal
Volume adjustment, it is final to realize the fixed dynamic motion mode of virtual sound source, so that user is experienced virtual sound source when audio plays
Dynamic motion, reach more preferably result of broadcast.
In this way, by step 101 to step 103, the audio frequency playing method of the embodiment of the present invention, mobile terminal passes through first true
The target motor pattern of fixed currently employed virtual sound source corresponds at least two sounding bodies to get the target motor pattern
The audio signal of target audio file is then sent to each sounding body and played out, played by dynamic volume adjustment mode
In the process, volume when each sounding body plays the audio signal is adjusted separately by the dynamic volume adjustment mode, realizes audio
The effect of virtual sound source dynamic motion when file plays, enriches the form of audio broadcasting, and passes through virtual source position
Dynamic change effectively prevents the tired out of sense organ, reaches and more preferably experience.
In addition, it should be appreciated that meet the several scenes application demand of user, it is mobile in the embodiment of the present invention
Terminal can preset the motor pattern of a variety of virtual sources of sound.Specifically, two sounding to be arranged on mobile terminal shown in Fig. 3
For body, the first sounding body 31 is set to the side of display screen 33, and the second sounding body 32 is set to the display screen 33
The other side, therefore, preset dynamic motion mode can be virtual sources of sound in the playing process of the target audio file
From the position of the first sounding body 31 along dashed trace dynamic motion to the position of the second sounding body 32, it can also be that virtual source of sound exists
N number of state that bobs is repeated in the playing process of the target audio file along the dashed trace to move (N is self-defined), or
Be virtual source of sound in the playing process of the target audio file along the dynamic motion etc. of other tracks (dashed trace in non-figure)
Deng, no longer enumerated here.And for these preset dynamic motion modes, it is to exist and its one-to-one dynamic volume
Adjustment mode, therefore, in the embodiment of the present invention, after determining the target motor pattern of currently employed virtual sound source, step 102
Including:
Pre-set correspondence in the mobile terminal is obtained, the correspondence is the motor pattern of virtual sound source
Correspondence between the dynamic volume adjustment mode of at least two sounding body;
According to the correspondence, the dynamic of at least two sounding body corresponding with the target motor pattern is inquired
Volume adjustment mode.
Here, mobile terminal pre-sets at least two sounding bodies on the motor pattern and mobile terminal of virtual sound source
Correspondence between dynamic volume adjustment mode, the movement mould of pre-set virtual sound source in getting the mobile terminal
After correspondence between formula and the dynamic volume adjustment mode of at least two sounding bodies, this is inquired by the correspondence
The dynamic volume adjustment mode of corresponding at least two sounding body of target motor pattern.As it can be seen that in the present embodiment, target is being determined
It can be directly inquired after motor pattern by the correspondence and is directed to the dynamic volume adjustment mode of at least two sounding bodies,
Realize subsequent adjustment, process is more convenient, quick, improve the working efficiency of system.
It can select, which can be the dynamic sound of the motor pattern and at least two sounding bodies that record virtual sound source
The relation list of relationship between amount adjustment mode.
By the above it is known that in the embodiment of the present invention, dynamic volume adjustment mode includes volume and playing time
Between functional relation, therefore, further specifically, as shown in figure 4, step 103 includes:
Step 1031, according to the functional relation between volume and playing time, each hair of currently playing moment is determined
The corresponding target sound magnitude of sound body.
Due in step 102, it has been determined that the dynamic volume tune of at least two sounding bodies corresponding with target motor pattern
Perfect square formula, and the dynamic volume adjustment mode includes the functional relation between volume and playing time, so, this step
In, pass through the functional relation between the volume and playing time of each sounding body, it will be able to determine audio signal in sounding
Target sound magnitude corresponding to the currently playing moment of body.It is closed with the function between the volume and playing time of sounding body A
It is yA(x) it is x at the currently playing moment for1When, then it can be by yA(x) determine that sounding body A corresponds to x1Target sound magnitude,
That is yA(x1)。
Step 1032, the current actual volume value of each sounding body is obtained, according to the target sound magnitude, is calculated each
The corresponding volume adjustment value of a sounding body.
In this step, the current actual volume value of each sounding body is first got, to be determined according to above-mentioned steps 1031
Target sound magnitude, you can the corresponding volume adjustment value of each sounding body is calculated.The example for continuing above-mentioned sounding body A, is obtained
Get its current actual volume value yA, indicate, then volume adjustment value Δ=yA(x1)-yA,.Certainly, volume adjustment value also may be used
To be expressed as Δ=yA,-yA(x1)。
Step 1033, according to the volume adjustment value, the current volume of each sounding body is adjusted.
In this step, according to the volume adjustment value that previous step 1032 is calculated, each sounding in mobile terminal is adjusted
The current volume of body, to realize that virtual sound source carries out dynamic motion with target motor pattern.In specific adjustment, with volume adjustment
The positive and negative of value Δ determines the direction of adjustment, | Δ | determining the volume amplitude of adjustment.If Δ=yA(x1)-yA, then Δ>When 0,
Expression will increase the volume of sounding body A;Δ<When 0, indicate that the volume that reduce sounding body A, the volume amplitude of adjustment are specially |
yA(x1)-yA, |.If Δ=yA,-yA(x1), then Δ>When 0, the volume that reduce sounding body A is indicated;Δ<When 0, expression will increase
The volume amplitude of the volume of sounding body A, adjustment is specially | yA,-yA(x1)|。
In this way, after by step 1031- steps 1033, you can by the letter between acquired volume and playing time
Number relationship determines the corresponding target sound magnitude of each sounding body of currently playing moment, and the reality for combining each sounding body current
Volume value is calculated the corresponding volume adjustment value of each sounding body, and then goes to adjust each sounding based on the volume adjustment value
The current volume of body realizes that virtual sound source carries out dynamic motion with target motor pattern.
It is respectively provided with the first sounding body 31, the second sounding body with about 33 both sides of mobile terminal display screen curtain shown in Fig. 3
For 32, illustrate the application of the above method of the embodiment of the present invention.After the broadcasting for starting target audio file, according to above-mentioned step
Suddenly, first, target motor pattern is determined, here, suppose that the target motor pattern determined is virtual sound source in the target sound
From the position of the first sounding body 31 along dashed trace dynamic motion to the position of the second sounding body 32 in the playing process of frequency file;
Then, according to pre-set correspondence, first sounding body 31, second hair corresponding with the target motor pattern is inquired
The dynamic volume adjustment mode of sound body 32, the dynamic volume adjustment mode include corresponding first sounding body 31 volume with broadcast
Put the inverse ratio functional relation y between the moment1(x) direct ratio between the volume and playing time of corresponding second sounding body 32
Functional relation y2(x);The audio signal of the target audio file is sent to the first sounding body 31 later, the second sounding body 32 is broadcast
It puts, in playing process, by y1(x)、y2(x) and the actual volume value of 31 and second sounding body 32 of current first sounding body, real
When the volume adjustment value Δ of corresponding first sounding body 31 is calculated1With the volume adjustment value Δ of corresponding second sounding body 322, make
With real-time Δ1And Δ2Come dynamically reduce the first sounding body 31 play when volume, and increase the second sounding body 32 play when
Volume.In this way, in the playing process of the target audio file, you can so that user is experienced virtual source of sound and move mould according to target
Formula carries out the effect of dynamic motion, is moved along the position of dashed trace by 31 to the second sounding body 32 of the first sounding body.
In an embodiment of the present invention, in the dynamic volume adjustment mode of a dynamic motion mode of corresponding virtual sound source,
Specific to the functional relation between the volume and playing time of sounding body, preferably, being the setting position in conjunction with the sounding body
It sets, determined by the factors such as the position relationship of at least two sounding bodies and the dynamic motion mode, is not limited to fixed relationship.
Often in the mobile terminal, dynamic volume adjustment mode can correspondingly be prestored with dynamic motion mode, by
Correspondence finds dynamic volume adjustment mode, you can directly extraction is used.
Certainly, it is contemplated that audio broadcasting often corresponds to user or system presets a broadcast sound volume desired value, dynamic at this
It can arrange two kinds of functional relations in state volume adjustment mode, it is another then do not examine one is combining the broadcast sound volume desired value
Consider the broadcast sound volume desired value, user is provided and is selected, meets user the different scenes the needs of.
It also will be appreciated that, in some embodiments of the present invention, also by defining specific mode of operation, to be based on using
The operation at family determines whether user needs the effect with virtual sound source dynamic motion to play audio file, and for it is preset extremely
The motor pattern of few two virtual sound sources, also limits specific mode of operation, to reach the most desired result of broadcast of user.Institute
With step 101 includes:
According to the first predetermined registration operation of user based on the first interface, second contact surface is generated, first interface is target sound
It is the selection interface of at least two predetermined movement patterns that frequency file, which selects broadcast interface, the second contact surface,;
According to second predetermined registration operation of the user based on second contact surface, the target motor pattern is determined.
It here, can be by detecting that target audio file selects user's operation on broadcast interface (the first interface) pre- for first
If operation, determine that user wishes the effect with virtual sound source dynamic motion to play target audio file, and then generate multiple pre-
If the selection interface (second contact surface) of motor pattern;Later, according to the second predetermined registration operation detected on the second contact surface, finally
Determine the target motor pattern of user's selection.
Wherein, the first predetermined registration operation and second predetermined registration operation can be the operations to physical button or virtual key, also may be used
To be the operation of corresponding biological identification technology, such as:The modes such as voice, touching, infrared, gesture.Such as:The first predetermined registration operation is
When the slide of predetermined pattern, when detecting preset sliding trace (such as " L "), determine user's selection with Virtual Sound
The effect of source dynamic motion plays target audio file.In this way, being desirable for the effect of virtual sound source dynamic motion in user
Come when playing target audio file, you can directly the first predetermined registration operation is carried out on the first interface, to resurrect second contact surface, it
Afterwards, target motor pattern is selected by the second predetermined registration operation of the second contact surface, operation is more convenient, is also more suitable for the body of user
Test demand.
Further, when predetermined movement pattern be it is multiple, to allow users to the default fortune for being expressly understood that the mobile terminal
Dynamic model formula and the selection for making corresponding self-demand, different motion pattern, which corresponds to, in the embodiment, in the second contact surface divides
There are multiple regions;It is described according to second predetermined registration operation of the user based on second contact surface, the step of determining the target motor pattern
Including:
If the second predetermined registration operation is clicking operation, the firstth area where the operating area of the clicking operation is obtained
Domain, and will motor pattern corresponding with the first area as target motor pattern;
If the second predetermined registration operation is slide, the second area where the starting point of the slide is obtained,
And using the corresponding motor pattern of the second area as target motor pattern.
Here, it for the touching display screen curtain of mobile terminal, realizes, is preferably preset second for user's convenience
Operation is limited to clicking operation and slide, and completion more efficiently selects on second contact surface.Also, on corresponding second contact surface
For different motion pattern correspond to divide multiple regions, respectively according to clicking operation and slide the characteristics of come complete target fortune
Dynamic model formula determines.Wherein, for second predetermined registration operation be slide the case where divided by the slide starting point location
Domain is come outside selected target motor pattern, can also carry out selected target motor pattern with the cut off region of the slide,
It is of course also possible to be other modes, will not enumerate herein.
In conclusion the audio frequency playing method of the embodiment of the present invention, mobile terminal is currently employed virtual by first determining
The target motor pattern of sound source, by the motor pattern of pre-set virtual sound source and the dynamic volume tune of at least two sounding bodies
Correspondence between perfect square formula fast determines the dynamic volume tune of corresponding at least two sounding body of the target motor pattern
The audio signal of target audio file is then sent to each sounding body and played out, in playing process, by this by perfect square formula
Dynamic volume adjustment mode adjusts separately volume when each sounding body plays the audio signal, more preferably realizes that audio file is broadcast
The effect of virtual sound source dynamic motion when putting enriches the form of audio broadcasting, and is become by the dynamic of virtual source position
Change, effectively prevents the tired out of sense organ, reach and more preferably experience.
Fig. 5 is the block diagram of the mobile terminal of one embodiment of the invention.It is provided with position on mobile terminal 500 shown in fig. 5
In at least two sounding bodies of different location, mobile terminal 500 includes determining module 501, acquisition module 502 and processing module
503。
Determining module 501, the target motor pattern for determining currently employed virtual sound source, the target motor pattern
Dynamic motion mode for indicating the corresponding virtual sound source of the audio signal of target audio file;
Acquisition module 502, the target motor pattern for obtaining the determination of the determining module 501 it is corresponding it is described extremely
The dynamic volume adjustment mode of few two sounding bodies, the dynamic volume adjustment mode includes between volume and playing time
Functional relation;
Processing module 503 is played out for audio signal to be sent to each sounding body, in playing process, according to
The dynamic volume adjustment mode that the acquisition module 502 obtains adjusts separately each sounding body and plays the audio signal
When volume.
On the basis of Fig. 5, optionally, as shown in fig. 6, the acquisition module 502 includes:
Acquisition submodule 5021, for obtaining pre-set correspondence in the mobile terminal, the correspondence
For the correspondence between the motor pattern and the dynamic volume adjustment mode of at least two sounding body of virtual sound source;
Inquiry submodule 5022, the correspondence for being obtained according to the acquisition submodule 5021, inquiry and institute
State the dynamic volume adjustment mode of corresponding at least two sounding body of target motor pattern.
Optionally, the processing module 503 includes:
First determination sub-module 5031, for according to the functional relation between volume and playing time, determining current
The corresponding target sound magnitude of each sounding body of playing time;
Submodule 5032 is handled, the actual volume value current for obtaining each sounding body determines son according to described first
The target sound magnitude that module 5031 determines, is calculated the corresponding volume adjustment value of each sounding body;
Submodule 5033 is adjusted, the volume adjustment value for being obtained according to the processing submodule 5032, adjustment is respectively
The current volume of a sounding body.
Optionally, the determining module 501 includes:
Submodule 5011 is generated, for according to the first predetermined registration operation of user based on the first interface, generating second contact surface, institute
It is target audio file selection broadcast interface to state the first interface, and the second contact surface is the selection of at least two predetermined movement patterns
Interface;
Second determination sub-module 5012, for according to second predetermined registration operation of the user based on second contact surface, determining the mesh
Mark motor pattern.
Optionally, the division of different motion pattern correspondence has multiple regions in the second contact surface;Described second determines submodule
Block 5012 includes:
First processing units 50121 obtain the clicking operation if being clicking operation for the second predetermined registration operation
First area where operating area, and will motor pattern corresponding with the first area as target motor pattern;
Second processing unit 50122 obtains the slide if being slide for the second predetermined registration operation
Second area where starting point, and using the corresponding motor pattern of the second area as target motor pattern.
Mobile terminal 500 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1, Fig. 3, Fig. 4, be
It avoids repeating, which is not described herein again.Mobile terminal 500 is come by the target motor pattern of the currently employed virtual sound source of determination
The dynamic volume adjustment mode that the target motor pattern corresponds at least two sounding bodies is got, then by target audio file
Audio signal is sent to each sounding body and plays out, and in playing process, is adjusted separately often by the dynamic volume adjustment mode
A sounding body plays the volume when audio signal, realizes the effect of virtual sound source dynamic motion when audio file plays, and enriches
The form that audio plays, and by the dynamic change of virtual source position, effectively prevent the tired out of sense organ, reach more preferably
Experience.
Fig. 7 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 700 shown in Fig. 7 includes:At least
One processor 701, memory 702, at least one network interface 704 and user interface 703.It is each in mobile terminal 700
Component is coupled by bus system 705.It is understood that bus system 705 is logical for realizing the connection between these components
Letter.Bus system 705 further includes power bus, controlling bus and status signal bus in addition in addition to including data/address bus.But it is
For the sake of clear explanation, in the figure 7 various buses are all designated as bus system 705.
Wherein, user interface 703 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Both or may include volatile and non-volatile memory.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 702 of system and method described herein be intended to including but not limited to these and it is arbitrary its
It is suitble to the memory of type.
In some embodiments, memory 702 stores following element, executable modules or data structures, or
Their subset of person or their superset:Operating system 7021 and application program 7022.
Wherein, operating system 7021, including various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 7022, including various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 7022.
In embodiments of the present invention, it is provided at least two sounding bodies positioned at different location on mobile terminal, passes through tune
The program stored with memory 702 or instruction, specifically, can be the program stored in application program 7022 or instruction, processing
Device 701 is used for:Determine the target motor pattern of currently employed virtual sound source, the target motor pattern is for indicating target sound
The dynamic motion mode of the corresponding virtual sound source of audio signal of frequency file;Obtain the target motor pattern it is corresponding it is described extremely
The dynamic volume adjustment mode of few two sounding bodies, the dynamic volume adjustment mode includes between volume and playing time
Functional relation;The audio signal is sent to each sounding body to play out, in playing process, according to the dynamic sound
Adjustment mode is measured, volume when each sounding body plays the audio signal is adjusted separately.
The method that the embodiments of the present invention disclose can be applied in processor 701, or be realized by processor 701.
Processor 701 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing
Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 702, processor 701 reads the information in memory 702, the above method is completed in conjunction with its hardware.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its
It combines to realize.For hardware realization, processing unit may be implemented in one or at least two application-specific integrated circuits
(Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal
Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable
Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place
It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, processor 701 is additionally operable to:Obtain pre-set correspondence in the mobile terminal, the correspondence
Relationship is the correspondence between the motor pattern and the dynamic volume adjustment mode of at least two sounding body of virtual sound source;
According to the correspondence, the dynamic volume adjustment of at least two sounding body corresponding with the target motor pattern is inquired
Mode..
Optionally, processor 701 is additionally operable to:According to the functional relation between volume and playing time, determine current
The corresponding target sound magnitude of each sounding body of playing time;The current actual volume value of each sounding body is obtained, according to the mesh
The corresponding volume adjustment value of each sounding body is calculated in mark with phonetic symbols magnitude;According to the volume adjustment value, each sounding body is adjusted
Current volume.
Optionally, processor 701 is additionally operable to:According to the first predetermined registration operation of user based on the first interface, the second boundary is generated
Face, first interface are target audio file selection broadcast interface, and the second contact surface is the choosing of multiple predetermined movement patterns
Select interface;According to second predetermined registration operation of the user based on second contact surface, the target motor pattern is determined.
Optionally, the division of different motion pattern correspondence has multiple regions in the second contact surface;Processor 701 is additionally operable to:
If the second predetermined registration operation is clicking operation, the first area where the operating area of the clicking operation is obtained, and will be with
The corresponding motor pattern in the first area is as target motor pattern;If the second predetermined registration operation is slide, obtain
Second area where the starting point of the slide, and moved the corresponding motor pattern of the second area as target
Pattern.
Mobile terminal 700 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.Mobile terminal 700 is transported by the target motor pattern of the currently employed virtual sound source of determination to get the target
Dynamic model formula corresponds to the dynamic volume adjustment mode of at least two sounding bodies, is then sent to the audio signal of target audio file
Each sounding body plays out, and in playing process, adjusting separately each sounding body broadcasting by the dynamic volume adjustment mode should
Volume when audio signal realizes the effect of virtual sound source dynamic motion when audio file plays, and enriches the shape of audio broadcasting
Formula, and by the dynamic change of virtual source position, effectively prevent the tired out of sense organ, reach and more preferably experience.
Fig. 8 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 8
800 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 800 in Fig. 8 includes radio frequency (Radio Frequency, RF) circuit 810, memory 820, input
Unit 830, display unit 840, at least two sounding bodies 850, processor 860, voicefrequency circuit 870, WiFi (Wireless
Fidelity) module 880 and power supply 890, at least two sounding bodies 850 are set on the different location of mobile terminal 800.
Wherein, input unit 830 can be used for receiving number input by user or character information, and generation and mobile terminal
The 800 related signal input of user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 831.Touch panel 831, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses the operations of any suitable object or attachment on touch panel 831 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment device.Optionally, touch panel 831 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 860 is given again, and can be received order that processor 860 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 831.In addition to touch panel 831, input unit
830 can also include other input equipments 832, other input equipments 832 can include but is not limited to physical keyboard, function key
It is one or more in (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc..
Wherein, display unit 840 can be used for showing information input by user or be supplied to information and the movement of user
The various menu interfaces of terminal 800.Display unit 840 may include display panel 841, optionally, LCD or organic hairs may be used
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 841.
It should be noted that touch panel 831 can cover display panel 841, touch display screen is formed, when the touch display screen is examined
It measures and sends processor 860 on it or after neighbouring touch operation to determine the type of touch event, be followed by subsequent processing device
860 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
Including the interface elements such as icon and/or widget desktop controls of at least one application program.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 860 is the control centre of mobile terminal 800, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 821, and calling storage
Data in second memory 822 execute the various functions and processing data of mobile terminal 800, to mobile terminal 800
Carry out integral monitoring.Optionally, processor 860 may include one or at least two processing units.
In embodiments of the present invention, by calling store the first memory 821 in software program and/or module and/
Or the data in the second memory 822, processor 860 are used to determine the target motor pattern of currently employed virtual sound source,
The target motor pattern is used to indicate the dynamic motion mode of the corresponding virtual sound source of the audio signal of target audio file;It obtains
Take the dynamic volume adjustment mode of corresponding at least two sounding body of the target motor pattern, the dynamic volume adjustment
Mode includes the functional relation between volume and playing time;The audio signal is sent to each sounding body to broadcast
It puts, in playing process, according to the dynamic volume adjustment mode, when adjusting separately each sounding body broadcasting audio signal
Volume.
Optionally, processor 860 is additionally operable to obtain pre-set correspondence in the mobile terminal, the corresponding pass
System is the correspondence between the motor pattern and the dynamic volume adjustment mode of at least two sounding body of virtual sound source;Root
According to the correspondence, the dynamic volume adjustment side of at least two sounding body corresponding with the target motor pattern is inquired
Formula.
Optionally, processor 860 is additionally operable to according to the functional relation between volume and playing time, and determination is currently broadcast
Put the corresponding target sound magnitude of moment each sounding body;The current actual volume value of each sounding body is obtained, according to the target
The corresponding volume adjustment value of each sounding body is calculated in volume value;According to the volume adjustment value, each sounding body is adjusted
Current volume.
Optionally, processor 860 is additionally operable to, according to the first predetermined registration operation of user based on the first interface, generate the second boundary
Face, first interface are target audio file selection broadcast interface, and the second contact surface is the choosing of multiple predetermined movement patterns
Select interface;According to second predetermined registration operation of the user based on second contact surface, the target motor pattern is determined.
Optionally, the division of different motion pattern correspondence has multiple regions in the second contact surface;If processor 860 is additionally operable to
The second predetermined registration operation is clicking operation, obtains the first area where the operating area of the clicking operation, and will be with institute
The corresponding motor pattern in first area is stated as target motor pattern;If the second predetermined registration operation is slide, institute is obtained
The second area where the starting point of slide is stated, and mould is moved using the corresponding motor pattern of the second area as target
Formula.
As it can be seen that target motor pattern of the mobile terminal 800 by the currently employed virtual sound source of determination, it will be able to get
The target motor pattern corresponds to the dynamic volume adjustment mode of at least two sounding bodies, then believes the audio of target audio file
Number being sent to each sounding body plays out, and in playing process, each sounding is adjusted separately by the dynamic volume adjustment mode
Body plays the volume when audio signal, realizes the effect of virtual sound source dynamic motion when audio file plays, enriches audio
The form of broadcasting, and by the dynamic change of virtual source position, the tired out of sense organ is effectively prevented, reach more preferably body
It tests.
The embodiments of the present invention also provide a kind of computer readable storage mediums, are stored thereon with computer program and (refer to
Enable), which realizes following steps when being executed by processor:
Determine the target motor pattern of currently employed virtual sound source, the target motor pattern is for indicating target audio
The dynamic motion mode of the corresponding virtual sound source of audio signal of file;
The dynamic volume adjustment mode of corresponding at least two sounding body of the target motor pattern is obtained, it is described dynamic
State volume adjustment mode includes the functional relation between volume and playing time;
The audio signal is sent to each sounding body to play out, in playing process, according to the dynamic volume
Adjustment mode adjusts separately volume when each sounding body plays the audio signal.
Optionally, following steps can also be realized when which is executed by processor:
Pre-set correspondence in the mobile terminal is obtained, the correspondence is the motor pattern of virtual sound source
Correspondence between the dynamic volume adjustment mode of at least two sounding body;
According to the correspondence, the dynamic of at least two sounding body corresponding with the target motor pattern is inquired
Volume adjustment mode.
Optionally, following steps can also be realized when which is executed by processor:
According to the functional relation between volume and playing time, determine that each sounding body of currently playing moment is corresponding
Target sound magnitude;
It obtains the current actual volume value of each sounding body and each sounding body is calculated according to the target sound magnitude
Corresponding volume adjustment value;
According to the volume adjustment value, the current volume of each sounding body is adjusted.
Optionally, following steps can also be realized when which is executed by processor:
According to the first predetermined registration operation of user based on the first interface, second contact surface is generated, first interface is target sound
It is the selection interface of multiple predetermined movement patterns that frequency file, which selects broadcast interface, the second contact surface,;
According to second predetermined registration operation of the user based on second contact surface, the target motor pattern is determined.
Optionally, following steps can also be realized when which is executed by processor:
If the second predetermined registration operation is clicking operation, the firstth area where the operating area of the clicking operation is obtained
Domain, and will motor pattern corresponding with the first area as target motor pattern;
If the second predetermined registration operation is slide, the second area where the starting point of the slide is obtained,
And using the corresponding motor pattern of the second area as target motor pattern.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can to store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Explanation is needed further exist for, this mobile terminal described in this description includes but not limited to smart mobile phone, puts down
Plate computer etc..
This many functional component described in this description is all referred to as module, specifically to emphasize its realization side
The independence of formula.
In the embodiment of the present invention, module can use software realization, to be executed by various types of processors.Citing comes
It says, the executable code module of a mark may include the one or more physics or logical block of computer instruction, citing
For, object, process or function can be built as.Nevertheless, the executable code of institute's mark module is without physically
It is located together, but may include the different instructions being stored in different positions, be combined together when in these command logics
When, it constitutes module and realizes the regulation purpose of the module.
In fact, executable code module can be the either many item instructions of individual instructions, and can even be distributed
It on multiple and different code segments, is distributed in distinct program, and is distributed across multiple memory devices.Similarly, it grasps
Making data can be identified in module, and can be realized according to any form appropriate and be organized in any appropriate class
In the data structure of type.The operation data can be collected as individual data collection, or can be distributed on different location
(including in different storage device), and can only be present in system or network as electronic signal at least partly.
When module can utilize software realization, it is contemplated that the level of existing hardware technique, it is possible to implemented in software
Module, in the case where not considering cost, those skilled in the art can build corresponding hardware circuit to realize correspondence
Function, the hardware circuit includes conventional ultra-large integrated (VLSI) circuit or gate array and such as logic core
The existing semiconductor of piece, transistor etc either other discrete elements.Module can also use programmable hardware device, such as
The realizations such as field programmable gate array, programmable logic array, programmable logic device.
Above-mentioned exemplary embodiment is described with reference to those attached drawings, many different forms and embodiment be it is feasible and
Without departing from spirit of that invention and teaching, therefore, the present invention should not be construed as in the limitation of this proposed exemplary embodiment.
More precisely, these exemplary embodiments are provided so that the present invention can be perfect and complete, and can be by the scope of the invention
It is communicated to those those of skill in the art.In those schemas, size of components and relative size be perhaps based on it is clear for the sake of
And it is exaggerated.Term used herein is based only on description particular example embodiment purpose, and being not intended to, which becomes limitation, uses.Such as
Ground is used at this, unless the interior text clearly refers else, otherwise the singulative " one ", "one" and "the" be intended to by
Those multiple forms are also included in.Those term "comprising"s and/or " comprising " will become further apparent when being used in this specification,
It indicates the presence of the feature, integer, step, operation, component and/or component, but is not excluded for one or more other features, whole
Number, step, operation, component, component and/or the presence of its group or increase.Unless otherwise indicated, narrative tense, a value range packet
Bound containing the range and any subrange therebetween.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.