CN114470774A - Game sound effect processing method and device, storage medium and electronic equipment - Google Patents

Game sound effect processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114470774A
CN114470774A CN202210114474.3A CN202210114474A CN114470774A CN 114470774 A CN114470774 A CN 114470774A CN 202210114474 A CN202210114474 A CN 202210114474A CN 114470774 A CN114470774 A CN 114470774A
Authority
CN
China
Prior art keywords
sound effect
game sound
loudness
game
output
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.)
Pending
Application number
CN202210114474.3A
Other languages
Chinese (zh)
Inventor
岳豪
姚盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210114474.3A priority Critical patent/CN114470774A/en
Publication of CN114470774A publication Critical patent/CN114470774A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/54Controlling 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/60Methods for processing data by generating or executing the game program
    • A63F2300/6063Methods for processing data by generating or executing the game program for sound processing
    • A63F2300/6081Methods for processing data by generating or executing the game program for sound processing generating an output signal, e.g. under timing constraints, for spatialization

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The disclosure relates to a game sound effect processing method, a game sound effect processing device, a storage medium and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: acquiring a game sound effect to be output; determining whether a target sound effect device needs to be called to process the game sound effect or not according to the parameter configuration information of the terminal; under the condition that the terminal is determined to need to call the target sound effect device to process the game sound effect, calling the target sound effect device to process the game sound effect to be output under the condition that the original loudness of the game sound effect to be output is not changed, and obtaining the processed game sound effect; and outputting the processed game sound effect. Therefore, no matter whether the terminal opens the sound effect device or not, the loudness of the same game sound effect output by all the terminals under the same volume gain parameter is consistent, so that in the hearing perception of the player, the loudness of the same game sound effect is consistent, the fairness of the game can be maintained, and the game experience of the player can be improved.

Description

Game sound effect processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing game sound effects, a storage medium, and an electronic device.
Background
Developers generally focus on the design of game pictures, and after all, excellent artistic picture expression can bring strong visual impact force, so that players can intuitively judge the quality of games. However, the game sound effects, which are an essential component in the game, increase the game immersion of the player while providing the necessary event feedback for the game. Therefore, how to ensure that the game can output stable and high-quality game sound effects becomes another important research point.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a method for processing sound effects of a game, including:
acquiring a game sound effect to be output;
determining whether the terminal needs to call a target sound effect device to process the game sound effect when outputting the game sound effect to be output according to the parameter configuration information of the terminal;
under the condition that the terminal is determined to need to call the target sound effect device to process the game sound effect, calling the target sound effect device to process the game sound effect to be output under the condition that the original loudness of the game sound effect to be output is maintained unchanged, and obtaining the processed game sound effect;
and outputting the processed game sound effect.
In a second aspect, the present disclosure provides a game sound effect processing apparatus, including:
the acquisition module is configured to acquire a game sound effect to be output;
the determining module is configured to determine whether the terminal needs to call a target sound effector to process the game sound effect when outputting the game sound effect to be output according to parameter configuration information of the terminal;
the calling module is configured to call the target sound effect device to process the game sound effect under the condition that the terminal needs to call the target sound effect device to process the game sound effect under the condition that the original loudness of the game sound effect to be output is maintained unchanged, so as to obtain the processed game sound effect;
and the output module is configured to output the processed game sound effect.
In a third aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method of the first aspect.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method of the first aspect.
Based on the technical scheme, under the condition that the terminal is determined to need to call the target sound effect to process the game sound effect to be output, the target sound effect is called to process the game sound effect to be output under the condition that the original loudness of the game sound effect to be output is maintained unchanged, the processed game sound effect is obtained, and the processed game sound effect is output. No matter whether the terminal starts the sound effect device or not, the loudness of the same game sound effect output by all the terminals under the same volume gain parameter is consistent, so that the loudness of the same game sound effect is consistent in the hearing feeling of a player, the fairness of the game can be maintained, and the game experience of the player can be improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 is a flow chart of a method for processing sound effects of a game according to an exemplary embodiment.
Fig. 2 is a flow diagram of a proposed method of constructing a target sound effector in accordance with an exemplary embodiment.
FIG. 3 is a schematic flow chart of step 140 shown in FIG. 1.
FIG. 4 is a flowchart illustrating a method for processing sound effects of a game according to another exemplary embodiment.
FIG. 5 is a block diagram of a game sound effect processing apparatus according to an exemplary embodiment.
Fig. 6 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
FIG. 1 is a flow chart of a method for processing sound effects of a game according to an exemplary embodiment. As shown in fig. 1, the game sound effect processing method provided by the present disclosure may be executed by an electronic device, and specifically may be executed by a game sound effect processing apparatus, which may be implemented by software and/or hardware and configured in the electronic device. As shown in FIG. 1, the method for processing the sound effect of the game may include the following steps.
In step 110, the game sound effect to be output is acquired.
Here, the game sound to be output may be an interface sound for interface operation, such as an interface sound for dragging, selecting, popping up and retrieving a menu, etc., a character sound related to a game character, such as a footstep sound, etc., an environmental sound of a game environment, such as a wind sound, a bird song, a waterfall sound, etc., a skill sound of a game skill, such as an attack sound, a skill hit sound, an action sound, etc., or a background sound of different game scenes, such as different styles of music corresponding to different maps, etc.
Wherein, the game sound effect to be output can be obtained through the game engine. For example, when the game engine captures the event that the user releases game skill, the corresponding skill sound effect is determined, and the corresponding game sound effect is output through the sound engine while the game skill is triggered to be released.
In step 120, according to the parameter configuration information of the terminal, it is determined whether the terminal needs to call a target sound effector to process the game sound effect when outputting the game sound effect to be output.
Here, the parameter configuration information of the terminal may refer to model information of the terminal, and when the model information of the terminal is a preset signal, it is determined that the target sound effector is invoked to process a game sound effect to be output. Wherein, to the terminal of different models, there is the audio demand of difference. When the terminals of partial models output game sound effects, the game sound effects need to be processed through the target sound effect device, and when the terminals of partial models output game sound effects, the game sound effects do not need to be processed through the target sound effect device. For example, for the terminal of model A, when the game sound effect is output, the game sound effect does not need to be processed by calling the target sound effect device. For the terminal of model B, when outputting the game sound effect, it needs to call the target sound effector to process the game sound effect.
It should be understood that the preset model may be stored in the terminal, or it may be updated at any time. For example, a game developer may issue a game update package, and update a preset signal stored in the terminal through the game update package to meet different requirements.
In other embodiments, the parameter configuration information of the terminal may refer to hardware parameter information, software parameter information, and the like of the terminal, the data processing capability of the terminal is determined according to the parameter configuration information of the terminal, and when the data processing capability of the terminal is greater than or equal to a preset threshold, it is determined that the terminal needs to call a target sound effector to process a game sound effect when outputting the game sound effect to be output. And under the condition that the data processing capacity of the terminal is smaller than a preset threshold value, determining that the terminal does not need to call a target sound effect device to process the game sound effect when outputting the game sound effect to be output. In this embodiment, it is actually determined whether to turn on the target sound effector to process the game sound effect according to the data processing capability of the terminal. And under the condition that the data processing capacity of the terminal is insufficient, disabling the target sound effect device so as to ensure the computing resources of other modules of the game.
It will be appreciated that the sound effects required for use may be different for different types of game sound effects. For example, the sound effectors may include reverberation effectors, compression equalization effectors, and the like. Accordingly, the target sound effector means a sound effector for processing a game sound effect of a type corresponding to the game sound effect to be output. The sound effect device is a software function module for performing effect processing on game sound, can be integrated in an installation package of a game, and is called by a game engine to process game sound effects.
In step 130, under the condition that it is determined that the terminal needs to call the target sound effector to process the game sound effect, the target sound effector is called to process the game sound effect to be output under the condition that the original loudness of the game sound effect to be output is maintained unchanged, and the processed game sound effect is obtained.
When the terminal needs to call the target sound effect to process the game sound effect when outputting the game sound effect to be output according to the parameter configuration information of the terminal, calling the target sound effect through the sound engine to perform effect processing on the game sound effect to be output. The target sound effect processor can perform effect processing on the game sound effect to be output under the condition that the original loudness of the game sound effect to be output is maintained unchanged, and the processed game sound effect is obtained. For example, for a reverberation effector, the reverberation effector can perform reverberation processing on a game sound effect to be output under the condition that the original loudness of the game sound effect to be output is maintained unchanged, so as to obtain the reverberated game sound effect. It is worth to be noted that the game sound effect after reverberation and the game sound effect to be output are consistent in loudness.
Wherein, the loudness is also called volume, the loudness describes the loudness of sound, which represents the subjective feeling of human ears on the sound, the measurement unit is Song, 1000Hz is defined, and the loudness of pure tone with the sound pressure level of 40dB is 1 Song. Loudness is not only related to sound intensity but also related to frequency, and loudness level of sound is different when the frequency of sound is different. The loudness of sound is limited by sound intensity, the sound intensity level is improved, and the loudness level is also improved generally.
As an example, when a target sound effector processes a game sound effect to be output, loudness information of the game sound effect to be output is collected, and in the process of performing sound effect processing on the game sound effect to be output, the loudness information of the game sound effect is maintained unchanged by adjusting parameter setting, so that the loudness information of the game sound effect processed by the target sound effector is consistent with the loudness information of the game sound effect to be output.
As another example, the target sound effector is a sound effector which is debugged in advance and can not change loudness information of game sound effects, wherein the game sound effects to be output are used as input of the target sound effector, and the loudness of the game sound effects output by the target sound effector is consistent with the loudness of the game sound effects to be output.
In step 140, the processed game sound effects are output.
Here, after the processed game sound effects are obtained, the processed game sound effects may be output through an audio output device of the terminal. It should be understood that the loudness of the output processed game sound effects should be consistent for the audio output devices of different terminals with the same volume gain parameter.
It should be noted that, if the terminal does not need to call the target sound effector to process the game sound effect to be output, the game sound effect to be output is directly output through the audio output device of the terminal. Under the same volume gain parameter, the loudness of the finally output game sound effect is kept consistent no matter whether the game sound effect to be output is processed by the target sound effect device or not. For example, the terminal a needs to process the game sound effect to be output through the target sound effector, and the loudness of the game sound effect after the terminal a outputs the processing is 40 dB. The terminal B does not need to process the game sound effect to be output through a target sound effect device, and the loudness of the game sound effect to be output, which is output by the terminal B, is also 40 dB.
For games running on different types of terminals, part of the types of terminals need not turn on the sound effectors, and part of the types of terminals need to turn on the sound effectors. Because the loudness of the game sound effect can be changed by the sound effect device in the process of processing the game sound effect, the loudness of the same game sound effect output by different types of terminals is inconsistent, and the fairness of the game and the game experience are extremely damaged. For example, in a shooting game, players generally need to determine opponent positions through footstep sounds and carrier sounds, and if the loudness of the same footstep sound output by different terminals is uneven, some players cannot determine opponent positions in time, which not only affects the fairness of the game, but also brings extremely poor experience to the players.
Therefore, the game sound effect to be output is processed by calling the target sound effect under the condition that the terminal needs to call the target sound effect to process the game sound effect to be output under the condition that the original loudness of the game sound effect to be output is maintained unchanged, the processed game sound effect is obtained, and the processed game sound effect is output. No matter whether the terminal opens the sound effect device, the loudness of the same game sound effect output by all the terminals under the same volume gain parameter is consistent, so that in the hearing perception of a player, the loudness of the same game sound effect is consistent, the fairness of the game can be maintained, and the game experience of the player can be improved.
Fig. 2 is a flow diagram of a proposed method of constructing a target sound effector in accordance with an exemplary embodiment. As shown in fig. 2, the target sound effector may be obtained by the following steps.
In step 210, a target sound with a first loudness and a preset spectral characteristic is used as an input of an initial sound effector, and a second loudness of the sound output by the initial sound effector is obtained.
Here, the initial sound effector may be any sound effector disposed in the game, such as a reverberation effector, a compression equalization effector, and the like. When constructing the target sound effects, the steps 210 to 230 need to be performed on all the sound effects deployed in the game, so that the target sound effects deployed in the game can make the loudness of the game sound effects input into the target sound effects consistent with the loudness of the game sound effects output by the target sound effects.
As an example, the target sound having the preset spectral characteristics may be pink noise. Pink noise is equal in intensity at each octave, being a noise between white and red noise. It should be understood that since pink noise is a response curve according to the sensitivity of the human ear, pink noise is noise according to the auditory sense of the human ear, and for the human ear, pink noise in each frequency band is acoustically smooth even though the energy of pink noise in each frequency band is not uniform. The sound effect of the game in the game is basically consistent with pink noise in frequency band distribution. The volume parameters of the initial sound effector are adjusted by using pink noise as a test resource of the initial sound effector, and the adjusted sound effector is suitable for processing the game sound effect.
In some embodiments, the target sound may be selected according to the type of the initial sound effector. For example, for different types of initial sound effectors, target sounds having different spectral characteristics may be corresponded to for targeted training of different types of initial sound effectors. In other embodiments, different target sounds are also used for different types of sound audiences. For example, for different types of audiences, a target sound having a preset spectral characteristic set for the type of audiences may be employed.
By taking a target sound having a preset spectral characteristic at a first loudness as an input of the initial sound effector, the initial sound effector performs a preset effect process on the target sound and outputs a sound, and checks a second loudness of the sound output by the initial sound effector.
In step 220, the parameters of the initial sound effector are adjusted according to the difference between the second loudness and the first loudness, so that the second loudness of the sound output by the adjusted sound effector is equal to the first loudness of the target sound input into the adjusted sound effector.
Here, a difference between the second loudness and the first loudness is calculated, and the volume-related parameter of the initial sound effector is adjusted based on the difference so that the second loudness of the sound output by the adjusted sound effector is equal to the first loudness of the target sound input to the adjusted sound effector.
For example, if 40dB pink noise is used as the input of the initial sound effector, and the measured second loudness of the sound output by the initial sound effector is 50dB, the parameters related to the volume of the initial sound effector are adjusted according to the difference of 10dB, so as to obtain the adjusted sound effector. And (3) taking 40dB of pink noise as the input of the adjusted sound effect device, wherein the loudness of the sound output by the adjusted sound effect device is 40dB, and completing the parameter adjustment of the initial sound effect device.
In step 230, the adjusted sound effector is determined as the target sound effector.
Here, after the parameter adjustment for the initial sound effector is completed, the adjusted sound effector is taken as the target sound effector.
The target sound effect device can be used as a program module of the game installation package, the target sound effect device is installed on the terminal along with the game installation package, and when the target sound effect device needs to be called by the game engine, the corresponding target sound effect device is called to perform sound effect processing on a game sound effect to be output.
Therefore, the parameters of the sound effect device are adjusted through the target sound with the preset frequency spectrum characteristics, so that the loudness of the sound input into the target sound effect device subsequently can be equal to the loudness of the sound output by the target sound effect device. No matter whether the terminal needs to call the target sound effector to perform sound effect processing on the game sound effect to be output or not, the loudness of the same game sound effect output on different types of terminals can be kept consistent.
FIG. 3 is a schematic flow chart of step 140 shown in FIG. 1. As shown in fig. 3, the step 140 of outputting the processed game sound effect may include the following steps.
In step 141, a loudness modification parameter of the terminal is obtained, where the loudness modification parameter is used to keep the loudness of the same game sound effect output by the audio output device of the terminal and the audio output devices of other types of terminals consistent under the condition of the same volume gain parameter.
Here, the loudness modification parameter is a coefficient obtained by testing different types of terminals to adjust the loudness of the game sound effect output by the terminal. The loudness correction parameter is used for keeping the loudness of the same game sound effect output by the audio output device of the terminal and the audio output device of other types of terminals consistent under the condition of the same volume gain parameter.
It should be understood that the corresponding loudness modification parameters are different for different terminals. For example, for terminal a, its loudness modification parameter is 1.1, and for terminal B, its loudness modification parameter is 0.9.
In some embodiments, the third loudness of the same target game sound effect can be output by acquiring the audio output devices of different types of terminals under the condition of the same volume gain parameter, the third loudness of the target game sound effect output by one of the different types of terminals is taken as the reference loudness, and the loudness correction parameter corresponding to each type of terminal is determined according to the loudness difference between the third loudness of the target game sound effect output by other terminals and the reference loudness.
The volume gain parameter refers to a volume setting parameter of the terminal, such as 50%, 100%, 150%, and so on. For different terminals, due to different models of the audio output devices or the aging of the audio output devices, different terminals output the same game sound effect under the same volume gain parameter, and may have different loudness.
The third loudness of the same target game sound effect is output by the audio output devices of different types of terminals under the condition of the same volume gain parameter, then the third loudness output by one target terminal is taken as the reference loudness, and the loudness correction parameter corresponding to each terminal is determined according to the loudness difference between the third loudness output by other terminals and the reference loudness.
Wherein, the target terminal may be one terminal arbitrarily selected from different types of terminals. The loudness modification parameter corresponding to the target terminal is 1, that is, the target terminal may not modify the loudness of the output sound by the loudness modification parameter. And aiming at each terminal except the target terminal, calculating the corresponding loudness modification parameter based on the difference between the third loudness of the terminal and the reference loudness. It should be understood that, when each terminal outputs the same game sound effect under the same volume gain parameter, the loudness modified by the corresponding loudness modification parameter is equal to the reference loudness.
In other embodiments, the third loudness of the same target game sound effect can be output by acquiring the audio output devices of different types of terminals under the condition of the same volume gain parameter, the third loudness of all the terminals is clustered, the loudness corresponding to the clustering center is determined as the reference loudness, and then the loudness modification parameter corresponding to each type of terminal is determined according to the loudness difference between the third loudness of the target game sound effect output by the different types of terminals and the reference loudness.
In step 142, the loudness of the processed game sound effect is adjusted according to the loudness modification parameter, so as to obtain the adjusted game sound effect.
And obtaining the loudness modification parameter of the terminal, and adjusting the loudness of the processed game sound effect according to the loudness modification parameter to obtain the adjusted game sound effect. The loudness of the processed game sound effect can be adjusted by changing parameters such as the sound intensity of the processed game sound effect and the like which do not influence the original effect of the game sound effect.
It should be noted that the adjusted game sound effect is obtained by adjusting only the loudness of the processed game sound effect. After the adjusted game sound effect is output by the audio output device, the loudness is consistent in different terminals with the same volume gain parameter.
In step 143, the adjusted game sound effect is output.
Here, the adjusted game sound effect may be output through an audio output device of the terminal. It should be understood that the loudness of the output adjusted game sound effects should be consistent for the same volume gain parameter for the audio output devices of different terminals.
Therefore, the game sound effect is processed through the loudness correction parameter, the problem that the loudness of the same game sound effect output on different terminals is inconsistent due to different hardware of different terminals can be avoided, the loudness of the same game sound effect is consistent in the auditory perception of a player, the fairness of the game can be maintained, and the game experience of the player can be improved.
FIG. 4 is a flowchart illustrating a method for processing sound effects of a game according to another exemplary embodiment. As shown in fig. 4, another embodiment of the present disclosure provides a method for processing sound effects of a game, including the following steps.
In step 410, in the process of outputting the processed game sound effect, if a preset operation for a volume key of the terminal is acquired, recording a fourth loudness output by the terminal and adjusted based on the preset operation.
Here, the volume key of the terminal may refer to a volume up key or a volume down key of the terminal, and the volume key may be a physical key or a virtual key. The preset operation on the volume key may be an operation of clicking the volume key, pressing for a long time, or the like.
And in the process of outputting the processed game sound effect or the adjusted game sound effect, if the preset operation of the player for the volume key of the terminal is obtained, the representation that the loudness of the currently output game sound effect is unsatisfactory for the player. For example, when the terminal outputs the footstep sound with a volume gain factor of 80%, if the click operation of the player on the volume up key is detected, it is determined that the current footstep sound is not sufficiently large in volume by the player, and therefore, the fourth loudness of the game sound output by the terminal based on the click adjustment of the volume up key may be recorded. Wherein the fourth loudness characterizes the loudness of the game sound effects that the player wishes to output.
In step 420, when the game sound effect consistent with the type of the processed game sound effect is output next time, the game sound effect is output according to the recorded fourth loudness.
Here, when the terminal outputs a game sound effect in accordance with the type of the processed game sound effect next time, the terminal outputs the game sound effect according to the recorded fourth loudness. For example, the fourth loudness of the recorded "footstep sound" is 40dB, and the terminal outputs "footstep sound" at the loudness of 40dB at the next output of "footstep sound".
And outputting the game sound effect according to the recorded fourth loudness can be adjusting a volume gain parameter of an audio output device of the terminal or adjusting a loudness related parameter of the game sound effect, so that the loudness of the finally output game sound effect reaches the fourth loudness.
Therefore, by recording the loudness requirement of the player on each type of game sound effect, the game sound effect meeting the loudness requirement of the player can be obtained without carrying out any volume adjustment operation on the player. The player can be enabled to concentrate on game operation during the game process so as to improve the game experience of the user.
FIG. 5 is a block diagram of a game sound effect processing apparatus according to an exemplary embodiment. As shown in fig. 5, an embodiment of the disclosure provides a game sound effect processing apparatus, where the apparatus 500 may include:
an obtaining module 501 configured to obtain a game sound effect to be output;
a determining module 502, configured to determine, according to parameter configuration information of a terminal, whether a target sound effector needs to be invoked to process a game sound effect when the terminal outputs the game sound effect to be output;
a calling module 503, configured to, when it is determined that the terminal needs to call the target sound effector to process the game sound effect, call the target sound effector to process the game sound effect to be output while maintaining the original loudness of the game sound effect to be output unchanged, so as to obtain a processed game sound effect;
an output module 504 configured to output the processed game sound effects.
Optionally, the apparatus 500 comprises:
the loudness module is configured to take a target sound with a first loudness and preset spectrum characteristics as an input of an initial sound effector and obtain a second loudness of the sound output by the initial sound effector;
an adjusting module configured to adjust the parameter of the initial sound effector according to a difference between the second loudness and the first loudness, so that the second loudness of the sound output by the adjusted sound effector is equal to the first loudness of the target sound input to the adjusted sound effector;
a localization module configured to determine the adjusted sound effector as the target sound effector.
Optionally, the target sound with the preset spectral feature is pink noise.
Optionally, the determining module 502 is specifically configured to include:
and when the model information of the terminal is a preset model, determining to call the target sound effect device to process the game sound effect.
Optionally, the output module 504 includes:
the loudness modification unit is configured to acquire a loudness modification parameter of the terminal, wherein the loudness modification parameter is used for keeping the loudness of the same game sound effect output by the audio output device of the terminal and the audio output devices of other types of terminals consistent under the condition of the same volume gain parameter;
the loudness adjusting unit is configured to adjust the loudness of the processed game sound effect according to the loudness correction parameter to obtain the adjusted game sound effect;
and the sound effect unit is configured to output the adjusted game sound effect.
Optionally, the loudness modification unit comprises:
the loudness determining unit is configured to acquire a third loudness of the same target game sound effect output by the audio output devices of different types of terminals under the condition of the same volume gain parameter;
and the reference unit is configured to determine a loudness correction parameter corresponding to each type of terminal according to the loudness difference between the third loudness of the target game sound effect output by other terminals and the reference loudness by taking the third loudness of the target game sound effect output by one of the different types of terminals as the reference loudness.
Optionally, the apparatus 500 further comprises:
the recording module is configured to record a fourth loudness, which is output by the terminal and is adjusted based on a preset operation, of the game sound effect if the preset operation for the volume key of the terminal is acquired in the process of outputting the processed game sound effect;
and the sound module is configured to output the game sound effect according to the recorded fourth loudness when the game sound effect consistent with the processed game sound effect in type is output next time.
The detailed implementation process of each functional module of the device is described in detail in the embodiment of the game sound effect processing method, and is not described herein again.
Referring now to FIG. 6, a block diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some implementations, the electronic device and the server may communicate using any currently known or future developed network Protocol, such as HTTP (hypertext transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a game sound effect to be output; determining whether the terminal needs to call a target sound effect device to process the game sound effect when outputting the game sound effect to be output according to the parameter configuration information of the terminal; under the condition that the terminal is determined to need to call the target sound effect device to process the game sound effect, calling the target sound effect device to process the game sound effect to be output under the condition that the original loudness of the game sound effect to be output is maintained unchanged, and obtaining the processed game sound effect; and outputting the processed game sound effect.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of a module in some cases does not constitute a limitation on the module itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (10)

1. A method for processing sound effects of a game is characterized by comprising the following steps:
acquiring a game sound effect to be output;
determining whether the terminal needs to call a target sound effect device to process the game sound effect when outputting the game sound effect to be output according to the parameter configuration information of the terminal;
under the condition that the terminal is determined to need to call the target sound effect device to process the game sound effect, calling the target sound effect device to process the game sound effect to be output under the condition that the original loudness of the game sound effect to be output is maintained unchanged, and obtaining the processed game sound effect;
and outputting the processed game sound effect.
2. The game sound effect processing method according to claim 1, wherein the target sound effects are obtained by:
taking a target sound with a first loudness and a preset frequency spectrum characteristic as an input of an initial sound effect device to obtain a second loudness of the sound output by the initial sound effect device;
adjusting parameters of the initial sound effector according to a difference value between the second loudness and the first loudness, so that the second loudness of the sound output by the adjusted sound effector is equal to the first loudness of the target sound input into the adjusted sound effector;
determining the adjusted sound effector as the target sound effector.
3. The game sound effect processing method according to claim 2, wherein the target sound with the preset spectral feature is pink noise.
4. The method for processing game sound effects according to claim 1, wherein the determining whether the terminal needs to call a target sound effector to process the game sound effects when outputting the game sound effects to be output according to the parameter configuration information of the terminal comprises:
and when the model information of the terminal is a preset model, determining to call the target sound effect device to process the game sound effect.
5. The method for processing game sound effects according to any one of claims 1 to 4, wherein the outputting the processed game sound effects comprises:
acquiring loudness modification parameters of the terminal, wherein the loudness modification parameters are used for keeping the loudness of the same game sound effect output by an audio output device of the terminal and audio output devices of other types of terminals consistent under the condition of the same volume gain parameters;
adjusting the loudness of the processed game sound effect according to the loudness correction parameter to obtain the adjusted game sound effect;
and outputting the adjusted game sound effect.
6. The game sound effect processing method according to claim 5, wherein the loudness modification parameter of the terminal is obtained by:
acquiring a third loudness of the same target game sound effect output by audio output devices of different types of terminals under the condition of the same volume gain parameter;
and determining a loudness correction parameter corresponding to each type of terminal according to the loudness difference between the third loudness of the target game sound effect output by other terminals and the reference loudness by taking the third loudness of the target game sound effect output by one of the different types of terminals as the reference loudness.
7. The game sound effect processing method according to any one of claims 1 to 4, wherein the method further comprises:
in the process of outputting the processed game sound effect, if a preset operation aiming at a volume key of the terminal is obtained, recording a fourth loudness of the game sound effect output by the terminal and adjusted based on the preset operation;
and outputting the game sound effect according to the recorded fourth loudness when outputting the game sound effect with the same type as the processed game sound effect next time.
8. A game sound effect processing apparatus, comprising:
the acquisition module is configured to acquire a game sound effect to be output;
the determining module is configured to determine whether the terminal needs to call a target sound effect to process the game sound effect when outputting the game sound effect to be output according to the parameter configuration information of the terminal;
the calling module is configured to call the target sound effect device to process the game sound effect under the condition that the terminal needs to call the target sound effect device to process the game sound effect under the condition that the original loudness of the game sound effect to be output is maintained unchanged, so as to obtain the processed game sound effect;
and the output module is configured to output the processed game sound effect.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by processing means, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 7.
CN202210114474.3A 2022-01-30 2022-01-30 Game sound effect processing method and device, storage medium and electronic equipment Pending CN114470774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210114474.3A CN114470774A (en) 2022-01-30 2022-01-30 Game sound effect processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210114474.3A CN114470774A (en) 2022-01-30 2022-01-30 Game sound effect processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114470774A true CN114470774A (en) 2022-05-13

Family

ID=81478070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210114474.3A Pending CN114470774A (en) 2022-01-30 2022-01-30 Game sound effect processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114470774A (en)

Similar Documents

Publication Publication Date Title
CN109547848B (en) Loudness adjustment method and device, electronic equipment and storage medium
US11822854B2 (en) Automatic volume adjustment method and apparatus, medium, and device
CN111445901A (en) Audio data acquisition method and device, electronic equipment and storage medium
CN110392298A (en) A kind of volume adjusting method, device, equipment and medium
US20240127856A1 (en) Audio processing method and apparatus, and electronic device and storage medium
CN114154068A (en) Media content recommendation method and device, electronic equipment and storage medium
CN111416996B (en) Multimedia file detection method, multimedia file playing device, multimedia file equipment and storage medium
CN110276404B (en) Model training method, device and storage medium
CN112133319A (en) Audio generation method, device, equipment and storage medium
CN112863545A (en) Performance test method and device, electronic equipment and computer readable storage medium
WO2020073564A1 (en) Method and apparatus for detecting loudness of audio signal
CN114470774A (en) Game sound effect processing method and device, storage medium and electronic equipment
CN114121050A (en) Audio playing method and device, electronic equipment and storage medium
JP2022095689A (en) Voice data noise reduction method, device, equipment, storage medium, and program
CN110971943B (en) Video code rate adjusting method, device, terminal and storage medium
CN114554379A (en) Hearing aid fitting method, device, charging box and computer readable medium
CN113990363A (en) Audio playing parameter adjusting method and device, electronic equipment and storage medium
CN113495712A (en) Automatic volume adjustment method, apparatus, medium, and device
CN113192531A (en) Method, terminal and storage medium for detecting whether audio is pure music audio
CN111048107B (en) Audio processing method and device
CN117348836A (en) Audio adjustment method, device, medium and electronic equipment
CN111045635B (en) Audio processing method and device
CN109445873B (en) Method and device for displaying setting interface
CN113840034B (en) Sound signal processing method and terminal device
CN114449341B (en) Audio processing method and device, readable medium 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