CN109173259A - Audio optimization method, device and equipment in a kind of game - Google Patents
Audio optimization method, device and equipment in a kind of game Download PDFInfo
- Publication number
- CN109173259A CN109173259A CN201810781932.2A CN201810781932A CN109173259A CN 109173259 A CN109173259 A CN 109173259A CN 201810781932 A CN201810781932 A CN 201810781932A CN 109173259 A CN109173259 A CN 109173259A
- Authority
- CN
- China
- Prior art keywords
- audio
- sounding body
- sounding
- game
- distance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/54—Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/6063—Methods for processing data by generating or executing the game program for sound processing
- A63F2300/6081—Methods for processing data by generating or executing the game program for sound processing generating an output signal, e.g. under timing constraints, for spatialization
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/8082—Virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
A kind of audio optimization method in game includes: the set for taking the sounding body type for including in current scene;According to the set of acquired sounding body type, the set of 3D audio corresponding to the set of the sounding body type is determined;According to scheduled play time, 3D audio corresponding to sounding body not of the same race in the set of the 3D audio is played.While can be with the authenticity of Ensuring Scene audio, the effective broadcasting quantity for reducing 3D audio improves the fluency of game running so as to reduce the consumption of system resource.
Description
Technical field
The application belongs to audio optimization method, device and the equipment in field of audio play more particularly to a kind of game.
Background technique
In order to enrich the cultural life of people, game developer has developed various game.In gaming by setting
The article similar with reality scene is set, including the appearance in simulation reality scene, or the sounding body that can be moved is generated, broadcasts
Sound corresponding with the sounding body in scene is put, enables game player to obtain more true experience, obtains player more
Good loosens.
In order to improve the authenticity of scene, such as in some VR game, the often 3D audio in scene set.Although
The sense of reality of scene can be effectively improved by playing 3D audio, still, when including a large amount of sound producing body in scene, such as
It when including more sounding bodies, while playing a large amount of 3D audios and can seriously expend system resource, be likely to result in game Caton, influence
The fluency of game picture.
Summary of the invention
In view of this, the embodiment of the present application provides audio optimization method, device and the equipment in a kind of game, to solve
In the prior art due to including multiple sound producing bodies in scene, while playing multiple 3D audios and can seriously expend system resource, it can
The problem of game Caton can be will cause, influence the fluency of game picture.
The first aspect of the embodiment of the present application provides the audio optimization method in a kind of game, the audio in the game
Optimization method includes:
Obtain the set for the sounding body type for including in current scene;
According to the set of acquired sounding body type, 3D audio corresponding to the set of the sounding body type is determined
Set;
According to scheduled play time, 3D sound corresponding to sounding body not of the same race in the set of the 3D audio is played
Effect.
With reference to first aspect, in the first possible implementation of first aspect, the method also includes:
If first sounding body executes sounding movement, the positional distance first for the game role that user is controlled is determined
The distance of sounding body;
When the distance is less than preset value, the corresponding 2D audio of first sounding body is only played.
With reference to first aspect, in second of possible implementation of first aspect, the collection for playing the 3D audio
The step of 3D audio corresponding to sounding body not of the same race, includes: in conjunction
Obtain current scene in include sounding body, determine execute sounding movement sounding body and game role between away from
From;
Judge whether the sounding distance of sounding body is greater than the distance between sounding body and game role;
If the sounding distance of sounding body is greater than the distance between sounding body and game role, the sounding body pair is played
3D audio corresponding to the type answered.
With reference to first aspect, described according to scheduled play time in the third possible implementation of first aspect
Point, the step of playing 3D audio corresponding to sounding body not of the same race in the set of the 3D audio include:
Obtain the first waiting time of the first type sounding body and the playing duration of the first 3D audio;
Start timing at the time point that upper 3D audio finishes playing, after the first waiting time, starts broadcasting first
3D audio;
When the playing duration that the time of the broadcasting of the first 3D audio is the first 3D audio, determine that the time point is the first 3D sound
The time point of effect to finish playing.
The third possible implementation with reference to first aspect, in the 4th kind of possible implementation of first aspect, institute
Stating for the first waiting time is randomly selected within scheduled waiting time by random function, the broadcasting of the first 3D audio
Duration is determined according to the sound source file of selected 3D audio.
The second aspect of the embodiment of the present application provides the audio optimization device in a kind of game, the audio in the game
Optimizing device includes:
Type set acquiring unit, for obtaining the set for the sounding body type for including in current scene;
Audio set determination unit determines the sounding body type for the set according to acquired sounding body type
Set corresponding to 3D audio set;
Audio selecting unit, for playing hair not of the same race in the set of the 3D audio according to scheduled play time
3D audio corresponding to sound body.
In conjunction with second aspect, in the first possible implementation of second aspect, described device further include:
Distance determining unit determines the game that user is controlled if execute sounding movement for first sounding body
The distance of the first sounding body of positional distance of role;
2D audio broadcast unit, for it is corresponding only to play first sounding body when the distance is less than preset value
2D audio.
In conjunction with second aspect, in second of possible implementation of second aspect, the type set acquiring unit packet
It includes:
Distance determines subelement, for obtaining the sounding body for including in current scene, determines the sounding for executing sounding movement
The distance between body and game role;
Distance Judgment subelement, for judging whether the sounding distance of sounding body is greater than between sounding body and game role
Distance;
Audio select subelement, if for sounding body sounding distance be greater than between sounding body and game role away from
From then playing 3D audio corresponding to the corresponding type of the sounding body.
The third aspect of the embodiment of the present application provides a kind of game station, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, which is characterized in that described in the processor executes
The step of audio optimization method as described in any one of first aspect in game is realized when computer program.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the game as described in any one of first aspect is realized when the computer program is executed by processor
In audio optimization method the step of.
Existing beneficial effect is the embodiment of the present application compared with prior art: by obtaining the sounding body type in scene
Set, and determine the set of 3D audio corresponding to the set of the sounding body type, according to scheduled play time,
3D audio corresponding to one or more sounding bodies is selected to play out in the set of 3D audio, so as to Ensuring Scene audio
Authenticity while, the effective broadcasting quantity for reducing 3D audio improves game so as to reduce the consumption of system resource
The fluency of operation.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram of the audio optimization method in a kind of game provided by the embodiments of the present application;
Fig. 2 is a kind of realization stream for obtaining the sounding body type method for including provided by the embodiments of the present application in current scene
Journey schematic diagram;
Fig. 3 is a kind of implementation process schematic diagram for playing 3D audio provided by the embodiments of the present application;
Fig. 4 is the implementation process schematic diagram of the audio optimization method in another game provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of the audio optimization device in a kind of game provided by the embodiments of the present application;
Fig. 6 is the schematic diagram of game station provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
Fig. 1 is the implementation process schematic diagram of the audio optimization method in a kind of game provided by the embodiments of the present application, is described in detail
It is as follows:
In step s101, the set for the sounding body type for including in current scene is obtained;
It specifically, the sounding body may include birds, wild beast, people, automobile, robot, or can also include nature
Other objects on boundary, the sound issued may include blare, footsteps, feed sound, water flow sound, operation sound, impact sound etc..
The current scene can be the scene where the role in game, or when not having role in game, the current scene
It can be the image content that screen is presented.
The set of the sounding body type can determine sports ground according to the attribute classification of the sounding body in scene of game
Sounding body type in scape.For example, the sounding body type for including in determined scene may include: ox, sheep, horse, chicken, chicken, duck
Deng.Certainly, as in optional embodiment, the sounding body type can be divided with further progress, for example chicken can wrap
Include cock, hen, chicken etc..
It, can be as shown in Figure 2 in order to advanced optimize the set of sounding body type obtained, comprising the following steps:
In step s 201, the sounding body for including in current scene is obtained, determines the sounding body for executing sounding movement and trip
Play the distance between role;
Specifically, for there are the scenes of game role the sounding in scene can be obtained according to the setting of scene map
The position of body, and according to the position of the position of game role and sounding body, calculate the distance of the two in gaming.
The sounding movement may include the earthquake sound etc. when sounding body roars, pats wing, huge sounding body is walked.
For ease of calculation, the scope of activities of each sounding body in scene of game can be set, and true according to scope of activities
Determine the activity centre point of sounding body, the distance can be determined by the real time position of game role and the activity centre point.
When the role is mobile, the distance between the role and sounding body can be determined according to movement speed and moving direction.
In step S202, judge whether the sounding distance of sounding body is greater than the distance between sounding body and game role;
Since the size of the sound of roaring of different sounding bodies has difference, the sound of roaring of sounding body is propagated
Distance also have difference.The characteristics of being roared according to different sounding bodies predefines sounding distance corresponding to sounding body.Than
Such as, the sounding distance of wolf is 100 meters, and the sounding distance of tiger is 80 meters etc..
It, can be by sounding distance and the game role to hair after at a distance from determining sounding body is between game role
The distance of sound body is compared, and determines whether game role can hear the blare of the sounding body.
In step S203, if the sounding distance of sounding body is greater than the distance between sounding body and game role, broadcast
Put 3D audio corresponding to the corresponding type of the sounding body.
If the sounding distance of sounding body is greater than sounding body at a distance from game role and sounding body, then it represents that when the sounding
When body is roared, game role may hear the blare of the sounding body.
According to the sounding distance of the distance between sounding body and game role searched and sounding body, it is compared
Afterwards, the 3D audio for currently needing to play is determined.
In step s 102, according to the set of acquired sounding body type, the set institute of the sounding body type is determined
The set of corresponding 3D audio;
In setting development process, every kind of sounding body is set with corresponding 3D audio.It is sent out according to determined by step S101
The set of sound body type can generate the set of 3D audio accordingly.
For example, the corresponding 3D ox cry of sounding body type " ox ", sounding body tiger corresponds to 3D tiger cry, by searching for the hair
3D audio corresponding to each type in the set of sound body type generates the set of 3D audio.
The set of the 3D audio is updated in real time according to the set of the sounding body type, to effectively fit
Answer the variation requirement of different scenes.
In step s 103, according to scheduled play time, sounding body not of the same race in the set of the 3D audio is played
Corresponding 3D audio.
Specifically, different types of sounding body corresponds to different 3D audios, a sounding body can be played in the same time
3D audio, the 3D audio of the sounding body of multiple types can also be played, simultaneously so as to hear a variety of sounding bodies simultaneously
Audio.In addition, every kind of sounding body may be corresponding with multiple 3D audios, it can be according to the needs of actual scene, to multiple 3D audios
It is combined broadcasting, for example the 3D audio of sounding body A includes walk footsteps, blare, the sound patting wing sound and eating
Sound etc..One or more 3D audio can be selected to combine sounding according to the movement occurred in current scene.
The play time, can for every kind of audio it is upper once finish playing after, in predetermined time range, with
Machine chooses a time point as play time, or is also possible to after the last time finishes playing, and by scheduled duration, institute is true
Fixed time point.
Specifically, the implementation process for playing the 3D audio, it can be as shown in Figure 3, comprising:
In step S301, the first waiting time of the first type sounding body and the playing duration of the first 3D audio are obtained;
In this application, for the sounding body of each type, it is respectively arranged with corresponding waiting time and playing duration, because
This, can play a variety of different 3D audios, so that scene is truer in the same time.
First waiting time, can preset, can also by random function within the scope of scheduled duration with
Machine selects a duration as the first waiting time.
The duration as corresponding to the mode of roaring of different types of sounding body is different, for example tweedle is shorter, and wolf
The time that completion is once roared is longer, therefore, can preset different types of corresponding duration of roaring of roaring.First
When secondary broadcasting 3D audio, the playing duration of the first 3D audio can be determined according to the type of sounding body accordingly.
In step s 302, start timing at the time point that upper 3D audio finishes playing, after the first waiting time,
Start to play the first 3D audio;
Before the broadcasting of the first 3D audio, the time point of last time 3D audio to finish playing first is determined.And it can basis
The time point carries out timing and starts to play the first 3D audio after the first waiting time.The first 3D audio can be with
It is randomly choosed in the set of 3D audio.
In step S303, when the playing duration that the time of the broadcasting of the first 3D audio is the first 3D audio, when determining this
Between point be the first 3D audio the time point to finish playing.
When broadcasting the first 3D audio, and when the playing duration of playing duration the first 3D audio of arrival, the first 3D is expressed
Audio is played to be completed, then marking the time point is the time point of the first 3D audio to finish playing.It can be according to the time point
Timing is carried out, to play next 3D audio.
Fig. 4 is the implementation process schematic diagram of the audio optimization method in another game provided by the embodiments of the present application, in detail
It states as follows:
In step S401, the set for the sounding body type for including in current scene is obtained;
In step S402, according to the set of acquired sounding body type, the set institute of the sounding body type is determined
The set of corresponding 3D audio;
In step S403, according to scheduled play time, sounding body not of the same race in the set of the 3D audio is played
Corresponding 3D audio;
Step S101-S103 in step S401-S403 and Fig. 1 is essentially identical.
In step s 404, if first sounding body executes sounding movement, the game role that user is controlled is determined
The first sounding body of positional distance distance;
On the basis of Fig. 1, if the first sounding body therein (can be any one sounding body) execute roar it is dynamic
When making, also further game role can also be detected at a distance from the first sounding body.Wherein, the first sounding body is game
Any sounding body in scene.
In step S405, when the distance is less than preset value, the corresponding 2D audio of first sounding body is only played.
When any sounding body in scene of game is less than preset value at a distance from game role, then can stop playing institute
3D audio is stated, 2D audio corresponding to first sounding body is only played.Since the first sounding body is less than in advance apart from game role
If value, enables game role clearly to hear roaring for the first sounding body, therefore, can close the broadcasting of 3D audio, i.e.,
System resource can be saved, and scene authenticity can be retained.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Fig. 5 is the structural schematic diagram of the audio optimization device in a kind of game provided by the embodiments of the present application, and details are as follows:
Audio in the game optimizes device, comprising:
Type set acquiring unit 501, for obtaining the set for the sounding body type for including in current scene;
Audio set determination unit 502 determines the sounding body kind for the set according to acquired sounding body type
The set of 3D audio corresponding to the set of class;
Audio selecting unit 503, for playing not of the same race in the set of the 3D audio according to scheduled play time
3D audio corresponding to sounding body.
Preferably, described device further include:
Distance determining unit determines the game that user is controlled if execute sounding movement for first sounding body
The distance of the first sounding body of positional distance of role;
2D audio broadcast unit, for it is corresponding only to play first sounding body when the distance is less than preset value
2D audio.
Preferably, the type set acquiring unit includes:
Distance determines subelement, for obtaining the sounding body for including in current scene, determines the sounding for executing sounding movement
The distance between body and game role;
Distance Judgment subelement, for judging whether the sounding distance of sounding body is greater than between sounding body and game role
Distance;
Subelement is played, if the sounding distance for sounding body is greater than the distance between sounding body and game role,
Play 3D audio corresponding to the corresponding type of the sounding body.
Audio in game described in Fig. 5 optimizes device, corresponding with the audio optimization method in game described in Fig. 1.
Fig. 6 is the schematic diagram for the game station that one embodiment of the application provides.As shown in fig. 6, the game of the embodiment is set
Standby 6 include: processor 60, memory 61 and are stored in the meter that can be run in the memory 61 and on the processor 60
Calculation machine program 62, such as the audio optimization program in game.The processor 60 is realized when executing the computer program 62
State the step in the audio optimization method embodiment in each game, such as step 101 shown in FIG. 1 is to 103.Alternatively, described
Processor 60 realizes the function of each module/unit in above-mentioned each Installation practice, such as Fig. 5 when executing the computer program 62
The function of shown module 501 to 503.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 62 in the game station 6 is described.For example, the computer program 62 can be divided
It is cut into type set acquiring unit, audio set determination unit and audio selecting unit, each unit concrete function is as follows:
Type set acquiring unit, for obtaining the set for the sounding body type for including in current scene;
Audio set determination unit determines the sounding body type for the set according to acquired sounding body type
Set corresponding to 3D audio set;
Audio selecting unit, for playing hair not of the same race in the set of the 3D audio according to scheduled play time
3D audio corresponding to sound body.
The game station 6 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The game station may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6
The only example of game station 6 does not constitute the restriction to game station 6, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the game station can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(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 etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 61 can be the internal storage unit of the game station 6, such as the hard disk or interior of game station 6
It deposits.The memory 61 is also possible to the External memory equipment of the game station 6, such as be equipped on the game station 6
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the game station 6
Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the game station
Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list 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, the specific application and design constraint depending on 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
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie
Matter may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk,
Magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. the audio optimization method in a kind of game, which is characterized in that the audio optimization method in the game includes:
Obtain the set for the sounding body type for including in current scene;
According to the set of acquired sounding body type, the collection of 3D audio corresponding to the set of the sounding body type is determined
It closes;
According to scheduled play time, 3D audio corresponding to sounding body not of the same race in the set of the 3D audio is played.
2. the audio optimization method in game according to claim 1, which is characterized in that the method also includes:
If first sounding body executes sounding movement, the first sounding of positional distance for the game role that user is controlled is determined
The distance of body;
When the distance is less than preset value, the corresponding 2D audio of first sounding body is only played.
3. the audio optimization method in game according to claim 1, which is characterized in that the broadcasting 3D audio
The step of 3D audio corresponding to sounding body not of the same race, includes: in set
The sounding body for including in current scene is obtained, determines the distance between the sounding body for executing sounding movement and game role;
Judge whether the sounding distance of sounding body is greater than the distance between sounding body and game role;
If the sounding distance of sounding body is greater than the distance between sounding body and game role, it is corresponding to play the sounding body
3D audio corresponding to type.
4. the audio optimization method in game according to claim 1, which is characterized in that it is described according to scheduled broadcasting when
Between point, the step of playing 3D audio corresponding to sounding body not of the same race in the set of the 3D audio includes:
Obtain the first waiting time of the first type sounding body and the playing duration of the first 3D audio;
Start timing at the time point that upper 3D audio finishes playing, after the first waiting time, starts to play the first 3D sound
Effect;
When the playing duration that the time of the broadcasting of the first 3D audio is the first 3D audio, determine that the time point is the first 3D audio
The time point to finish playing.
5. the audio optimization method in game according to claim 4, which is characterized in that first waiting time passes through
Random function randomly selects within scheduled waiting time, and the playing duration of the first 3D audio is according to selected 3D
The sound source file of audio is determined.
6. the audio in a kind of game optimizes device, which is characterized in that the audio in the game optimizes device and includes:
Type set acquiring unit, for obtaining the set for the sounding body type for including in current scene;
Audio set determination unit determines the collection of the sounding body type for the set according to acquired sounding body type
Close the set of corresponding 3D audio;
Audio selecting unit, for playing sounding body not of the same race in the set of the 3D audio according to scheduled play time
Corresponding 3D audio.
7. the audio in game according to claim 6 optimizes device, which is characterized in that described device further include:
Distance determining unit determines the game role that user is controlled if execute sounding movement for first sounding body
The first sounding body of positional distance distance;
2D audio broadcast unit, for only playing the corresponding 2D sound of first sounding body when the distance is less than preset value
Effect.
8. the audio in game according to claim 6 optimizes device, which is characterized in that the audio selects subelement packet
It includes:
Distance determines subelement, for obtaining the sounding body for including in current scene, determine execute the sounding body of sounding movement with
The distance between game role;
Distance Judgment subelement, for judge sounding body sounding distance whether be greater than between sounding body and game role away from
From;
Subelement is played, if the sounding distance for sounding body is greater than the distance between sounding body and game role, is played
3D audio corresponding to the corresponding type of the sounding body.
9. a kind of game station, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
The step of audio optimization method in any one game.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In audio optimization side of the realization as described in any one of claim 1 to 5 in game when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810781932.2A CN109173259B (en) | 2018-07-17 | 2018-07-17 | Sound effect optimization method, device and equipment in game |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810781932.2A CN109173259B (en) | 2018-07-17 | 2018-07-17 | Sound effect optimization method, device and equipment in game |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109173259A true CN109173259A (en) | 2019-01-11 |
CN109173259B CN109173259B (en) | 2022-01-21 |
Family
ID=64936669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810781932.2A Active CN109173259B (en) | 2018-07-17 | 2018-07-17 | Sound effect optimization method, device and equipment in game |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109173259B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857363A (en) * | 2019-01-17 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of method and relevant apparatus of audio broadcasting |
CN111135572A (en) * | 2019-12-24 | 2020-05-12 | 北京像素软件科技股份有限公司 | Game sound effect management method and device, storage medium and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103893971A (en) * | 2012-12-25 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Game sound effect generating method and client |
CN104133652A (en) * | 2014-06-10 | 2014-11-05 | 腾讯科技(深圳)有限公司 | Audio playing control method and terminal |
CN104375811A (en) * | 2013-08-13 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Method and device for processing sound effects |
CN104867508A (en) * | 2014-02-26 | 2015-08-26 | 腾讯科技(深圳)有限公司 | Method and device for continuously playing sound file |
US20150316640A1 (en) * | 2012-09-17 | 2015-11-05 | Nokia Technologies Oy | Method and apparatus for associating audio objects with content and geo-location |
CN105159655A (en) * | 2014-05-28 | 2015-12-16 | 腾讯科技(深圳)有限公司 | Playing method and playing device for behavior event |
CN105879390A (en) * | 2016-04-26 | 2016-08-24 | 乐视控股(北京)有限公司 | Method and device for processing virtual reality game |
CN106463148A (en) * | 2014-05-30 | 2017-02-22 | 索尼公司 | Information processor and information processing method |
-
2018
- 2018-07-17 CN CN201810781932.2A patent/CN109173259B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150316640A1 (en) * | 2012-09-17 | 2015-11-05 | Nokia Technologies Oy | Method and apparatus for associating audio objects with content and geo-location |
CN103893971A (en) * | 2012-12-25 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Game sound effect generating method and client |
CN104375811A (en) * | 2013-08-13 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Method and device for processing sound effects |
CN104867508A (en) * | 2014-02-26 | 2015-08-26 | 腾讯科技(深圳)有限公司 | Method and device for continuously playing sound file |
CN105159655A (en) * | 2014-05-28 | 2015-12-16 | 腾讯科技(深圳)有限公司 | Playing method and playing device for behavior event |
CN106463148A (en) * | 2014-05-30 | 2017-02-22 | 索尼公司 | Information processor and information processing method |
CN104133652A (en) * | 2014-06-10 | 2014-11-05 | 腾讯科技(深圳)有限公司 | Audio playing control method and terminal |
CN105879390A (en) * | 2016-04-26 | 2016-08-24 | 乐视控股(北京)有限公司 | Method and device for processing virtual reality game |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857363A (en) * | 2019-01-17 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of method and relevant apparatus of audio broadcasting |
CN109857363B (en) * | 2019-01-17 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Sound effect playing method and related device |
CN111135572A (en) * | 2019-12-24 | 2020-05-12 | 北京像素软件科技股份有限公司 | Game sound effect management method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109173259B (en) | 2022-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108821A (en) | Model training method and device | |
CN108597530A (en) | Sound reproducing method and device, storage medium and electronic device | |
CN106250403A (en) | Customer loss Forecasting Methodology and device | |
CN109144610B (en) | Audio playing method and device, electronic device and computer readable storage medium | |
CN110347596A (en) | A kind of test method, device, system, electronic equipment and medium | |
CN106020449B (en) | A kind of exchange method and device of virtual reality | |
CN108339270A (en) | The processing method of static component, rendering intent and device in scene of game | |
CN108465241B (en) | Game sound reverberation processing method and device, storage medium and electronic equipment | |
CN108057245B (en) | Map generation method and device, storage medium and terminal | |
CN109173259A (en) | Audio optimization method, device and equipment in a kind of game | |
US20210248795A1 (en) | Method, apparatus, and computer program for completing painting of image, and method, apparatus, and computer program for training artificial neural network | |
CN109756766A (en) | Virtual present display methods, storage medium, electronic equipment and the system of platform is broadcast live | |
CN107638690A (en) | Method, device, server and medium for realizing augmented reality | |
US8970622B2 (en) | System and method for placing objects across a surface of a graphics object | |
KR20200106754A (en) | Method, apparatus and computer program for coloring of a target image | |
WO2012145654A2 (en) | System and method for stochastically generating maps of places in a virtual space | |
CN107704799A (en) | A kind of human motion recognition method and equipment, computer-readable recording medium | |
CN110197149A (en) | Ear's critical point detection method, apparatus, storage medium and electronic equipment | |
CN107789832A (en) | Form method, apparatus, terminal device and the storage medium of complicated impinger | |
CN110188123A (en) | User matching method and equipment | |
CN106600054A (en) | Method and apparatus for applying artificial fish swarm algorithm parallel processing to TSP problems based on MIC card | |
CN105897854A (en) | Mobile terminal alarm clock response method, device and system | |
WO2017185618A1 (en) | Method and device for implementing civilian commentary | |
Zeng et al. | Real-time traffic signal control with dynamic evolutionary computation | |
CN104537522B (en) | A kind of information processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |