Audio control method, device, electronic device and storage medium

By obtaining the motion status and parameters of the virtual vehicle, customizing the target audio materials in the audio material library and adjusting the volume, the problem of unreal audio performance in virtual simulation racing games is solved, and the player experience is improved.

CN114307148BActive Publication Date: 2025-04-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111626573.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2025-04-25
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

Existing virtual simulation racing games are difficult to simulate the impact of the movement parameters of the load-bearing part of the virtual vehicle in the extreme sports state on the audio effect, resulting in unreal audio performance and affecting the player's experience.

Method used

By obtaining the motion state of the virtual vehicle, including the type and motion parameters of the load-bearing part, we can use the target audio material in the audio material library, and determine the adjusting volume of the target audio material based on the motion parameters, and finally play the audio material according to the adjusted volume to restore the real audio effect.

Benefits of technology

It realizes that when the virtual vehicle load-bearing part is in extreme motion state, the audio effect is adjusted according to the motion parameters, thereby enhancing the player's experience in virtual simulation racing games.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114307148B_ABST
    Figure CN114307148B_ABST
Patent Text Reader

Abstract

The present invention provides an audio control method, device, electronic device and storage medium, and relates to the field of game technology. The method comprises: obtaining the motion state of a preset virtual vehicle, the motion state comprising: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state; based on the type of the load-bearing part, determining the target audio material from the audio material library in the extreme motion state; determining the target adjustment volume of the target audio material according to the state parameters of the load-bearing part in the extreme motion state; and playing the target audio material according to the target adjustment volume. The present invention can play audio that is more in line with the motion state according to the motion state of the load-bearing part of the virtual vehicle, thereby improving the audio effect and the gaming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game technology, and in particular to an audio control method, device, electronic equipment and storage medium. Background Art

[0002] During a real racing competition, the driver will control the vehicle to complete a series of extreme movements. When the load-bearing parts of the vehicle are in an extreme motion state, the tire noise occurring in the load-bearing parts will have a great stimulation to the player and enhance the player's experience during the game.

[0003] Virtual simulation racing games developed for real racing competitions are basically entertainment-oriented. The developers themselves do not pay much attention to the impact of audio in the game on the player experience. The audio performance is relatively rough and can only meet the needs of entertainment-oriented cartoon-style games. Once it involves realistic racing games or racing simulators that purely simulate real driving experiences, when the load-bearing parts of the virtual vehicle are in an extreme motion state, they often only add some friction sound effects when drifting occurs during the game. It is difficult to simulate the impact of the motion parameters of the load-bearing parts of the virtual vehicle in an extreme motion state on the audio effect. Summary of the invention

[0004] The purpose of the present invention is to provide an audio control method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so that during the movement of a virtual vehicle, the audio generated by the load-bearing parts can be adjusted based on the movement state of the load-bearing parts, thereby playing more realistic audio effects and improving the gaming experience.

[0005] To achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0006] In a first aspect, an embodiment of the present invention provides an audio control method, the method comprising:

[0007] Acquiring a motion state of a preset virtual vehicle, the motion state comprising: indication information that a load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state;

[0008] Based on the type of the load-bearing part, determining target audio material from the audio material library in the extreme sports state;

[0009] Determining a target adjustment volume of the target audio material according to a state parameter of the load-bearing part in the extreme motion state;

[0010] The target audio material is played by adjusting the volume according to the target.

[0011] Optionally, determining the target adjustment volume of the target audio material according to the state parameter of the load-bearing part in the extreme motion state includes:

[0012] Determining a plurality of adjustment volumes of the target audio material respectively according to a plurality of state parameters of the load-bearing part in the extreme motion state;

[0013] The multiple adjusted volumes are weighted to obtain the target adjusted volume.

[0014] Optionally, the multiple state parameters include: a friction value of the load-bearing part on the contact surface, and the multiple adjustment volumes of the target audio material are determined respectively according to the multiple state parameters of the load-bearing part in the extreme motion state, including:

[0015] According to the friction value, a first adjusted volume of the target audio material is determined using a preset correspondence between the friction value and the volume.

[0016] Optionally, the multiple state parameters further include: a linear moving speed of the load-bearing part, and the multiple adjusted volumes of the target audio material are determined respectively according to the multiple state parameters of the load-bearing part in the extreme motion state, including:

[0017] According to the linear movement speed and a preset correspondence between the linear movement speed and the volume, a second adjusted volume of the target audio material is determined.

[0018] Optionally, if the extreme motion state is a fully driven state, the friction value of the load-bearing part on the contact surface is a rolling friction value; and determining the first adjusted volume of the target audio material according to the friction value by using a preset correspondence between the friction value and the volume includes:

[0019] According to the rolling friction value, a preset corresponding relationship between the rolling friction value and the volume is adopted to determine a first adjusted volume of the target audio material.

[0020] Optionally, the multiple state parameters further include: the rotation direction of the load-bearing part; and the multiple adjustment volumes of the target audio material are determined according to the multiple state parameters of the load-bearing part in the extreme motion state, including:

[0021] If the rotation direction of the load-bearing part is a forward rotation direction, determining a third adjusted volume of the target audio material;

[0022] If the rotation direction of the load-bearing part is a reverse rotation direction, a fourth adjusted volume of the target audio material is determined.

[0023] Optionally, the multiple state parameters further include: the rotation speed of the load-bearing part; if the rotation direction of the load-bearing part is the reverse rotation direction, determining the fourth adjusted volume of the target audio material includes:

[0024] The fourth adjusted volume of the target audio material is determined according to the rotation speed of the reverse rotation of the load-bearing part and the corresponding relationship between the preset rotation speed and the volume.

[0025] Optionally, if the extreme motion state is a fully driven state, the multiple state parameters include: a lateral slip angle of the load-bearing part, and the multiple adjusted volumes of the target audio material are determined respectively according to the multiple state parameters of the load-bearing part in the fully driven state, including:

[0026] According to the lateral sliding angle and the corresponding relationship between the preset lateral sliding angle and the volume, a fifth adjusted volume of the target audio material is determined.

[0027] Optionally, if the extreme motion state is a fully braked state, the friction value of the load-bearing part on the contact surface is a sliding friction value; and determining the first adjusted volume of the target audio material according to the friction value by using a preset correspondence between the friction value and the volume, comprises:

[0028] According to the sliding friction value, a preset corresponding relationship between the sliding friction value and the volume is adopted to determine a first adjusted volume of the target audio material.

[0029] Optionally, the state parameter includes: a linear moving speed of the load-bearing part, and before adjusting the volume according to the target to play the target audio material, the method further includes:

[0030] Determining a first pitch of the target audio material according to the linear movement speed and a preset correspondence between the linear movement speed and the pitch;

[0031] The step of adjusting the volume according to the target to play the target audio material comprises:

[0032] The target audio material is played by adjusting the volume and the first pitch according to the target.

[0033] Optionally, the state parameter includes: a linear moving speed of the load-bearing part, and before adjusting the volume according to the target to play the target audio material, the method further includes:

[0034] Determining the filtering frequency band of the target audio material according to the linear moving speed and a preset correspondence between the linear moving speed and the filtering frequency band;

[0035] The frequency band of the target audio material is adjusted according to the filtering frequency band.

[0036] Optionally, the state parameter includes: a linear moving speed of the load-bearing part, and the method further includes:

[0037] Get brake drum locking audio;

[0038] Determining a third adjustment volume of the brake drum locking audio according to the linear movement speed and a preset correspondence between the linear movement speed and the volume;

[0039] When playing the target audio material with the target adjusted volume, the brake drum locking audio with the third adjusted volume is played at a preset time interval.

[0040] Optionally, before playing the brake drum locking audio with the third adjusted volume at a preset time interval, the method further includes:

[0041] Determining a second pitch of the brake drum locking audio according to the linear moving speed and a preset correspondence between the linear moving speed and the pitch;

[0042] The step of playing the brake drum locking audio with the third adjusted volume at a preset time interval includes:

[0043] The brake drum locking audio with the third adjusted volume and the second pitch is played at a preset time interval.

[0044] In a second aspect, an embodiment of the present invention further provides an audio control device, the device comprising:

[0045] A motion state acquisition module, used to acquire the motion state of a preset virtual vehicle, wherein the motion state includes: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state;

[0046] An audio material selection module, used to determine target audio material from the audio material library in the extreme sports state based on the type of the load-bearing part;

[0047] An adjustment volume determination module, used to determine a target adjustment volume of the target audio material according to a state parameter of the load-bearing part in the extreme motion state;

[0048] The playing module is used to adjust the volume according to the target to play the target audio material.

[0049] Optionally, the volume adjustment determination module includes:

[0050] an adjustment volume determination unit, configured to respectively determine a plurality of adjustment volumes of the target audio material according to a plurality of state parameters of the load-bearing part in the extreme motion state;

[0051] The volume weighted calculation unit is used to weight the multiple adjusted volumes to obtain the target adjusted volume.

[0052] Optionally, the multiple state parameters include: the friction value of the load-bearing part on the contact surface, and the adjustment volume determination module, which is specifically used to determine the first adjustment volume of the target audio material based on the friction value and a preset correspondence between the friction value and the volume.

[0053] Optionally, the multiple state parameters also include: the linear movement speed of the load-bearing part, and the adjusted volume determination module, which is specifically used to determine the second adjusted volume of the target audio material based on the linear movement speed and the preset correspondence between the linear movement speed and the volume.

[0054] Optionally, if the extreme motion state is a fully driven state, the friction value of the load-bearing part on the contact surface is a rolling friction value; the adjustment volume determination module is specifically used to determine the first adjustment volume of the target audio material based on the rolling friction value and a preset correspondence between the rolling friction value and the volume.

[0055] Optionally, the multiple state parameters also include: the rotation direction of the load-bearing part; the adjustment volume determination module, which is specifically used to determine the third adjustment volume of the target audio material if the rotation direction of the load-bearing part is a forward rotation direction; if the rotation direction of the load-bearing part is a reverse rotation direction, determine the fourth adjustment volume of the target audio material.

[0056] Optionally, the multiple state parameters also include: the rotation speed of the load-bearing part; the adjusted volume determination module, which is specifically used to determine the fourth adjusted volume of the target audio material based on the rotation speed of the load-bearing part rotating in the opposite direction and the corresponding relationship between the preset rotation speed and volume.

[0057] Optionally, if the extreme motion state is a fully driven state, the multiple state parameters include: the lateral slip angle of the load-bearing part, the adjustment volume determination module, which is specifically used to determine the fifth adjustment volume of the target audio material based on the lateral slip angle and the preset correspondence between the lateral slip angle and the volume.

[0058] Optionally, if the extreme motion state is a complete braking state, the friction value of the load-bearing part on the contact surface is a sliding friction value; the adjustment volume determination module is specifically used to determine the first adjustment volume of the target audio material based on the sliding friction value and a preset correspondence between the sliding friction value and the volume.

[0059] Optionally, the state parameter includes: a linear moving speed of the load-bearing part, and the device further includes:

[0060] A first pitch determination module, configured to determine a first pitch of the target audio material according to the linear movement speed and a preset correspondence between the linear movement speed and the pitch;

[0061] The playing module is specifically configured to adjust the volume and the first pitch according to the target to play the target audio material.

[0062] Optionally, the state parameter includes: a linear moving speed of the load-bearing part, and the device further includes:

[0063] A filter frequency band determination module, used to determine the filter frequency band of the target audio material according to the linear movement speed and a preset correspondence between the linear movement speed and the filter frequency band;

[0064] A frequency band adjustment module is used to adjust the frequency band of the target audio material according to the filtering frequency band.

[0065] Optionally, the state parameter includes: a linear moving speed of the load-bearing part, and the device further includes:

[0066] A locking audio acquisition module is used to obtain the brake drum locking audio;

[0067] A locking audio volume determination module, used to determine a third adjustment volume of the brake drum locking audio according to the linear moving speed and a preset correspondence between the linear moving speed and the volume;

[0068] The locking audio playing module is used to play the brake drum locking audio with the third adjusted volume at a preset time interval when playing the target audio material with the target adjusted volume.

[0069] Optionally, the device further comprises:

[0070] A second pitch determination module, used to determine the second pitch of the brake drum locking audio according to the linear moving speed and a preset correspondence between the linear moving speed and the pitch;

[0071] The locking audio playing module is specifically used to play the brake drum locking audio with the third adjusted volume and the second pitch at a preset time interval.

[0072] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the audio control method as described in any of the above embodiments.

[0073] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the audio control method as described in any of the above embodiments are executed.

[0074] The beneficial effects of the present invention are:

[0075] The present invention provides an audio control method, device, electronic device and storage medium, which obtains the motion state of a preset virtual vehicle, the motion state including: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state; based on the type of the load-bearing part, determine the target audio material from the audio material library in the extreme motion state; determine the target adjustment volume of the target audio material according to the state parameters of the load-bearing part in the extreme motion state; play the target audio material according to the target adjustment volume. The scheme of the present invention can adjust the adjustment volume of the target audio material according to the motion parameters of the load-bearing part when the load-bearing part of the virtual vehicle is in the extreme motion state, thereby restoring the most realistic audio effect according to the motion state of the load-bearing part, and enhancing the player's experience in virtual simulation racing games. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0077] Figure 1 A flowchart of an audio control method provided by an embodiment of the present invention;

[0078] Figure 2 A schematic flow chart of another audio control method provided by an embodiment of the present invention;

[0079] Figure 3 A schematic diagram of a corresponding relationship between a friction value and a volume provided by an embodiment of the present invention;

[0080] Figure 4 A schematic diagram of a correspondence between a linear moving speed and a volume provided by an embodiment of the present invention;

[0081] Figure 5 A schematic diagram of another correspondence relationship between linear moving speed and volume provided by an embodiment of the present invention;

[0082] Figure 6 A schematic diagram of a corresponding relationship between a rotation speed and a volume provided by an embodiment of the present invention;

[0083] Figure 7 A schematic diagram of a corresponding relationship between a lateral slip angle and a volume provided by an embodiment of the present invention;

[0084] Figure 8 A flowchart of another audio control method is also provided for an embodiment of the present invention;

[0085] Fig. 9 A schematic diagram of a correspondence between a linear moving speed and a pitch provided by an embodiment of the present invention;

[0086] Fig.10 , a flow chart of another audio control method provided by an embodiment of the present invention;

[0087] Fig.11 A schematic diagram of a correspondence between a linear moving speed and a filtering frequency band provided by an embodiment of the present invention;

[0088] Fig.12 A flowchart of another audio control method provided by an embodiment of the present invention;

[0089] Fig.13 A schematic diagram of another correspondence relationship between linear moving speed and volume provided by an embodiment of the present invention;

[0090] Fig.14 A schematic diagram of another correspondence between linear movement speed and pitch provided by an embodiment of the present invention;

[0091] Fig.15 A schematic diagram of the structure of an audio control device provided by an embodiment of the present invention;

[0092] Fig.16 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0093] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0094] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0095] In the description of the present invention, it should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0096] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.

[0097] During a real racing competition, the driver will control the vehicle to complete a series of extreme movements. When the load-bearing parts of the vehicle are in an extreme motion state, the tire noise occurring in the load-bearing parts will have a great stimulation to the player and enhance the player's experience during the game.

[0098] Virtual simulation racing games developed for real racing competitions are basically entertainment-oriented. The developers themselves do not pay much attention to the impact of audio in the game on the player experience. The audio performance is relatively rough and can only meet the needs of entertainment-oriented cartoon-style games. Once it involves realistic racing games or racing simulators that purely simulate real driving experiences, when the load-bearing parts of the virtual vehicle are in an extreme motion state, they often only add some friction sound effects when drifting occurs during the game. It is difficult to simulate the impact of the motion parameters of the load-bearing parts of the virtual vehicle in an extreme motion state on the audio effect.

[0099] In real scenes, the tire noise of vehicles such as cars is mainly caused by the mutual friction and extrusion between the load-bearing parts of the vehicle and the contact surface of the load-bearing parts. The combination of different materials of the load-bearing parts and different materials of the contact surface produces completely different audio effects. During the movement of the vehicle, the physical movement parameters of the load-bearing parts will also change the audio effect. How to restore the impact of the movement state of the load-bearing parts in real scenes on the changes in audio details in virtual simulation racing games is the key to improving the player's experience in virtual simulation racing games.

[0100] In response to the problems existing in the above-mentioned prior art, the present invention proposes the following technical concept: determining the state parameters of the load-bearing parts of the virtual vehicle under the extreme motion state, determining the target audio material from the audio material library under the extreme motion state according to the type of the load-bearing parts, and determining the target adjustment volume for the target audio material according to the state parameters of the load-bearing parts under the extreme motion state, and playing the target audio material according to the target adjustment volume, by deeply combining the audio effects and the motion state parameters to restore the influence of the motion state of the load-bearing parts in the real scene on the changes in audio details, thereby enhancing the player's experience in virtual simulation racing games.

[0101] Before introducing the technical solution of the present invention, a brief introduction to the related terms designed in the present invention is given.

[0102] Wwise: is the game sound engine used in the present invention to control the game audio playback.

[0103] Event: is the audio material in the game sound engine of the present invention. The game sound engine packages various sounds into audio materials for playing in the game. The audio material can be adjusted by program parameters to adjust the playing effect of the audio material.

[0104] RTPC: Real-time Parameter Controls (RTPC) are used to control specific properties of various game sound engine objects (including sound effect objects, containers, buses, effectors, etc.) in real time according to real-time parameter changes during the game.

[0105] Loop: A method of producing audio that uses the game sound engine to play a piece of audio repeatedly indefinitely without players being able to hear any breakpoints or connections in the sound.

[0106] DAW (Digital Audio Workstation): a digital audio workstation used for audio recording, audio mixing, audio editing and digital audio processing.

[0107] LPF: Low Pass Filter, a low pass filter, is used in the present invention to modulate the frequency band of the audio.

[0108] Please refer to Figure 1 , is a flow chart of an audio control method provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:

[0109] S10: Acquire the motion state of the preset virtual vehicle, where the motion state includes: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state.

[0110] In this embodiment, the player runs a virtual simulation racing game on a terminal device. The graphical user interface of the terminal device displays a game scene and a preset virtual vehicle operated by the player in the game scene. The game scene includes at least a virtual road, and the preset virtual vehicle moves on the virtual road.

[0111] The preset virtual vehicle is operated on the graphical user interface of the terminal device to move on a virtual road. The game engine simulates the real motion state of the preset virtual vehicle according to the player's operation. During the game, the player will operate the load-bearing parts of the preset virtual vehicle to reach the extreme motion state according to the situation of the game scene and the needs of the game process, and obtain the motion state of the preset virtual vehicle. The motion state includes: indication information that the load-bearing parts of the preset virtual vehicle are in the extreme motion state, and state parameters of the load-bearing parts of the preset virtual vehicle in the extreme motion state. The indication information is used to indicate whether the load-bearing parts of the preset virtual vehicle have reached the extreme motion state and the type of extreme motion state.

[0112] S20: Based on the type of the load-bearing part, determine the target audio material from the audio material library under extreme sports conditions.

[0113] In real scenes, the audio effects produced by load-bearing parts of different types or materials when moving on the ground are different. In order to simulate real scenes, the virtual simulation racing game of this embodiment also provides players with a variety of different types of load-bearing parts. Players can configure different types of load-bearing parts for the preset virtual vehicle according to their own game needs. For example, the preset virtual vehicle can be a virtual vehicle, and the load-bearing parts are the tires of the virtual racing car. The types of tires may include: worn tires, performance tires, and semi-smelt drift tires, among which worn tires correspond to unlabeled tires whose quality does not meet the factory requirements in real scenes, performance tires are tires whose quality and performance are more suitable for ordinary vehicles, and semi-smelt drift tires are tires that are resistant to high temperatures and more suitable for racing. Players can choose to match different types of tires according to the type of preset virtual vehicle.

[0114] The game engine sends the type of load-bearing parts and the motion state of the preset virtual vehicle to the game sound engine, such as Wwise. The game sound engine selects the audio material library corresponding to the extreme motion state from the audio material library according to the motion state of the preset virtual vehicle, and determines the target audio material Event from the audio material library under the extreme motion state according to the type of load-bearing parts. The audio material library under the extreme motion state is a variety of audio materials under extreme motion states pre-recorded according to the type of load-bearing parts. For example, a digital audio workstation DAW can be used for recording, mixing, audio editing and digital audio processing.

[0115] S30: Determine a target adjustment volume of the target audio material according to the state parameters of the load-bearing part under the extreme motion state.

[0116] In this embodiment, the game sound engine uses a pre-designed audio volume adjustment rule according to the state parameters of the load-bearing part in the extreme motion state to determine the target adjustment volume corresponding to the state parameters of the load-bearing part in the extreme motion state. For example, during the game, in order to play the corresponding target audio material in real time according to the motion state of the preset virtual vehicle, the real-time parameter is used to control the RTPC to determine the target adjustment volume in real time, so as to enhance the realism of the game.

[0117] S40: Play the target audio material by adjusting the volume according to the target.

[0118] In this embodiment, after the game sound engine determines the target audio material and the target adjustment volume of the target audio material, the target audio material is played in the game engine according to the target adjustment volume to carefully simulate the audio effect of the load-bearing part of the preset virtual vehicle when the load-bearing part is in an extreme motion state.

[0119] The audio control method provided by the embodiment of the present invention obtains the motion state of a preset virtual vehicle, and the motion state includes: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state; based on the type of the load-bearing part, the target audio material is determined from the audio material library in the extreme motion state; according to the state parameters of the load-bearing part in the extreme motion state, the target adjustment volume of the target audio material is determined; and the target audio material is played according to the target adjustment volume. The scheme of the embodiment of the present invention can adjust the adjustment volume of the target audio material according to the motion parameters of the load-bearing part when the load-bearing part of the virtual vehicle is in the extreme motion state, thereby restoring the most realistic audio effect according to the motion state of the load-bearing part, and enhancing the player's experience in virtual simulation racing games.

[0120] Based on the above embodiment, the embodiment of the present invention also provides another audio control method. Figure 2, is a flow chart of another audio control method provided by an embodiment of the present invention, such as Figure 2 As shown, in this embodiment, the audio control method includes: S10, S20, S31-S32, S40, wherein S10, S20 and S40 are the same as those in the above embodiment and will not be described in detail herein.

[0121] S10: Acquire the motion state of the preset virtual vehicle, where the motion state includes: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state.

[0122] S20: Based on the type of the load-bearing part, determine the target audio material from the audio material library under extreme sports conditions.

[0123] S31: Determine multiple adjustment volumes of the target audio material according to multiple state parameters of the load-bearing part in the extreme motion state.

[0124] In the present embodiment, when the load-bearing parts are in a state of extreme motion, there may be slight differences between the state parameters. In order to make the playback effect of the target audio material more accurately reflect the slight differences between different state parameters of the load-bearing parts in a state of extreme motion, a plurality of state parameters of the load-bearing parts in a state of extreme motion may be obtained, and a plurality of adjustment volumes corresponding to the plurality of state parameters may be determined according to the audio volume adjustment rules corresponding to the plurality of state parameters.

[0125] S32: Weighting the multiple adjustment volumes to obtain a target adjustment volume.

[0126] In this embodiment, after determining multiple adjustment volumes corresponding to multiple state parameters, weight values ​​of the multiple adjustment volumes are determined according to the degree of influence of the multiple adjustment volumes on the audio effect, and the multiple adjustment volumes are weighted according to the weight values ​​of the multiple adjustment volumes to obtain the target adjustment volume.

[0127] S40: Play the target audio material by adjusting the volume according to the target.

[0128] The following is a detailed description of various embodiments of respectively determining multiple adjustment volumes of the target audio material according to various state parameters of the load-bearing parts in the extreme motion state in the above-mentioned embodiments. However, it should be noted that the following specific implementation method cannot be the only limitation of the present invention to determine multiple adjustment volumes according to multiple state parameters.

[0129] In an optional embodiment, the multiple state parameters include at least: a friction value of the load-bearing part on the contact surface, and according to the friction value, a preset correspondence between the friction value and the volume is used to determine the first adjusted volume of the target audio material.

[0130] Specifically, during the movement of the load-bearing part, friction will occur with the virtual road on the contact surface. When the load-bearing part is in an extreme movement state, the friction value with the virtual road on the contact surface will also reach a limit value. Therefore, it can be determined whether the friction value of the virtual road on the contact surface exceeds the limit friction threshold value based on the friction value of the virtual road on the contact surface. When the friction value of the virtual road on the contact surface exceeds the limit friction threshold value, it is determined that the load-bearing part is in an extreme movement state, and the first adjustment volume of the target audio material is determined by using the correspondence between the pre-set friction value and the volume.

[0131] In an optional implementation, if the extreme motion state is a fully driven state, the friction value of the load-bearing part on the contact surface is a rolling friction value. According to the rolling friction value, a preset correspondence between the rolling friction value and the volume is used to determine the first adjustment volume of the target audio material.

[0132] In this embodiment, when the rotation speed of the load-bearing part exceeds the preset speed of the virtual vehicle, the extreme motion state of the load-bearing part is determined to be the full drive state, which is the "burnout" state in the racing scene. The burnout state refers to the state where the load-bearing part rotates too fast, the outer surface of the load-bearing part is rubbed, and the friction heat causes the load-bearing part to be too high in temperature. In the full drive state, the friction value of the load-bearing part on the contact surface is the forward rolling friction value, and the corresponding relationship between the preset rolling friction value and the volume is used to determine the first adjustment volume of the target audio material.

[0133] In another optional implementation, if the extreme motion state is a complete braking state, the friction value of the load-bearing part on the contact surface is a sliding friction value, and based on the sliding friction value, a preset correspondence between the sliding friction value and the volume is used to determine the first adjustment volume of the target audio material.

[0134] In this embodiment, when the rotation speed of the load-bearing part is less than the preset speed of the virtual vehicle, the load-bearing part slides on the contact surface. When the rotation speed of the load-bearing part continues to decrease and is less than the minimum speed threshold, the extreme motion state of the load-bearing part is determined to be a full braking state, which is the brake locking state in the racing scene. In the full braking state, the friction value of the load-bearing part on the contact surface is the backward sliding friction value. The corresponding relationship between the preset sliding friction value and the volume is used to determine the first adjustment volume of the target audio material.

[0135] For examples, please refer to Figure 3 , which is a schematic diagram of a corresponding relationship between a friction value and a volume provided by an embodiment of the present invention, such as Figure 3 As shown, the longitudinal slip degree (wheel_roll_factor) of the load-bearing part is the friction value of the tire at the load-bearing part, and the value range of the longitudinal slip degree of the load-bearing part is -1 to 1.

[0136] The longitudinal slip degree of the load-bearing part is less than 0, which represents the rolling friction value. When the longitudinal slip degree of the load-bearing part is -1, the rotation speed of the load-bearing part completely exceeds the movement degree of the preset virtual vehicle, that is, the load-bearing part is in a fully driven state. The first adjustment volume corresponding to the rolling friction value increases proportionally with the rolling degree of the load-bearing part, and reaches the maximum value near the full rolling range (-0.75~-1).

[0137] The longitudinal slip degree of the load-bearing part is greater than 0, which represents the sliding friction value. When the longitudinal slip degree of the load-bearing part is 1, the load-bearing part has completely stopped rotating, and the relative speed between the load-bearing part and the contact surface reaches the maximum value, that is, the load-bearing part is in a complete braking state. The first adjustment volume corresponding to the sliding friction value increases proportionally with the slip degree of the load-bearing part, and reaches the maximum value near the range of complete sliding (0.75~1).

[0138] In an optional embodiment, the multiple state parameters may also include: a linear movement speed of the load-bearing part, and determining a second adjusted volume of the target audio material based on the linear movement speed and a preset correspondence between the linear movement speed and the volume.

[0139] In this embodiment, in addition to the influence of the friction value of the load-bearing part on the contact surface on the volume, the linear movement speed (wheel_speed) of the load-bearing part will also affect the volume of the target audio material of the load-bearing part in the extreme motion state. In the fully driven state or the fully braked state, the second adjustment volume of the target audio material is determined according to the linear movement speed of the load-bearing part and the preset correspondence between the linear movement speed and the volume. For example, the weights of the first adjustment volume and the second adjustment volume can be determined according to the influence of the rolling friction value and the linear movement speed on the volume, and the first adjustment volume and the second adjustment volume are weightedly calculated to obtain the target adjustment volume.

[0140] When the extreme motion state of the load-bearing part is the fully driven state, since the vehicle speed range in the real scene is very different when fully driven, the audio effects of the load-bearing parts caused by different vehicle speeds are also very different. In order to reflect the influence of the vehicle speed on the audio effect of the load-bearing part, the correspondence between the linear moving speed and the volume of the load-bearing part can be determined, and the second adjustment volume in the full braking state can be determined based on the correspondence, thereby restoring the intensity of the braking audio effect at different vehicle speeds in the real scene.

[0141] For examples, please refer to Figure 4 , which is a schematic diagram of a correspondence between a linear moving speed and a volume provided by an embodiment of the present invention, please refer to Figure 5, which is a schematic diagram of another correspondence between linear moving speed and volume provided by an embodiment of the present invention, such as Figure 4 As shown in the figure, it is the corresponding relationship between the linear moving speed and the volume in the fully driven state. Figure 5 As shown, this is the corresponding relationship between the linear moving speed and the volume in the full braking state. As the linear moving speed of the load-bearing part increases, the corresponding second adjustment volume also gradually increases. The linear moving speed of the load-bearing part is 0 to 150 miles per hour. When the linear moving speed is greater than 150 miles per hour, the volume corresponding to the maximum linear speed is also taken as the second adjustment volume.

[0142] In an optional embodiment, for the extreme motion state being a fully driven state, the multiple state parameters may also include: the rotation direction of the load-bearing part. If the rotation direction of the load-bearing part is a forward rotation direction, the third adjustment volume of the target audio material is determined; if the rotation direction of the load-bearing part is a reverse rotation direction, the fourth adjustment volume of the target audio material is determined.

[0143] In this embodiment, in the fully driven state, the load-bearing part may rotate forward or reversely. When the load-bearing part rotates in the reverse direction, the load-bearing part will not trigger the audio effect corresponding to the target audio sample. Therefore, when the load-bearing part rotates in the reverse direction, the volume of the target audio sample needs to be gradually weakened.

[0144] According to the rotation speed (wheel_rotation_rate) of the load-bearing part, the rotation direction of the load-bearing part is determined, and if the rotation direction of the load-bearing part is the forward rotation direction, the third adjustment volume of the target audio material is determined. If the rotation direction of the load-bearing part is the reverse rotation direction, the fourth adjustment volume of the target audio material is determined.

[0145] For example, the weights of the first adjustment volume and the third adjustment volume can be determined according to the influence of the rolling friction value and the rotation speed on the volume, and the first adjustment volume and the third adjustment volume can be weighted calculated to obtain the target adjustment volume; or, the weights of the first adjustment volume and the fourth adjustment volume can be determined, and the first adjustment volume and the fourth adjustment volume can be weighted calculated to obtain the target adjustment volume.

[0146] Furthermore, when the load-bearing part rotates in the reverse direction, the volume of the target audio sample needs to be gradually reduced. The multiple state parameters also include: the rotation speed of the load-bearing part, and the fourth adjustment volume of the target audio material can be determined according to the rotation speed of the load-bearing part rotating in the reverse direction and the corresponding relationship between the preset rotation speed and volume.

[0147] For examples, see Figure 6 , is a schematic diagram of a corresponding relationship between a rotation speed and a volume provided by an embodiment of the present invention, such as Figure 6As shown in the figure, when the load-bearing part rotates forward, the linear movement speed of the load-bearing part is greater than 0, and the second adjustment volume corresponding to the forward rotation is the standard volume; when the load-bearing part rotates reversely, the linear movement speed of the load-bearing part is less than 0. As the reverse linear movement speed of the load-bearing part increases, the corresponding third adjustment volume decreases. It should be noted that the volume corresponding value of the ordinate in the figure is 0, which does not mean no volume, but rather a standard volume. A value less than 0 means a reduced volume, and a value greater than 0 means an increased volume.

[0148] In an optional embodiment, if the extreme motion state is a fully driven state, the multiple state parameters may also include: a lateral slip angle of the load-bearing part, and determining a fourth adjusted volume of the target audio material based on the lateral slip angle and a preset correspondence between the lateral slip angle and the volume.

[0149] In this embodiment, since the load-bearing part and the contact surface may slip during the movement, the slip angle may not be perpendicular to the ground. For example, if the load-bearing part drifts, the load-bearing part may slip lateraly and the rear load-bearing part may experience rolling friction. In this case, the volume of the target audio material corresponding to the full drive state needs to be reduced.

[0150] This embodiment determines the fifth adjustment volume of the target audio material according to the lateral slip degree (wheel_skid_factor) of the load-bearing part. When the lateral slip angle of the load-bearing part is greater than 0, the load-bearing part slips sideways. When the lateral slip angle is greater than the maximum angle, the load-bearing part enters into full lateral friction, that is, the load-bearing part drifts. In this case, the forward friction value and the backward friction value of the load-bearing part are both reduced, so the volume of the target audio sample also needs to be reduced, and finally the volume is reduced to 0 when the drift is complete. For examples, please refer to Figure 7 , which is a schematic diagram of a corresponding relationship between a lateral slip angle and a volume provided by an embodiment of the present invention, such as Figure 7 As shown, as the lateral slip angle increases, the fifth adjustment volume gradually decreases.

[0151] Based on the above embodiment, one or more of the first adjustment volume, the second adjustment volume, the third adjustment volume / the fourth adjustment volume and the fifth adjustment volume may be weightedly calculated to determine the target adjustment volume, which is not limited in the present invention.

[0152] The audio control method provided by the embodiment of the present invention obtains the motion state of a preset virtual vehicle, and the motion state includes: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state. Based on the type of the load-bearing part, a target audio material is determined from an audio material library in the extreme motion state, and multiple adjustment volumes of the target audio material are determined according to the various state parameters of the load-bearing part in the extreme motion state, and the multiple adjustment volumes are weighted to obtain the target adjustment volume, and the target audio material is played according to the target adjustment volume. The scheme of the embodiment of the present invention can determine multiple adjustment volumes according to the various state parameters of the load-bearing part, so as to obtain the target adjustment volume by weighting the multiple adjustment volumes, thereby reflecting the subtle differences between different states of the load-bearing part in the extreme motion state, making the playback effect of the target audio material more detailed and layered, and enhancing the player's experience in virtual simulation racing games.

[0153] After determining a plurality of adjustment volumes according to a plurality of state parameters and determining a target adjustment volume, for a full braking state, the pitch of the audio emitted by the load-bearing part when the brake is locked should also be considered.

[0154] Please refer to Figure 8 , a flowchart of another audio control method is also provided for an embodiment of the present invention, such as Figure 8 As shown, in this embodiment, if the extreme motion state is a full braking state, the audio control method includes: S10, S20, S30, S41 and S42, wherein S10, S20 and S30 are the same as those in the above embodiment and will not be described in detail here.

[0155] S10: Acquire the motion state of the preset virtual vehicle, where the motion state includes: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state.

[0156] S20: Based on the type of the load-bearing part, determine the target audio material from the audio material library under extreme sports conditions.

[0157] S30: Determine a target adjustment volume of the target audio material according to the state parameters of the load-bearing part under the extreme motion state.

[0158] S41: Determine a first pitch of the target audio material according to the linear movement speed and a preset correspondence between the linear movement speed and the pitch.

[0159] In this embodiment, the load-bearing part enters the full braking state at different linear moving speeds, and the audio generated by the sliding friction between the load-bearing part and the contact surface will have obvious differences in pitch. When the linear moving speed is low, the sliding speed when entering the full braking state is slow, the sliding friction frequency is low, and the pitch of the audio is relatively low; when the linear moving speed is high, the sliding speed when entering the full braking state is fast, the sliding friction frequency is high, and the pitch of the audio is relatively high. This embodiment can determine the first pitch of the target audio material based on the linear moving speed and the preset correspondence between the linear moving speed and the pitch, so that different first pitches of audio are generated for the full braking state at different linear moving speeds, creating differences in hearing for players.

[0160] For examples, please refer to Fig. 9 , is a schematic diagram of a correspondence between a linear moving speed and a pitch provided by an embodiment of the present invention, such as Fig. 9 As shown, different linear movement speeds correspond to different pitches, and the first pitch corresponding to the linear movement speed can be determined according to the corresponding relationship.

[0161] S42: Play the target audio material by adjusting the volume and the first pitch according to the target.

[0162] In this embodiment, after the target adjustment volume and the first pitch are determined, the target audio material is played in the game engine according to the target adjustment volume and the first pitch.

[0163] The audio control method provided by the embodiment of the present invention, if the extreme motion state is a full braking state, obtains the motion state of a preset virtual vehicle, the motion state includes: indication information that the load-bearing part of the preset virtual vehicle is in a full braking state, and state parameters of the load-bearing part of the preset virtual vehicle in the full braking state, based on the type of the load-bearing part, determines the target audio material from the audio material library in the full braking state, determines the target adjustment volume of the target audio material according to the state parameters of the load-bearing part in the full braking state, determines the first pitch of the target audio material according to the linear moving speed, and the preset correspondence between the linear moving speed and the pitch, and plays the target audio material according to the target adjustment volume and the first pitch. The scheme of the embodiment of the present invention, when the load-bearing part is in a full braking state, can determine the target adjustment volume and the first pitch according to the state parameters of the load-bearing part, so as to play the target audio material according to the target adjustment volume and the first pitch, thereby restoring the most realistic audio effect according to the motion state of the load-bearing part, and enhancing the player's experience in virtual simulation racing games.

[0164] Based on the above embodiment, the present invention also provides another audio control method. Fig.10 , is a flow chart of another audio control method provided by an embodiment of the present invention, such as Fig.10As shown, the method also includes:

[0165] S51: Determine the filtering frequency band of the target audio material according to the linear moving speed and the corresponding relationship between the preset linear moving speed and the filtering frequency band.

[0166] In this embodiment, when the load-bearing part is in a fully braked state, before playing the target audio material, in order to distinguish between low-speed braking and high-speed braking, the corresponding relationship between the linear moving speed and the filter frequency band can be determined based on the LPF according to the linear moving speed, and the filter frequency band of the target audio material can be determined according to the corresponding relationship between the linear moving speed and the filter frequency band. For an example, please refer to Fig.11 , which is a schematic diagram of a correspondence between a linear moving speed and a filtering frequency band provided by an embodiment of the present invention, such as Fig.11 As shown, the smaller the linear moving speed, the higher the filtering frequency band, and the larger the linear moving speed, the lower the filtering frequency band.

[0167] It should be noted that, since the purpose of adjusting the frequency band of the target audio material is to distinguish the audio effects of slow braking and high-speed braking, the present invention does not limit the corresponding relationship between the linear moving speed and the filtering frequency band.

[0168] S52: Adjust the frequency band of the target audio material according to the filtering frequency band.

[0169] In this embodiment, after the filtering frequency band of the target audio material is determined according to the linear moving speed, the frequency band of the target audio material is adjusted to play the target audio material after the frequency band is adjusted.

[0170] Based on the above embodiment, the embodiment of the present invention also provides another audio control method. Fig.12 , is a flow chart of yet another audio control method provided by an embodiment of the present invention, such as Fig.12 As shown, the method also includes:

[0171] S61: Get brake drum locking audio.

[0172] In real scenarios, vehicles are divided into two types: those with an Anti-lock Brake System (ABS) and those without an ABS. The function of the ABS is to automatically control the braking force of the brake during the braking process of the vehicle so that the load-bearing parts of the vehicle are not locked. The load-bearing parts are in a state of rolling and sliding, and the slip rate can be around 20% to ensure that the adhesion between the load-bearing parts and the contact surface is at the maximum value. Before the load-bearing parts reach the next locking point, the pressure of the brake causes the airbag to act repeatedly, which is equivalent to constantly braking and releasing, which is equivalent to mechanical braking.

[0173] Real scenes are also simulated in virtual simulation racing games. The virtual vehicle can also choose whether to be equipped with an anti-lock braking system. If the virtual vehicle is equipped with an anti-lock braking system, it is necessary to obtain the brake drum locking audio when the load-bearing part of the virtual vehicle enters a full braking state. The brake drum locking audio is the mechanical sound of the brake drum and disc repeatedly opening and closing generated by the anti-lock braking system when it is working.

[0174] S62: Determine a third adjustment volume of the brake drum locking audio according to the linear movement speed and a preset correspondence between the linear movement speed and the volume.

[0175] In this embodiment, when the linear moving speed of the load-bearing part is low, the inertia of the virtual vehicle is weak, the intervention of the anti-lock braking system is also weak, and the volume of the brake drum locking audio is low; when the linear moving speed of the load-bearing part is high, the inertia of the virtual vehicle is strong, the intervention of the anti-lock braking system is also strong, and the volume of the brake drum locking audio is high. Different linear moving speeds correspond to different volumes of the brake drum locking audio, and the third adjustment volume of the brake drum locking audio can be determined according to the preset correspondence between the linear moving speed and the volume.

[0176] For examples, please refer to Fig.13 , which is a schematic diagram of another correspondence between a linear moving speed and a volume provided by an embodiment of the present invention, such as Fig.13 As shown, different linear moving speeds correspond to different brake drum locking audio volumes. When the linear moving speed is in the range of 0-50 miles, the brake drum locking audio volume increases with the linear moving speed. When the linear moving speed is greater than 50, it will be played at a normal volume.

[0177] S63: When playing the target audio material with the target adjusted volume, playing the brake drum locking audio with the third adjusted volume at a preset time interval.

[0178] In this embodiment, when simulating the operation of the anti-lock braking system, the audio effect of the anti-lock braking system in the real scene must also be simulated. The brake drum locking audio generated when the anti-lock braking system is working is made into a Loop audio that is played in an infinitely repeated loop at a preset time interval. When playing the target audio material with the target volume, the Loop audio is played synchronously at a third adjusted volume.

[0179] In an optional embodiment, the second pitch of the brake drum locking audio is determined based on the linear movement speed and the preset correspondence between the linear movement speed and the pitch, and the brake drum locking audio with a third adjusted volume and the second pitch is played at a preset time interval.

[0180] In this embodiment, the method for determining the second pitch of the brake drum locking audio according to the linear moving speed is the same as the method for determining the first pitch of the target audio material according to the linear moving speed, and will not be described in detail here. After determining the second pitch of the brake drum locking audio, the loop audio is played according to the third adjustment volume and the second pitch. For examples, please refer to Fig.14 , is a schematic diagram of another correspondence between linear moving speed and pitch provided by an embodiment of the present invention, such as Fig.14 As shown, different linear movement speeds correspond to different pitches, and the second pitch corresponding to the linear movement speed can be determined according to the corresponding relationship.

[0181] The audio control method provided by the embodiment of the present invention obtains brake drum locking audio, determines the third adjustment volume of the brake drum locking audio according to the linear moving speed and the preset correspondence between the linear moving speed and the volume, and plays the brake drum locking audio of the third adjustment volume at a preset time interval when playing the target audio material of the target adjustment volume. The solution of the embodiment of the present invention can add brake drum locking audio for the full braking state, thereby restoring the most realistic audio effect according to the movement state of the load-bearing part, and enhancing the player's experience in virtual simulation racing games.

[0182] Based on the above embodiment, the embodiment of the present invention further provides a virtual device applied to the above audio control method, please refer to Fig.15 , is a schematic diagram of the structure of an audio control device provided by an embodiment of the present invention, such as Fig.15 As shown, the device comprises:

[0183] The motion state acquisition module 10 is used to acquire the motion state of the preset virtual vehicle, and the motion state includes: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state;

[0184] An audio material selection module 20, for determining target audio material from an audio material library under extreme sports conditions based on the type of the load-bearing part;

[0185] The volume adjustment determination module 30 is used to determine the target volume adjustment of the target audio material according to the state parameters of the load-bearing part under the extreme motion state;

[0186] The playing module 40 is used to play the target audio material by adjusting the volume according to the target.

[0187] Optionally, the volume adjustment determination module 30 includes:

[0188] An adjustment volume determination unit, used to determine a plurality of adjustment volumes of target audio materials according to a plurality of state parameters of the load-bearing part in an extreme motion state;

[0189] The volume weighted calculation unit is used to weight multiple adjusted volumes to obtain a target adjusted volume.

[0190] Optionally, the multiple state parameters include: a friction value of the load-bearing part on the contact surface, and an adjustment volume determination module 30, which is specifically used to determine the first adjustment volume of the target audio material based on the friction value and a preset correspondence between the friction value and the volume.

[0191] Optionally, the multiple state parameters also include: the linear movement speed of the load-bearing part, and an adjustment volume determination module 30, which is specifically used to determine the second adjustment volume of the target audio material based on the linear movement speed and the preset correspondence between the linear movement speed and the volume.

[0192] Optionally, if the extreme motion state is a fully driven state, the friction value of the load-bearing part on the contact surface is a rolling friction value; the volume adjustment determination module 30 is specifically used to determine the first adjustment volume of the target audio material based on the rolling friction value and the corresponding relationship between the preset rolling friction value and the volume.

[0193] Optionally, the multiple state parameters also include: the rotation direction of the load-bearing part; an adjustment volume determination module 30, which is specifically used to determine the third adjustment volume of the target audio material if the rotation direction of the load-bearing part is a forward rotation direction; if the rotation direction of the load-bearing part is a reverse rotation direction, determine the fourth adjustment volume of the target audio material.

[0194] Optionally, the multiple state parameters also include: the rotation speed of the load-bearing part; and an adjustment volume determination module 30, which is specifically used to determine the fourth adjustment volume of the target audio material based on the rotation speed of the load-bearing part rotating in the opposite direction and the corresponding relationship between the preset rotation speed and volume.

[0195] Optionally, if the extreme motion state is a fully driven state, the multiple state parameters include: a lateral slip angle of the load-bearing part, an adjustment volume determination module 30, which is specifically used to determine the fifth adjustment volume of the target audio material based on the lateral slip angle and the corresponding relationship between the preset lateral slip angle and volume.

[0196] Optionally, if the extreme motion state is a complete braking state, the friction value of the load-bearing part on the contact surface is a sliding friction value; the adjustment volume determination module 30 is specifically used to determine the first adjustment volume of the target audio material based on the sliding friction value and the corresponding relationship between the preset sliding friction value and the volume.

[0197] Optionally, the state parameter includes: a linear moving speed of the load-bearing part, and the device further includes:

[0198] A first pitch determination module, used to determine a first pitch of a target audio material according to a linear movement speed and a preset correspondence between a linear movement speed and a pitch;

[0199] The playing module is specifically used to adjust the volume and the first pitch according to the target to play the target audio material.

[0200] Optionally, the state parameter includes: a linear moving speed of the load-bearing part, and the device further includes:

[0201] A filter frequency band determination module, used to determine the filter frequency band of the target audio material according to the linear movement speed and the corresponding relationship between the preset linear movement speed and the filter frequency band;

[0202] The frequency band adjustment module is used to adjust the frequency band of the target audio material according to the filtering frequency band.

[0203] Optionally, the state parameter includes: a linear moving speed of the load-bearing part, and the device further includes:

[0204] A locking audio acquisition module is used to obtain the brake drum locking audio;

[0205] A locking audio volume determination module, used to determine a third adjustment volume of the brake drum locking audio according to the linear moving speed and a preset correspondence between the linear moving speed and the volume;

[0206] The locking audio playback module is used to play the brake drum locking audio with a third volume adjustment at a preset time interval when playing the target audio material with a target volume adjustment.

[0207] Optionally, the device further comprises:

[0208] A second pitch determination module, used to determine the second pitch of the brake drum locking audio according to the linear moving speed and a preset correspondence between the linear moving speed and the pitch;

[0209] The locking audio playing module is specifically used to play the brake drum locking audio with a third adjusted volume and a second pitch at a preset time interval.

[0210] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0211] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0212] Please refer to Fig.16 , is a schematic diagram of an electronic device provided by an embodiment of the present invention, such as Fig.16 As shown, the electronic device 100 includes: a processor 101, a storage medium 102 and a bus. The storage medium 102 stores program instructions executable by the processor 101. When the electronic device 100 is running, the processor 101 and the storage medium 102 communicate through the bus. The processor 101 executes the program instructions to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0213] Optionally, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method embodiment described above is executed. The specific implementation method and technical effect are similar and will not be described in detail here.

[0214] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0215] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0216] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0217] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0218] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. An audio control method, characterized in that: The method comprises: Acquire a motion state of a preset virtual vehicle, the motion state comprising: indication information that a load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state, the extreme motion state being a motion state when a friction value between the load-bearing part and a virtual road in contact exceeds a limit friction threshold; Based on the type of the load-bearing part, determining target audio material from the audio material library in the extreme sports state; Determining a target adjustment volume of the target audio material according to a state parameter of the load-bearing part in the extreme motion state; Play the target audio material by adjusting the volume according to the target; The step of determining the target adjustment volume of the target audio material according to the state parameter of the load-bearing part in the extreme motion state comprises: Determining a plurality of adjustment volumes of the target audio material respectively according to a plurality of state parameters of the load-bearing part in the extreme motion state; The multiple adjusted volumes are weighted to obtain the target adjusted volume.

2. The method according to claim 1, characterized in that The multiple state parameters include: the friction value of the load-bearing part on the contact surface, and the multiple adjustment volumes of the target audio material are determined respectively according to the multiple state parameters of the load-bearing part in the extreme motion state, including: According to the friction value, a first adjusted volume of the target audio material is determined using a preset correspondence between the friction value and the volume.

3. The method according to claim 2, characterized in that The multiple state parameters also include: the linear moving speed of the load-bearing part, and the multiple adjustment volumes of the target audio material are determined according to the multiple state parameters of the load-bearing part in the extreme motion state, including: According to the linear movement speed and a preset correspondence between the linear movement speed and the volume, a second adjusted volume of the target audio material is determined.

4. The method according to claim 2, characterized in that If the extreme motion state is a fully driven state, the friction value of the load-bearing part on the contact surface is a rolling friction value; and according to the friction value, the first adjusted volume of the target audio material is determined by using a preset correspondence between the friction value and the volume, including: According to the rolling friction value, a preset corresponding relationship between the rolling friction value and the volume is adopted to determine a first adjusted volume of the target audio material.

5. The method according to claim 4, characterized in that The multiple state parameters also include: the rotation direction of the load-bearing part; and the multiple adjustment volumes of the target audio material are determined according to the multiple state parameters of the load-bearing part in the extreme motion state, including: If the rotation direction of the load-bearing part is a forward rotation direction, determining a third adjusted volume of the target audio material; If the rotation direction of the load-bearing part is a reverse rotation direction, a fourth adjusted volume of the target audio material is determined.

6. The method according to claim 5, characterized in that The multiple state parameters also include: the rotation speed of the load-bearing part; if the rotation direction of the load-bearing part is the reverse rotation direction, determining the fourth adjusted volume of the target audio material includes: The fourth adjusted volume of the target audio material is determined according to the rotation speed of the reverse rotation of the load-bearing part and the corresponding relationship between the preset rotation speed and the volume.

7. The method according to claim 4, characterized in that If the extreme motion state is a fully driven state, the multiple state parameters include: a lateral slip angle of the load-bearing part, and the multiple adjustment volumes of the target audio material are determined respectively according to the multiple state parameters of the load-bearing part in the fully driven state, including: According to the lateral sliding angle and the corresponding relationship between the preset lateral sliding angle and the volume, a fifth adjusted volume of the target audio material is determined.

8. The method according to claim 2, characterized in that If the extreme motion state is a fully braked state, the friction value of the load-bearing part on the contact surface is a sliding friction value; The step of determining the first adjusted volume of the target audio material according to the friction value by using a preset correspondence relationship between the friction value and the volume includes: According to the sliding friction value, a preset corresponding relationship between the sliding friction value and the volume is adopted to determine a first adjusted volume of the target audio material.

9. The method according to claim 8, characterized in that The state parameter includes: the linear moving speed of the load-bearing part. Before adjusting the volume according to the target to play the target audio material, the method further includes: Determining a first pitch of the target audio material according to the linear movement speed and a preset correspondence between the linear movement speed and the pitch; The step of adjusting the volume according to the target to play the target audio material comprises: The target audio material is played by adjusting the volume and the first pitch according to the target.

10. The method according to claim 8, characterized in that The state parameter includes: the linear moving speed of the load-bearing part. Before adjusting the volume according to the target to play the target audio material, the method further includes: Determining the filtering frequency band of the target audio material according to the linear moving speed and a preset correspondence between the linear moving speed and the filtering frequency band; The frequency band of the target audio material is adjusted according to the filtering frequency band.

11. The method according to claim 8, characterized in that The state parameter includes: the linear moving speed of the load-bearing part, and the method further includes: Get brake drum locking audio; Determining a third adjustment volume of the brake drum locking audio according to the linear movement speed and a preset correspondence between the linear movement speed and the volume; When playing the target audio material with the target adjusted volume, the brake drum locking audio with the third adjusted volume is played at a preset time interval.

12. The method according to claim 11, characterized in that Before playing the brake drum locking audio with the third adjusted volume at a preset time interval, the method further includes: Determining a second pitch of the brake drum locking audio according to the linear moving speed and a preset correspondence between the linear moving speed and the pitch; The step of playing the brake drum locking audio with the third adjusted volume at a preset time interval includes: The brake drum locking audio with the third adjusted volume and the second pitch is played at a preset time interval.

13. An audio control device, characterized in that: The device comprises: A motion state acquisition module, used to acquire the motion state of a preset virtual vehicle, wherein the motion state includes: indication information that the load-bearing part of the preset virtual vehicle is in an extreme motion state, and state parameters of the load-bearing part of the preset virtual vehicle in the extreme motion state; An audio material selection module, used to determine target audio material from the audio material library in the extreme sports state based on the type of the load-bearing part; An adjustment volume determination module, used to determine a target adjustment volume of the target audio material according to a state parameter of the load-bearing part in the extreme motion state; A playing module, used to adjust the volume according to the target and play the target audio material; The volume adjustment determination module includes: an adjustment volume determination unit, configured to respectively determine a plurality of adjustment volumes of the target audio material according to a plurality of state parameters of the load-bearing part in the extreme motion state; The volume weighted calculation unit is used to weight the multiple adjusted volumes to obtain the target adjusted volume.

14. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the audio control method as described in any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the audio control method according to any one of claims 1 to 12 are executed.

Citation Information

Patent Citations

  • Sound effect processing method and device in game

    CN113332723A

  • Processing device, squealing sound generation method in information processing device, and computer program product

    US20070269054A1