Audio playback control method and apparatus
By setting the playback priority and threshold of audio files based on the location of the virtual character in the game, and dynamically adjusting the playback order and number of audio files, the audio adaptation problem in game audio processing is solved, game audio is optimized, and the user's auditory experience is improved.
Patent Information
- Application Number
- CN202211448308.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-11-18
AI Technical Summary
Existing technologies fail to effectively handle different audio layers in game audio processing, resulting in audio that cannot adapt to the game scene, causing audio redundancy and affecting the presentation of sound.
By determining the target parameters within the current virtual scene where the virtual avatar is located, and setting the playback priority and threshold of audio files based on the target parameters, the playback order and number of audio files are dynamically adjusted, and the proportion of each type of sound is reasonably configured.
It improves the auditory experience of game audio, reduces audio clutter, and enhances the adaptability of audio to game scenes.
Smart Images

Figure CN115738265B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an audio playback control method. This application also relates to an audio playback control device, a computing device, and a computer-readable storage medium. Background Technology
[0002] With the development of game technology, the demand for diverse game audio is becoming increasingly rich, with higher requirements for sound quality and game feedback. Based on the current game engine, the existing technology, when processing multiple audio categories configured in the game, mostly focuses on audio playback but fails to handle different audio layers well. This may result in the processed audio being unable to adapt to the game scene, causing audio redundancy and affecting the presentation of sound, thus failing to meet the needs of game audio production. Summary of the Invention
[0003] In view of this, embodiments of this application provide an audio playback control method to address the technical deficiencies existing in the prior art. Embodiments of this application also provide an audio playback control device, a computing device, and a computer-readable storage medium.
[0004] According to a first aspect of the embodiments of this application, an audio playback control method is provided, including:
[0005] When the current virtual scene in which the virtual avatar is located is a preset virtual scene, determine the target parameters corresponding to the virtual avatar;
[0006] Based on the target parameters, determine the playback priority of the audio file corresponding to the current virtual scene, and determine the playback threshold corresponding to the audio file;
[0007] The audio file is played according to the playback priority and the playback threshold.
[0008] According to a second aspect of the embodiments of this application, an audio playback control device is provided, comprising:
[0009] The location determination module is configured to determine the target parameters corresponding to the virtual image when the current virtual scene in which the virtual image is located is a preset virtual scene;
[0010] The priority determination module is configured to determine the playback priority of the audio file corresponding to the current virtual scene based on the target parameters, and to determine the playback threshold corresponding to the audio file;
[0011] The audio playback module is configured to play the audio file according to the playback priority and the playback threshold.
[0012] According to a third aspect of the embodiments of this application, a computing device is provided, comprising:
[0013] Memory and processor;
[0014] The memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions to implement the steps of the audio playback control method.
[0015] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided that stores computer-executable instructions, which, when executed by a processor, implement the steps of the audio playback control method.
[0016] According to a fifth aspect of the present application, a chip is provided that stores a computer program, which, when executed by the chip, implements the steps of the audio playback control method.
[0017] This application provides an audio playback control method and apparatus. The audio playback control method includes: determining target parameters corresponding to the virtual character when the current virtual scene where the virtual character is located is a preset virtual scene; determining the playback priority of an audio file corresponding to the current virtual scene based on the target parameters, and determining the playback threshold of the audio file; and playing the audio file according to the playback priority and the playback threshold. By setting a dynamic priority based on the position of the virtual character, the proportion of various types of sound is reasonably configured. Furthermore, when the number of audio triggers during game operation is too large, a maximum playback count can be set to control the actual playback volume at present, thereby optimizing multiple audio in the game and improving the user's auditory experience. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the structure of an audio playback control method provided in an embodiment of this application;
[0019] Figure 2 This is a flowchart of an audio playback control method provided in an embodiment of this application;
[0020] Figure 3 This is a flowchart illustrating an audio playback control method provided in an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of the structure of an audio playback control device provided in one embodiment of this application;
[0022] Figure 5 This is a structural block diagram of a computing device provided in one embodiment of this application. Detailed Implementation
[0023] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.
[0024] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.
[0025] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first.
[0026] First, the terminology used in one or more embodiments of the present invention will be explained.
[0027] ID (Identity document): This refers to the identification number on an ID card.
[0028] This application provides an audio playback control method. This application also relates to an audio playback control device, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.
[0029] See Figure 1 The diagram illustrates a scenario for an audio playback control method. During gameplay, audio objects in the game interface play sounds. For example, when a user controls a virtual avatar to fight monsters, the monsters emit pre-set audio. Upon successful audio playback, a unique ID of the object playing the audio and its corresponding unique audio ID are stored in a specific data structure object. The data structure object is removed upon completion of playback.
[0030] When preparing to play audio, the system retrieves the number of times the audio is currently playing using its unique ID. If this number is greater than or equal to the global playback threshold set for that audio, no further playback instances are created. If the number of times the audio is currently playing does not exceed the global playback threshold, the system retrieves the number of times the audio object is playing the audio again using its unique ID. If the number of times the audio object is playing the audio is greater than or equal to the local playback threshold set for that audio, no further playback instances are created. If the number of times the audio object is playing the audio does not exceed the local playback threshold set for that audio, an instance of the audio is created and the sound is played. If the global and local playback thresholds are set for a group of audio files, the playback order of the audio files must be determined based on their audio priority.
[0031] Specifically, in each scene's image frame, the audio instance retrieves the set audio priority value as the base playback priority value. Next, it attempts to retrieve the game object collection instance passed in during the audio instance's initialization. If the game object collection instance is obtained, the priority offset value in the game object collection instance is added to the base priority value to obtain a new base value. Then, the distance to the sound monitoring object is obtained. The value obtained by normalizing (distance - minimum distance of the priority curve) / (maximum distance of the priority curve - minimum distance of the priority curve) is used as a percentage, and the distance value of the priority curve is obtained. Then, the interpolation value between the maximum and minimum playback priority values of the priority curve is taken from the distance value of the priority curve, which is the current audio instance's playback priority offset value. Finally, this offset value is added to the current audio instance's base playback priority value, completing the process of dynamically synchronizing playback priority based on the distance between the audio object and the sound monitoring object. Finally, the obtained priority value is set to the audio object.
[0032] By setting dynamic priorities based on the location of virtual characters, the proportions of various sound types can be rationally configured. Furthermore, when the number of audio triggers during game operation is excessive, a maximum playback count can be set to control the actual playback volume at any given time. This combination of factors optimizes the game's multi-audio content and enhances the user's auditory experience.
[0033] Figure 2 A flowchart of an audio playback control method according to an embodiment of this application is shown, which specifically includes the following steps:
[0034] Step 202: If the current virtual scene where the virtual image is located is a preset virtual scene, determine the target parameters corresponding to the virtual image.
[0035] The virtual avatar can be a character in the game, such as a game character. The virtual scene can be a scene in the game, such as the scene when a user enters a room during gameplay. The target parameters can be set priority parameters, virtual avatar position parameters, etc.
[0036] In practical applications, different types of sounds occur when entering different scenes during game execution, such as music, environmental sound effects, voice lines, character skill sound effects, bullet or hit sound effects, etc. The criteria for adjusting priorities, i.e., target parameters, can be obtained in advance when entering a particular scene.
[0037] For example, when a player controls a character to enter scene A, which is a preset virtual scene, the system will trigger real-time monitoring of the character's position and obtain the character's coordinates in real time, thus determining the character's current position.
[0038] The embodiments in this specification monitor the target parameters of the scene from the perspective of the character or player, so as to determine the playback priority based on the target parameters and adjust the playback priority accordingly.
[0039] Step 204: Determine the playback priority of the audio file corresponding to the current virtual scene and the playback threshold of the audio file based on the target parameters.
[0040] After obtaining the target parameters of the virtual avatar, step 204 can be executed to determine the playback priority of the audio file based on the target parameters of the virtual avatar.
[0041] The audio files can be pre-set sound files to be played in the game, such as monster roars or footsteps. Playback priority refers to the playback priority of the audio files; for example, if two audio files exist and only one can be played, the audio file with the higher priority will be selected. The playback threshold limits the number of sounds that can be played; for example, only 100 sounds can be played.
[0042] In practical applications, the proportion of various sound types can be reasonably configured through dynamic priority settings. Furthermore, when too many audio tracks are triggered during game execution, a maximum playback count can be set to control the actual playback volume. By combining priority and playback thresholds, multi-audio optimization in games can be achieved.
[0043] For example, when a player controls a character to enter scene A, the character's position can be monitored in real time. Based on the character's current position, the audio files S1 and S2 that need to be played in the current virtual scene can be determined, as well as the playback priority of audio files S1 and S2. The playback threshold of scene A can also be determined.
[0044] This specification's embodiments allow for the rational configuration of various sound types' proportions through dynamic priority settings. When the number of audio triggers during game execution is excessive, a maximum playback count can be set to control the actual playback volume. This reduces audio clutter and improves the auditory experience.
[0045] In one possible implementation, determining the playback priority of the audio file corresponding to the current virtual scene based on the target parameters includes:
[0046] If the target parameters include an initial playback priority, the initial playback priority of the audio file is determined.
[0047] Obtain the target playback priority corresponding to the current virtual scene, and obtain the playback priority of the audio file based on the initial playback priority and the target playback priority.
[0048] The initial playback priority can be a static priority set for the audio file or an attribute carried by the audio file.
[0049] In practical applications, the audio priority value can be set as the base playback priority value, and the corresponding priority for the scene can be obtained. The base playback priority value and the corresponding priority for the scene are added together to determine the playback priority.
[0050] For example, when a player controls a character to enter scene A, the character's position is monitored in real time. Based on the character's current position, the corresponding audio files S1 and S2 for the current virtual scene can be determined, along with their initial playback priorities. The initial playback priority of audio file S1 can be 50, and the initial playback priority of audio file S2 can be 70. Furthermore, the target playback priorities of audio files S1 and S2 within scene A can be obtained. The target playback priority of audio file S1 can be 10, and the initial playback priority of audio file S2 can be 15. Therefore, the playback priority of audio file S1 can be 60, and the playback priority of audio file S2 can be 85.
[0051] It should be noted that the higher the numerical value corresponding to a priority, the higher the priority can be set; conversely, the higher the numerical value, the lower the priority can be set. This specification does not limit the examples. Additionally, other priority representation methods can be used, such as using letters like "A," "B," and "C" to represent priorities, where "A" represents a higher priority than "B," and "B" represents a higher priority than "C." Furthermore, the priority representation can be converted according to actual needs. For example, if high priority precision is not required, letters like "A," "B," and "C" can be used; if high priority precision is required, numerical values from 0 to 100 can be used. "A" can be converted to 30, "B" to 60, and "C" to 90. After converting to a numerical priority representation, the priority can be finely adjusted.
[0052] The embodiments in this specification adjust the audio playback priority according to the target playback priority corresponding to the current virtual scene for different scenes, thereby achieving the effect of dynamic priority adjustment and improving the efficiency of audio priority adjustment.
[0053] In one possible implementation, determining the playback priority of the audio file corresponding to the current virtual scene based on the target parameters includes:
[0054] If the target parameter includes the current position, determine the corresponding audio object of the audio file in the current virtual scene, and obtain the current position of the audio object;
[0055] A distance parameter is determined based on the current position of the virtual image and the current position of the audio object, and the playback priority of the audio file is adjusted based on the distance parameter to obtain the adjusted playback priority of the audio file.
[0056] The target playback priority can be defined as the priority of the audio file within a specific scene. An audio object can be understood as an object emitting sound within the scene, such as monsters or characters. The distance parameter can be the distance between the current position of the virtual character and the current position of the audio object. The current position can be understood as the virtual character's location within the virtual scene. For example, if the virtual character moves and enters a small cabin, then the cabin it's currently in is the current virtual scene, and the virtual character's coordinates within the cabin are its current position.
[0057] In practical applications, based on the existing playback priority, adjustments can be made according to position and distance. This allows for dynamic adjustment of the playback priority, resulting in a new playback priority.
[0058] For example, when a player controls a character to enter scene A, the character's position is monitored in real time. Based on the character's current position, the corresponding audio files S1 and S2 in the current virtual scene can be determined, along with their initial playback priorities. The initial playback priority of audio file S1 can be 50, and the initial playback priority of audio file S2 can be 70. Furthermore, the target playback priorities of audio files S1 and S2 within scene A can be obtained. The target playback priority of audio file S1 can be 10, and the initial playback priority of audio file S2 can be 15. Therefore, the playback priority of audio file S1 can be 60, and the playback priority of audio file S2 can be 85. The distances between the player and the monster corresponding to audio file S1, and between the player and the monster corresponding to audio file S2, can be determined. The playback priority of audio file S1 can be adjusted based on these distances, resulting in its adjusted playback priority. Similarly, the playback priority of audio file S2 can be adjusted based on these distances, resulting in its adjusted playback priority.
[0059] The embodiments in this specification adjust the audio playback priority according to the target playback priority corresponding to the current virtual scene for different scenes, and adjust the priority according to the distance parameter to achieve the effect of dynamic priority adjustment, thereby improving the efficiency of audio priority adjustment.
[0060] In addition to the initial priority and the target priority for the scene, the priority of each audio file can be dynamically adjusted according to the position attribute. The specific implementation method is as follows.
[0061] In one possible implementation, adjusting the playback priority of the audio file based on the distance parameter to obtain the adjusted playback priority of the audio file includes:
[0062] A preset priority offset parameter is determined, and a priority determination parameter is determined based on the preset priority offset parameter and the distance parameter, wherein the preset priority offset parameter includes the correspondence between the distance parameter and the priority offset parameter value;
[0063] The priority offset parameter value is determined from the preset priority offset parameter based on the priority determination parameter value;
[0064] The playback priority of the audio file is adjusted according to the priority offset parameter value and the distance parameter to obtain the adjusted playback priority of the audio file.
[0065] The priority offset parameter can be a parameter used to determine the playback priority of the audio file, such as the correspondence between distance and priority values. The priority determination parameter is used to determine the priority value based on the priority offset parameter; correspondingly, the priority offset parameter value can be the priority value.
[0066] In practical applications, the priority offset parameter can be a priority curve, which can be a curve in a two-dimensional coordinate system. One axis of the two-dimensional coordinate system represents the distance parameter, and the other axis represents the offset value, thus representing the correspondence between distance and priority values. Based on this, the distance to the audio monitoring object can be obtained, and the priority offset can be determined from the priority curve according to the distance.
[0067] For example, when a player controls a character to enter scene A, the character's position is monitored in real time. Based on the character's current position, the audio files S1 and S2 corresponding to the current virtual scene can be determined, along with their initial playback priorities. The initial playback priority of audio file S1 can be 50, and the initial playback priority of audio file S2 can be 70. Furthermore, the target playback priorities of audio files S1 and S2 within scene A can be obtained. The target playback priority of audio file S1 can be 10, and the initial playback priority of audio file S2 can be 15. Therefore, the playback priority of audio file S1 can be 60, and the playback priority of audio file S2 can be 85. The distances between the player and the monster corresponding to audio file S1, and between the player and the monster corresponding to audio file S2, can also be determined. Based on these distances, a priority offset parameter value can be determined from a pre-set priority curve. Adding the playback priority of audio file S1 to the priority offset parameter value determines the playback priority of audio file S1. Accordingly, the priority offset parameter value can be determined in the pre-set priority curve based on the distance between the character and the monster corresponding to audio file S2. The playback priority of audio file S2 can be determined by adding the playback priority of audio file S2 and the priority offset parameter value.
[0068] The embodiments in this specification determine the priority determination parameter based on the preset priority offset parameter and the distance parameter, and determine the playback priority based on the distance, which is more in line with the real scene and improves the realism of the auditory effect.
[0069] The priority value can be determined based on the priority curve in the above embodiments. How to determine the corresponding point in the priority curve becomes a problem that needs to be solved, which can be determined by the method in the following embodiments.
[0070] In one possible implementation, determining the priority determination parameter based on the preset priority offset parameter and the distance parameter includes:
[0071] The first distance parameter value and the second distance parameter value are determined according to the preset priority offset parameter;
[0072] The priority of the parameters is determined based on the distance parameter, the first distance parameter value, and the second distance parameter value.
[0073] The first distance parameter value can be the largest distance parameter among the priority offset parameters, and the second distance parameter value can be the smallest distance parameter among the priority offset parameters.
[0074] In practical applications, the ratio of (distance - minimum distance of priority curve) to (maximum distance of priority curve - minimum distance of priority curve) is calculated and normalized, and the resulting value is used as a percentage. The corresponding distance value in the priority curve can be obtained based on this percentage.
[0075] Continuing with the previous example, the priority determination parameter can be obtained using the priority curve based on the distance between the character and the monster corresponding to audio file S1. Specifically, subtracting the minimum distance on the priority curve from the distance between the character and the monster corresponding to audio file S1, and then dividing by the difference between the maximum and minimum distances on the priority curve, yields a percentage. The playback priority of audio file S1 is then determined based on this priority determination parameter. Similarly, the priority determination parameter can be obtained using the priority curve based on the distance between the character and the monster corresponding to audio file S2. Specifically, subtracting the minimum distance on the priority curve from the distance between the character and the monster corresponding to audio file S2, and then dividing by the difference between the maximum and minimum distances on the priority curve, yields a percentage. The playback priority of audio file S2 is then determined based on this priority determination parameter.
[0076] The embodiments in this specification determine the priority offset by distance, thereby achieving the effect of adjusting the audio based on the three-dimensional stereoscopic image and improving realism.
[0077] It should be noted that if the distance parameter exceeds the maximum value in the priority curve, then the priority value corresponding to the maximum distance in the priority curve can be directly determined. Conversely, if the distance parameter is less than the minimum value in the priority curve, then the priority value corresponding to the minimum distance in the priority curve can be directly determined.
[0078] In one possible implementation, determining the priority offset parameter value based on the priority determination parameter value within the preset priority offset parameter includes:
[0079] The target distance parameter is determined based on the priority determination parameter value in the preset priority offset parameter;
[0080] Based on the target distance parameter, obtain the corresponding priority offset parameter value in the preset priority offset parameter.
[0081] The priority determination parameter value can be the value obtained after normalization processing in the above embodiments. The target distance parameter can be the distance corresponding to the priority curve.
[0082] In practical applications, the distance value of the priority curve is taken as the interpolation between the maximum and minimum values of the playback priority of the priority curve, which is the offset value of the current audio instance from the playback priority.
[0083] Continuing with the previous example, the priority determination parameters can be obtained using the priority curve based on the distance between the character and the monster corresponding to audio file S1. Specifically, the minimum distance on the priority curve is subtracted from the distance between the character and the monster corresponding to audio file S1, and then divided by the difference between the maximum and minimum distances on the priority curve. Based on the priority determination parameters, a point can be identified on the priority curve, and the distance value corresponding to that point can be obtained. The corresponding priority offset value can be found based on this distance value. Adding this priority offset value to the playback priority value determines the playback priority of audio file S1. Similarly, the priority determination parameters can be obtained using the priority curve based on the distance between the character and the monster corresponding to audio file S2. Specifically, the minimum distance on the priority curve is subtracted from the distance between the character and the monster corresponding to audio file S2, and then divided by the difference between the maximum and minimum distances on the priority curve. Based on the priority parameters, a point can be determined on the priority curve, and the distance value corresponding to that point can be obtained. Based on the distance value corresponding to that point, the corresponding priority offset value can be found. By adding the priority offset value to the playback priority value, the playback priority of audio file S2 can be determined.
[0084] The embodiments in this specification improve the calculation speed by directly determining the priority offset corresponding to the distance based on the priority curve.
[0085] Step 206: Play the audio file according to the playback priority and the playback threshold.
[0086] In practical applications, two parameters can be considered: playback threshold and playback priority, to play audio files.
[0087] For example, in scenario B, the playback threshold is 1, meaning that only one audio file can be played. The initial playback priority of audio file S1 can be 50, and the initial playback priority of audio file S2 can be 70. Since audio file S2 has a higher initial playback priority, audio file S2 will be played.
[0088] The embodiments in this manual can improve the auditory performance of multiple audio layers by comprehensively setting audio priority, maximum number of playbacks, etc.
[0089] In one possible implementation, the playback threshold includes a global playback threshold;
[0090] Accordingly, determining the playback threshold corresponding to the audio file includes:
[0091] Determine the global playback threshold for the audio file in the current scenario.
[0092] The global playback threshold can be a playback threshold unrestricted by the scene, a threshold for the same audio file corresponding to multiple audio objects within the same scene, or a threshold for the same group of audio files corresponding to multiple audio objects within the same scene. For example, the global playback threshold can be the playback threshold for all audio files displayed on the same screen. The global playback threshold can be set for multiple instances created from a single audio file, or for multiple audio files within the same group. For example, if audio files S1 and S2 belong to the same group of audio files, then a global threshold can be set for audio files S1 and S2.
[0093] In practical applications, when the number of audio triggers during game operation is too large, a maximum number of playbacks can be set to control the actual number of playbacks at any given time.
[0094] For example, if the global playback threshold for an audio file S1 is set to 50, then when both audio object A and audio object B are playing audio file S1, the total number of times audio file S1 is played simultaneously by audio object A and audio object B cannot exceed 50. Simultaneous playback means that two instances of audio file S1 are playing simultaneously, even before they have finished playing. For instance, if audio file S1 is five seconds long, and the first instance of audio file S1 has played for two seconds while the second instance of audio file S1 has played for four seconds, then the first instance and the second instance of audio file S1 are playing simultaneously.
[0095] For example, if the global playback threshold for a set of audio files S1 and S2 is set to 50, then when both audio object A and audio object B are playing audio files S1 and S2, the total number of times audio files S1 and S2 are played simultaneously by audio object A and audio object B cannot exceed 50.
[0096] The embodiments in this specification reduce audio clutter by limiting the number of audio playbacks globally, thereby improving the listening experience.
[0097] In one possible implementation, the playback threshold includes a local playback threshold;
[0098] Accordingly, determining the playback threshold corresponding to the audio file includes:
[0099] Determine the corresponding audio object of the audio file in the current virtual scene, and determine the local playback threshold of the audio file corresponding to the audio object.
[0100] The local playback threshold can be set for multiple instances of an audio object, one or a group of audio files. For example, the local playback threshold for audio file S1 of audio object A can be set to 50.
[0101] In practical applications, when a game is running in a certain scene, if too many audio files are triggered for a certain audio object or a group of audio files, a maximum number of playbacks can be set to control the actual number of playbacks at that moment.
[0102] For example, if the local playback threshold is set to 50 for an audio file S1 corresponding to an audio object A, the total number of times audio file S1 can be played simultaneously by audio object A cannot exceed 50.
[0103] For example, for a set of audio files S1 and S2 corresponding to an audio object A, the local playback threshold is set to 50. When audio object A plays audio files S1 and S2, the total number of times audio object A plays audio files S1 and S2 simultaneously cannot exceed 50.
[0104] The embodiments in this specification reduce audio clutter by limiting the number of local audio tracks played, thereby improving the listening experience.
[0105] In one possible implementation, playing the audio file according to the playback priority and the playback threshold includes:
[0106] Determine the current number of audio playbacks; if the current number of audio playbacks is greater than or equal to the global playback threshold, do not play the audio file.
[0107] If the current number of audio playbacks is less than the global playback threshold, the audio file is played according to the local playback threshold and the playback priority.
[0108] In practical applications, when preparing to play audio, the system retrieves the number of times the audio is currently playing using its unique ID. If the number is greater than or equal to the global playback threshold set for that audio, no more playback instances of that audio are created; otherwise, the system retrieves the number of times the audio object is currently playing the audio again using its unique ID.
[0109] For example, if the global playback threshold for audio file S1 is set to 50 and the global playback threshold for audio file S2 is set to 70, and both audio files S1 and S2 need to be played, then the IDs of audio files S1 and S2 are determined. Based on the ID of audio file S1, if there are currently 50 instances of audio file S1 playing across all audio objects, then no new instance of audio file S1 will be created. Similarly, if the ID of audio file S2 indicates that there are currently 50 instances of audio file S2 playing across all audio objects, then a new instance of audio file S2 can be created.
[0110] The embodiments in this specification reduce the noise in audio playback and improve the auditory experience by setting a global playback threshold to limit the number of audio files or the total number of audio files played.
[0111] If the global playback threshold is not exceeded, it can be further determined whether the local playback threshold is exceeded, and how to play the audio file is determined based on the local playback threshold and the priority of the audio file. The specific implementation method is described below.
[0112] In one possible implementation, playing the audio file according to the local playback threshold and the playback priority includes:
[0113] If the current number of audio playbacks is greater than or equal to the local playback threshold, the audio file will not be played.
[0114] If the current number of audio playbacks is less than the local playback threshold, the playback priority of the audio file is determined, and the audio file is played according to the playback priority.
[0115] In practical applications, if the number is greater than or equal to the local playback threshold set for the audio, no more playback instances of the audio will be created; otherwise, an instance of the audio will be created to play the sound.
[0116] For example, if the global playback threshold for audio file S1 is set to 50 and the global playback threshold for audio file S2 is set to 70, and both audio files S1 and S2 need to be played, then the IDs of audio files S1 and S2 must be determined. Based on the ID of audio file S1, the number of currently playing instances of audio file S1 is determined to be 50, so no new instances of audio file S1 will be created. Similarly, based on the ID of audio file S2, the number of currently playing instances of audio file S2 is determined to be 50. It is also necessary to determine the local playback threshold of the corresponding audio object of audio file S2 in the current scene. For example, if the local playback threshold for audio object A of audio file S2 in the current scene is 40, then no new instances of audio file S2 corresponding to audio object A will be created.
[0117] The embodiments in this specification reduce the noise in audio playback and improve the auditory experience by setting a local playback threshold to limit the number of audio files or audio files played in a certain scene.
[0118] In one possible implementation, playing the audio file according to the playback priority includes:
[0119] The remaining playback count is determined based on the local playback threshold and the current audio playback count;
[0120] If the remaining playback volume is insufficient for the audio file, an audio file to be played is determined from the audio files according to the playback priority, and the audio file to be played is played.
[0121] The remaining playback count can be defined as the number of audio files that can still be played within the playback threshold.
[0122] In practical applications, when multiple audio files meet the playback threshold, it is necessary to determine which audio file should be played first based on priority.
[0123] For example, if the global playback threshold for the same set of audio files S2 and S1 is set to 70, and both audio files S2 and S1 need to be played, then: First, determine the IDs of audio files S2 and S1. Based on the ID of audio file S1, determine that there are currently 30 instances of audio file S1 playing across all audio objects. Based on the ID of audio file S2, determine that there are currently 20 instances of audio file S2 playing across all audio objects. Second, determine the local playback thresholds for the corresponding audio objects of audio files S2 and S1 in the current scene. Determine that the local playback threshold for audio object A corresponding to audio files S2 and S1 in the current scene is 60. Based on the IDs of audio files S1, S2, and A, determine that the number of playback instances of audio files S2 and S1 does not exceed this local playback threshold, but 10 new instances of audio file S2 and 10 new instances of audio file S1 need to be created. Then we need to determine the playback priority of audio file S2 and audio file S1. The playback priority of audio file S1 is 50 and the playback priority of audio file S2 is 70. Therefore, we need to prioritize creating 10 instances of audio file S2.
[0124] For example, if the global playback threshold for the same set of audio files S2 and S1 is set to 70, and both audio files S2 and S1 need to be played, then the IDs of audio files S2 and S1 are determined. Based on the ID of audio file S1, the number of currently playing instances of audio file S1 for all audio objects is determined to be 30, and based on the ID of audio file S2, the number of currently playing instances of audio file S2 for all audio objects is determined to be 20. It is also necessary to determine the local playback threshold for the corresponding audio objects of audio files S2 and S1 in the current scene. The local playback threshold for audio object A corresponding to audio files S2 and S1 in the current scene is 60. Based on the IDs of audio files S1, S2, and A, it is determined that the number of playback instances of audio files S2 and S1 does not exceed this local playback threshold, but audio file S2 needs to have 6 new instances created, and audio file S1 needs to have 10 new instances created. Then we need to determine the playback priority of audio file S2 and audio file S1. The playback priority of audio file S1 is 50 and the playback priority of audio file S2 is 70. Therefore, we determine to prioritize creating 6 instances of audio file S2 and allocate the remaining 4 remaining playback slots to audio file S1, creating 4 instances of audio file S1.
[0125] Furthermore, the embodiments in this specification also include:
[0126] The audio playback ratio is determined based on the playback priority, and the playback volume of the audio file is determined based on the audio playback ratio.
[0127] The audio file is played according to the specified playback volume.
[0128] The audio playback ratio can be a volume ratio or a quantity ratio. For example, the audio playback ratio is a percentage of the current maximum volume.
[0129] In practical applications, priority can also be converted into a volume ratio, allowing you to adjust the volume of audio files based on playback priority. Furthermore, priority can be converted into a percentage of the number of audio files that can be played, allowing you to adjust the number of audio files that can be played based on playback priority.
[0130] For example, when a player controls a character to enter scene A, the character's position is monitored in real time. Based on the character's current position, the corresponding audio files S1 and S2 for the current virtual scene can be determined, along with their initial playback priorities. The initial playback priority of audio file S1 can be 50, and the initial playback priority of audio file S2 can be 70. Therefore, the volume of audio file S1 is adjusted to 50%, and the volume of audio file S2 is adjusted to 70%.
[0131] For example, when a player controls a character to enter scene A, the character's position is monitored in real time. Based on the character's current position, the corresponding audio files S1 and S2 for the current virtual scene can be determined, along with their initial playback priorities. The initial playback priority of audio file S1 can be 50, and the initial playback priority of audio file S2 can be 70. Then, the ratio of instances of audio file S1 to audio file S2 is adjusted to 5:7.
[0132] This application provides an audio playback control method and apparatus. The audio playback control method includes: determining target parameters corresponding to the virtual character when the current virtual scene where the virtual character is located is a preset virtual scene; determining the playback priority of an audio file corresponding to the current virtual scene based on the target parameters, and determining the playback threshold of the audio file; and playing the audio file according to the playback priority and the playback threshold. By setting a dynamic priority based on the position of the virtual character, the proportion of various types of sound is reasonably configured. Furthermore, when the number of audio triggers during game operation is too large, a maximum playback count can be set to control the actual playback volume at present, thereby optimizing multiple audio in the game and improving the user's auditory experience.
[0133] The following is in conjunction with the appendix Figure 3 Taking the application of the audio playback control method provided in this application in a game as an example, the audio playback control method will be further explained. Among other things, Figure 3This application provides a flowchart illustrating an audio playback control method for games according to an embodiment of the present application, which specifically includes the following steps:
[0134] Step 302: If the current virtual scene where the game character is located is a preset virtual scene, determine the current position of the game character, where the current virtual scene includes the game character.
[0135] The virtual scene can be a scene in a game, such as the scene where a user enters a room while playing a game. The current position can be understood as the location of the virtual character within the virtual scene. For example, if the virtual character enters a small wooden house while moving, then the small wooden house is the current virtual scene, and the coordinates of the virtual character within the small wooden house are the current position.
[0136] For example, when a player controls a game character to enter scene A, which is a pre-set virtual scene, the system will trigger real-time monitoring of the character's position and obtain the character's coordinates in real time, thus determining the character's current position.
[0137] Step 304: Determine the initial playback priority of the audio file.
[0138] The initial playback priority can be a static priority set for the audio file or an attribute carried by the audio file.
[0139] For example, when a player controls a character to enter scene A, the character's position is monitored in real time. Based on the character's current position, the audio files S1 and S2 corresponding to the current virtual scene can be determined, as well as the playback priorities of audio files S1 and S2. The initial playback priority of audio file S1 can be 50, and the initial playback priority of audio file S2 can be 70.
[0140] Step 306: Obtain the target playback priority corresponding to the current virtual scene, and obtain the playback priority of the audio file based on the initial playback priority and the target playback priority.
[0141] The target playback priority can be the priority of the audio file in a certain scene.
[0142] Continuing with the previous example, let's obtain the target playback priority of audio file S1 and audio file S2 in scene A. The target playback priority of audio file S1 can be 10, and the initial playback priority of audio file S2 can be 15. Therefore, the playback priority of audio file S1 can be 60, and the playback priority of audio file S2 can be 85.
[0143] Step 308: Determine the corresponding audio object of the audio file in the current virtual scene and obtain the current position of the audio object.
[0144] The audio object can be understood as an object that emits sound in the scene, such as monsters or characters. The distance parameter can be the distance between the current position of the virtual character and the current position of the audio object.
[0145] For example, determine the distance between the character and the monster corresponding to audio file S1, and determine the distance between the character and the monster corresponding to audio file S2.
[0146] Step 310: Determine the distance parameter based on the current position of the game character and the current position of the audio object, and determine the playback priority of the audio file based on the distance parameter.
[0147] The distance parameter can be the distance between the current position of the virtual avatar and the current position of the audio object.
[0148] For example, based on the distance between the character and the monster corresponding to audio file S1, a priority offset parameter value can be determined from a pre-set priority curve. Adding the playback priority of audio file S1 to the priority offset parameter value determines the playback priority of audio file S1. Similarly, based on the distance between the character and the monster corresponding to audio file S2, a priority offset parameter value can be determined from a pre-set priority curve. Adding the playback priority of audio file S2 to the priority offset parameter value determines the playback priority of audio file S2.
[0149] Step 312: Play the audio file according to the playback priority and playback threshold.
[0150] For example, if the global playback threshold for the same set of audio files S2 and S1 is set to 70, and both audio files S2 and S1 need to be played, then: First, determine the IDs of audio files S2 and S1. Based on the ID of audio file S1, determine that there are currently 30 instances of audio file S1 playing across all audio objects. Based on the ID of audio file S2, determine that there are currently 20 instances of audio file S2 playing across all audio objects. Second, determine the local playback thresholds for the corresponding audio objects of audio files S2 and S1 in the current scene. Determine that the local playback threshold for audio object A corresponding to audio files S2 and S1 in the current scene is 60. Based on the IDs of audio files S1, S2, and A, determine that the number of playback instances of audio files S2 and S1 does not exceed this local playback threshold, but 10 new instances of audio file S2 and 10 new instances of audio file S1 need to be created. Then we need to determine the playback priority of audio file S2 and audio file S1. The playback priority of audio file S1 is 60 and the playback priority of audio file S2 is 85. Therefore, we need to prioritize creating 10 instances of audio file S2.
[0151] By setting dynamic priorities based on the location of virtual characters, the proportions of various sound types can be rationally configured. Furthermore, when the number of audio triggers during game operation is excessive, a maximum playback count can be set to control the actual playback volume at any given time. This combination of factors optimizes the game's multi-audio content and enhances the user's auditory experience.
[0152] Corresponding to the above method embodiments, this application also provides an audio playback control device embodiment. Figure 4 A schematic diagram of an audio playback control device according to an embodiment of this application is shown. Figure 4 As shown, the device includes:
[0153] The location determination module 402 is configured to determine the target parameters corresponding to the virtual image when the current virtual scene where the virtual image is located is a preset virtual scene;
[0154] The priority determination module 404 is configured to determine the playback priority of the audio file corresponding to the current virtual scene based on the target parameters, and to determine the playback threshold corresponding to the audio file;
[0155] The audio playback module 406 is configured to play the audio file according to the playback priority and the playback threshold.
[0156] In one possible implementation, the priority determination module 404 is also configured as follows:
[0157] If the target parameters include an initial playback priority, the initial playback priority of the audio file is determined.
[0158] Obtain the target playback priority corresponding to the current virtual scene, and obtain the playback priority of the audio file based on the initial playback priority and the target playback priority.
[0159] In one possible implementation, the priority determination module 404 is also configured as follows:
[0160] If the target parameter includes the current position, determine the corresponding audio object of the audio file in the current virtual scene, and obtain the current position of the audio object;
[0161] A distance parameter is determined based on the current position of the virtual image and the current position of the audio object, and the playback priority of the audio file is adjusted based on the distance parameter to obtain the adjusted playback priority of the audio file.
[0162] In one possible implementation, the priority determination module 404 is also configured as follows:
[0163] A preset priority offset parameter is determined, and a priority determination parameter is determined based on the preset priority offset parameter and the distance parameter, wherein the preset priority offset parameter includes the correspondence between the distance parameter and the priority offset parameter value;
[0164] The priority offset parameter value is determined from the preset priority offset parameter based on the priority determination parameter value;
[0165] The playback priority of the audio file is adjusted according to the priority offset parameter value to obtain the adjusted playback priority of the audio file.
[0166] In one possible implementation, the priority determination module 404 is also configured as follows:
[0167] The first distance parameter value and the second distance parameter value are determined according to the preset priority offset parameter;
[0168] The priority of the parameters is determined based on the distance parameter, the first distance parameter value, and the second distance parameter value.
[0169] In one possible implementation, the priority determination module 404 is also configured as follows:
[0170] The target distance parameter is determined from the preset priority offset parameters based on the priority offset parameter value;
[0171] Based on the target distance parameter, obtain the corresponding priority offset parameter value in the preset priority offset parameter.
[0172] In one possible implementation, the audio playback module 406 is also configured as follows:
[0173] The playback threshold includes a global playback threshold and a local playback threshold;
[0174] Accordingly, determining the playback threshold corresponding to the audio file includes:
[0175] Determine the global playback threshold for the audio file in the current scenario.
[0176] The playback threshold includes a local playback threshold;
[0177] Determine the corresponding audio object of the audio file in the current virtual scene, and determine the local playback threshold of the audio file corresponding to the audio object.
[0178] Accordingly, playing the audio file according to the local playback threshold and the playback priority includes:
[0179] Determine the current number of audio playbacks; if the current number of audio playbacks is greater than or equal to the global playback threshold, do not play the audio file.
[0180] If the current number of audio playbacks is less than the global playback threshold, the audio file is played according to the local playback threshold and the playback priority.
[0181] In one possible implementation, the audio playback module 406 is also configured as follows:
[0182] If the current number of audio playbacks is greater than or equal to the local playback threshold, the audio file will not be played.
[0183] If the current number of audio playbacks is less than the local playback threshold, the playback priority of the audio file is determined, and the audio file is played according to the playback priority.
[0184] In one possible implementation, the audio playback module 406 is also configured as follows:
[0185] The remaining playback count is determined based on the local playback threshold and the current audio playback count;
[0186] If the remaining playback volume is insufficient for the audio file, an audio file to be played is determined from the audio files according to the playback priority, and the audio file to be played is played.
[0187] In one possible implementation, the audio playback module 406 is also configured as follows:
[0188] The audio playback ratio is determined based on the playback priority, and the playback volume or number of playbacks of the audio file is determined based on the audio playback ratio.
[0189] The audio file is played according to the specified playback volume or playback count.
[0190] This application provides an audio playback control method and apparatus. The audio playback control apparatus includes: determining target parameters corresponding to the virtual character when the current virtual scene where the virtual character is located is a preset virtual scene; determining the playback priority of an audio file corresponding to the current virtual scene based on the target parameters, and determining a playback threshold for the audio file; and playing the audio file according to the playback priority and the playback threshold. By setting a dynamic priority based on the position of the virtual character, the proportion of various sound types can be reasonably configured. Furthermore, when the number of audio triggers during game operation is too large, a maximum playback count can be set to control the actual playback volume, thereby optimizing multiple audio streams in the game and improving the user's auditory experience.
[0191] The above is a schematic scheme of an audio playback control device according to this embodiment. It should be noted that the technical solution of this audio playback control device and the technical solution of the aforementioned audio playback control method belong to the same concept. Details not described in detail in the technical solution of the audio playback control device can be found in the description of the technical solution of the aforementioned audio playback control method. Furthermore, the components in the device embodiment should be understood as functional modules necessary to implement each step of the program flow or each step of the method; these functional modules are not actual functional divisions or separations. A device claim defined by such a set of functional modules should be understood as a functional module architecture that primarily implements the solution through the computer program described in the specification, and not as a physical device that primarily implements the solution through hardware.
[0192] Figure 5 A structural block diagram of a computing device 500 according to an embodiment of this application is shown. The components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and a database 550 is used to store data.
[0193] The computing device 500 also includes an access device 540, which enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of wired or wireless network interface (e.g., a Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) interface, a Wi-MAX interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.
[0194] In one embodiment of this application, the aforementioned components of the computing device 500 and Figure 5 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 5 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.
[0195] The computing device 500 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 500 can also be a mobile or stationary server.
[0196] The processor 520 is used to execute computer-executable instructions for the audio playback control method.
[0197] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the audio playback control method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the audio playback control method described above.
[0198] One embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are used for an audio playback control method.
[0199] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the audio playback control method described above belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the audio playback control method described above.
[0200] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.
[0201] One embodiment of this application also provides a chip that stores a computer program, which, when executed by the chip, implements the steps of the audio playback control method.
[0202] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0203] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0204] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.
Claims
1. An audio play control method, characterized by, include: When the current virtual scene in which the virtual avatar is located is a preset virtual scene, the target parameters corresponding to the virtual avatar are determined, wherein the target parameters include: the initial playback priority of the audio file, the current position of the virtual avatar, and the target playback priority corresponding to the current virtual scene; The playback priority of the audio file corresponding to the current virtual scene is determined based on the target parameters, and the playback threshold of the audio file is also determined. The playback priority is determined based on the initial playback priority, the target playback priority corresponding to the current virtual scene, and the current position. The audio file is played according to the playback priority and the playback threshold.
2. The method of claim 1, wherein, The step of determining the playback priority of the audio file corresponding to the current virtual scene based on the target parameters includes: If the target parameter includes the current position, determine the corresponding audio object of the audio file in the current virtual scene, and obtain the current position of the audio object; A distance parameter is determined based on the current position of the virtual image and the current position of the audio object, and the playback priority of the audio file is adjusted based on the distance parameter to obtain the adjusted playback priority of the audio file.
3. The method of claim 2, wherein, The step of adjusting the playback priority of the audio file according to the distance parameter to obtain the adjusted playback priority of the audio file includes: A preset priority offset parameter is determined, and a priority determination parameter is determined based on the preset priority offset parameter and the distance parameter, wherein the preset priority offset parameter includes the correspondence between the distance parameter and the priority offset parameter value; The priority offset parameter value is determined from the preset priority offset parameter based on the priority determination parameter value; The playback priority of the audio file is adjusted according to the priority offset parameter value to obtain the adjusted playback priority of the audio file.
4. The method of claim 3, wherein, The step of determining the priority determination parameter based on the preset priority offset parameter and the distance parameter includes: The first distance parameter value and the second distance parameter value are determined according to the preset priority offset parameter; The priority of the parameters is determined based on the distance parameter, the first distance parameter value, and the second distance parameter value.
5. The method of claim 3, wherein, The step of determining the priority offset parameter value based on the priority determination parameter value in the preset priority offset parameter includes: The target distance parameter is determined from the preset priority offset parameters based on the priority offset parameter value; Based on the target distance parameter, obtain the corresponding priority offset parameter value in the preset priority offset parameter.
6. The method of claim 1, wherein, The playback threshold includes a global playback threshold and a local playback threshold; Accordingly, determining the playback threshold corresponding to the audio file includes: Determine the global playback threshold for the audio file in the current scenario; Determine the corresponding audio object of the audio file in the current virtual scene, and determine the local playback threshold of the audio file corresponding to the audio object.
7. The method of claim 6, wherein, Playing the audio file according to the playback priority and the playback threshold includes: determining a current audio playing quantity, and playing the audio file according to the local playing threshold and the playing priority in a case where the current audio playing quantity is less than the local playing threshold. Accordingly, the playing the audio file according to the local playing threshold and the playing priority comprises: playing the audio file according to the local playing threshold and the playing priority in a case where the current audio playing quantity is less than the local playing threshold. playing the audio file according to the local playing threshold and the playing priority in a case where the current audio playing quantity is less than the local playing threshold. Accordingly, the playing the audio file according to the local playing threshold and the playing priority comprises:
8. The method of claim 7, wherein, playing the audio file according to the local playing threshold and the playing priority in a case where the current audio playing quantity is less than the local playing threshold. playing the audio file according to the local playing threshold and the playing priority in a case where the current audio playing quantity is less than the local playing threshold. Further comprising:
9. The method of claim 1, wherein, determining an audio playing ratio according to the playing priority, and determining a playing volume or a playing quantity of the audio file according to the audio playing ratio; playing the audio file according to the playing volume or the playing quantity. Comprise:
10. An audio play control apparatus, characterized by comprising: a position determining module configured to determine a target parameter corresponding to a virtual image in a case where a current virtual scene where the virtual image is located is a preset virtual scene, wherein an initial playing priority of an audio file, a current position of the virtual image, and a target playing priority corresponding to the current virtual scene; a priority determining module configured to determine a playing priority of an audio file corresponding to a current virtual scene according to the target parameter, and determine a playing threshold corresponding to the audio file, wherein the playing priority is determined according to the initial playing priority, the target playing priority corresponding to the current virtual scene, and the current position; an audio playing module configured to play the audio file according to the playing priority and the playing threshold. Comprise:
11. A computing device, comprising: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions to realize the steps of the audio playing control method in any one of claims 1 to 9. The instructions are executed by the processor to realize the steps of the audio playing control method in any one of claims 1 to 9.
12. A computer-readable storage medium storing computer instructions, wherein, comprise computer instructions, which are executed by the processor to realize the steps of the audio playing control method in any one of claims 1 to 9.
13. A computer program product, characterised in that,
Citation Information
Patent Citations
Sound effect playing control method and device and electronic equipment
CN114887327A