Game audio hooking method, storage medium, electronic device and program product
By encoding and mapping game audio data and generating audio hook tables, the problem of searching and positioning of multiple tables in game audio hooks is solved, improving the accuracy and efficiency of hooks and reducing costs.
Patent Information
- Application Number
- CN202411098938.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-12-03
AI Technical Summary
During the game audio hookup process, audio designers need to find the location where the audio to be hooked is located in multiple game behavior data tables, resulting in low link accuracy, low efficiency, and easy to cause hookup errors.
By encoding the game behavior data in the preset database table, generating encoding results, and determining the target encoding identifier based on the encoding results, creating an audio hook table, recording the association relationship between the audio hook position and the audio information, thereby achieving accurate results audio mount.
The audio hooking process is simplified, the accuracy and efficiency of audio hooking is improved, labor and time costs are reduced, and the low accuracy and low efficiency problems caused by positioning errors in multiple tables are solved.
Smart Images

Figure CN119056064A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of computer technology and audio hookup technology, and in particular to a game audio hookup method, storage medium, electronic device and program product. Background Art
[0002] Game audio hooking is a common audio resource management and optimization technology in game development, which mainly involves associating audio files with game events so that the corresponding audio can be dynamically played according to the context when the game is running.
[0003] At present, in the process of game audio hooking, audio designers usually need to locate the position of the audio to be hooked in hundreds of different types of game behavior data tables, and fill in the corresponding audio hooking information at the position. For example, audio designers need to locate the position of the audio to be hooked in hundreds of tables such as copy tables, monster tables, cutscene tables, trap tables, and then fill in the trigger audio file (Bnk file) and the trigger audio event (Event) at the position, so as to complete the audio hooking. However, the game audio hooking method is not only cumbersome, but also prone to errors, especially in the face of huge game projects, because huge game projects usually have more game behavior data tables, and the position of the audio to be hooked that needs to be filled in the table is too much, so it will cause the position of the audio to be hooked to be found in the table. It is inconvenient, and it is more likely to have a hooking error, resulting in low accuracy of game audio hooking, and low efficiency of game audio hooking.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] At least some embodiments of the present application provide a game audio mounting method, storage medium, electronic device and program product to at least solve the technical problem in the related art of low game audio mounting accuracy and low efficiency caused by searching and locating the positions of the audio to be mounted in multiple game behavior data tables respectively.
[0006] According to one embodiment of the present application, a game audio attachment method is provided, the method comprising: encoding game behavior data in a preset database table to obtain an encoding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes an encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers; determining a target encoding identifier corresponding to target game behavior data in the preset database table based on the encoding result, wherein the target game behavior data is used to indicate an audio attachment position in a game scene, and the audio attachment position is used to indicate a position or event in the game scene that triggers audio playback; creating a first audio attachment table based on a first mapping rule and a target encoding identifier, wherein the first audio The attachment table includes multiple row records, and the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to the target row record in the multiple row records, the specified game behavior data is at least one game behavior data indicating the same audio attachment position in the target game behavior data, and the first audio attachment table is used to record the association relationship between different target coding identifiers; based on the second mapping rule, the target audio information is mapped to the first audio attachment table to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association relationship between the audio attachment position and the target audio information; audio attachment of the game is performed based on the second audio attachment table.
[0007] According to one embodiment of the present application, a game audio hooking device is also provided, which includes: an encoding module, which is used to encode the game behavior data in a preset database table to obtain an encoding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes an encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers; a determination module, which is used to determine a target encoding identifier corresponding to the target game behavior data in the preset database table based on the encoding result, wherein the target game behavior data is used to indicate an audio hooking position in a game scene, and the audio hooking position is used to indicate a position or event in the game scene that triggers audio playback; a creation module, which is used to create a first audio hooking table based on a first mapping rule and a target encoding identifier, wherein, The first audio hanging table includes multiple row records, and the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to the target row record in the multiple row records, the specified game behavior data is at least one game behavior data indicating the same audio hanging position in the target game behavior data, and the first audio hanging table is used to record the association relationship between different target coding identifiers; the mapping module is used to map the target audio information to the first audio hanging table based on the second mapping rule to obtain the second audio hanging table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be hung at the audio hanging position, and the second audio hanging table is used to record the association relationship between the audio hanging position and the target audio information; the hanging module is used to perform audio hanging on the game based on the second audio hanging table.
[0008] According to one embodiment of the present application, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the game audio hooking method in the above embodiment when running on a computer or a processor.
[0009] According to one embodiment of the present application, an electronic device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the game audio hooking method in the above embodiment.
[0010] According to one embodiment of the present application, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the game audio hooking method in the above embodiment is implemented.
[0011] In at least some embodiments of the present application, by encoding the game behavior data in the preset database table, an encoding result is obtained, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes a coding identifier corresponding to any game behavior data, and different game behavior data correspond to different coding identifiers. Then, the target coding identifier corresponding to the target game behavior data is determined in the preset database table based on the encoding result, wherein the target game behavior data is used to indicate the audio attachment position in the game scene, and the audio attachment position is used to indicate the position or event that triggers audio playback in the game scene. Next, a first audio attachment table is created based on the first mapping rule and the target coding identifier, wherein the first audio attachment table contains multiple row records, and the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to the target row record in the multiple row records, and the specified game behavior data is at least one game behavior data indicating the same audio attachment position in the target game behavior data, and the first audio attachment table is used to record the association relationship between different target coding identifiers. Afterwards, the target audio information is mapped to the first audio attachment table based on the second mapping rule to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association between the audio attachment position and the target audio information. Finally, the audio of the game is attached based on the second audio attachment table. Thus, the purpose of accurately attaching the game audio through an audio attachment table is achieved, thereby being able to achieve the technical effect of simplifying the audio attachment process, improving the audio attachment efficiency, improving the accuracy of audio attachment, and reducing the labor cost and time cost, thereby solving the technical problem in the related art that the accuracy and efficiency of the game audio attachment are low by searching and locating the positions of the audio to be attached in multiple game behavior data tables. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0013] Figure 1 is a flow chart of a method for hooking up game audio;
[0014] Figure 2 It is a hardware structure block diagram of a mobile terminal of a game audio hooking method according to an embodiment of the present application;
[0015] Figure 3 is a flow chart of a game audio hookup method according to one embodiment of the present application;
[0016] Figure 4is a schematic diagram of coding identification of a scene table according to one embodiment of the present application;
[0017] Figure 5 is a schematic diagram of coding identification of a task table according to one embodiment of the present application;
[0018] Figure 6 is a schematic diagram of coding identification of a timeline animation table according to one embodiment of the present application;
[0019] Figure 7 is a schematic diagram of coding identification of a monster table according to one embodiment of the present application;
[0020] Figure 8 is a partial schematic diagram of an audio hookup table according to one embodiment of the present application;
[0021] Fig. 9 is a partial schematic diagram of another audio hookup table according to one embodiment of the present application;
[0022] Fig.10 is a structural block diagram of a game audio hook-up device according to one optional embodiment of the present application;
[0023] Fig.11 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] To facilitate understanding, some descriptions of concepts related to the embodiments of the present application are given exemplarily for reference.
[0025] As shown below:
[0026] Bnk files: are binary audio files generated by the Wwise audio engine. These files contain audio assets used in games or interactive media projects, such as audio clips, audio effects, audio events, etc. Bnk files contain compression and metadata information of audio data for fast loading and playback in applications. These files are usually created by game developers using the Wwise tool and integrated into their game engines to achieve high-quality audio performance and interactivity.
[0027] Triggering audio events (Event): In the Wwise audio engine, Event is an object used to trigger and control sounds and audio behaviors. Events can be used to start and stop sounds, control audio effects and parameters, and trigger sounds and audio behaviors under specific conditions. By creating and managing Events, audio designers can implement complex audio interactions and performances to enrich and enhance the auditory experience of games, virtual reality, and other interactive media.
[0028] Routing: refers to establishing connections between one or more audio objects to control the audio flow and signal processing between these objects. Routing can be used to connect the output of an audio object to an effector, mixer, or other audio processing unit to process and control the audio signal. With routing, audio designers can create complex audio processing and mixing structures to achieve the desired audio effects and sound performance. The routing function enables Wwise audio engine users to flexibly manage the routing and processing of audio signals in the audio processing flow.
[0029] Cutscenes: Pre-made animation clips that appear during the development of the game plot. These animation clips are usually used to advance the game's storyline, reveal the character's background story, show specific plot developments, or provide players with necessary information.
[0030] Instance table: A table or list used to manage instances or dungeons in a game, which contains a series of monsters, ultimate monsters (Bosses), treasures, etc. Developers can set the numerical values, music, art, etc. of specific content in the game by filling in the instance table.
[0031] Trap table: A table or list used to manage traps or specific plot triggers in the game. Developers can fill in the trap table to set the value, music, art, and other performance of specific content in the game.
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] In a possible implementation, in the field of computer technology, in the process of game audio hooking, audio designers usually need to locate the position of the audio to be hooked in hundreds of different types of game behavior data tables, and fill in the corresponding audio hooking information at the position, so as to complete the audio hooking. Figure 1 is a flowchart of a game audio hookup method, such as Figure 1 As shown, currently in the process of game audio mounting, the audio designer must first identify which type of game behavior data table needs to be mounted from hundreds of game behavior data tables (such as a copy table, a monster table, a cutscene table, a trap table, etc.), and then find the corresponding audio mounting position from the selected game behavior data table for mounting, that is, locate the position of the audio to be mounted in the selected game behavior data table, and fill in the corresponding audio mounting information (i.e., Bnk file and Event) at the position of the audio to be mounted. During the entire mounting process, if the wrong audio position to be mounted is located, it will cause a mounting error, so it is necessary to re-identify which type of game behavior data table needs to be mounted, locate the position of the audio to be mounted again, and perform audio mounting. If the located audio position to be mounted is accurate, the mounting is correct and the audio mounting is completed.
[0035] After practice and careful research, the inventor found that the above method still has the following problems: (1) The audio designer first needs to find out in which game behavior data table the path to be mounted is located. Since there are hundreds of game behavior data tables of each type, the labor cost is high and the search is difficult. (2) When locating the position of the audio to be mounted, since each table may contain hundreds of mounting points, it is difficult to accurately and quickly find the location of the corresponding Bnk file and Event in the table, and each table has reused content and positions, it is easy to mount the wrong position, resulting in inaccurate audio trigger timing and low audio mounting accuracy. (3) After the audio is mounted incorrectly, it needs to be located and modified again, which is a complicated process and extremely inefficient. (4) New audio designers need to be familiar with all tables from beginning to end and understand the role of the mounted audio, that is, new audio designers need to spend extra time to understand and connect, resulting in high time cost. Based on this, the game scene applied by the embodiment of the present application can be the field of audio hooking in the game, and a game audio hooking method is proposed, by encoding the game behavior data in the preset database table, obtaining the encoding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes the encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers. Then, the target encoding identifier corresponding to the target game behavior data is determined in the preset database table based on the encoding result, wherein the target game behavior data is used to indicate the audio hooking position in the game scene, and the audio hooking position is used to indicate the position or event that triggers audio playback in the game scene. Then, a first audio hooking table is created based on the first mapping rule and the target encoding identifier, wherein the first audio hooking table contains multiple row records, the first mapping rule is used to map the encoding identifier corresponding to the specified game behavior data to the target row record in the multiple row records, the specified game behavior data is at least one game behavior data indicating the same audio hooking position in the target game behavior data, and the first audio hooking table is used to record the association relationship between different target encoding identifiers. Afterwards, the target audio information is mapped to the first audio attachment table based on the second mapping rule to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association between the audio attachment position and the target audio information. Finally, the audio of the game is attached based on the second audio attachment table. Thus, the purpose of accurately attaching the game audio through an audio attachment table is achieved, thereby being able to achieve the technical effect of simplifying the audio attachment process, improving the audio attachment efficiency, improving the accuracy of audio attachment, and reducing the labor cost and time cost, thereby solving the technical problem in the related art that the accuracy and efficiency of the game audio attachment are low by searching and locating the positions of the audio to be attached in multiple game behavior data tables.
[0036] The above method embodiments involved in this application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smart phone, a PDA, a mobile Internet device, a tablet computer (Personal Access Display, PAD), a game console and other terminal devices. Figure 2 1 is a hardware structure block diagram of a mobile terminal of a game audio hookup method according to an embodiment of the present application. Figure 2 As shown, the mobile terminal may include one or more ( Figure 2 Only one is shown in the figure) processor 202 (the processor 202 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a programmable logic device (field-programmable gate array, FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, etc.) and a memory 204 for storing data. In one embodiment of the present application, it may also include: a transmission device 206, an input and output device 208 and a display device 210.
[0037] In some optional embodiments mainly based on game scenarios, the above-mentioned device can also provide a human-computer interaction interface with a touch-sensitive surface, which can sense finger contact and / or gestures to perform human-computer interaction with a graphical user interface (Graphical User Interface, GUI). The human-computer interaction function may include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interface, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or readable storage medium executable by one or more processors.
[0038] Those skilled in the art will understand that Figure 2 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 2More or fewer components as shown, or with Figure 2 Different configurations are shown.
[0039] According to one embodiment of the present application, an embodiment of a game audio hook-up method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0040] In a possible implementation, the present application embodiment provides a game audio hookup method. Figure 3 is a flowchart of a game audio hookup method according to one embodiment of the present application, such as Figure 3 As shown, the method comprises the following steps:
[0041] Step S30, encode the game behavior data in the preset database table to obtain a coding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the coding result includes a coding identifier corresponding to any game behavior data, and different game behavior data correspond to different coding identifiers.
[0042] In actual game development, each type of game behavior in the game is usually recorded and managed by a corresponding table, such as a copy table for recording and managing copies or dungeons in the game, a monster table for recording and managing monsters in the game, a scene table for recording and managing game scenes in the game, a cutscene table for recording and managing cutscenes in the game, a trap table for recording and managing traps or specific plots in the game, etc., which are not limited here.
[0043] In the embodiment of the present application, the preset database table is used to store different types of game behavior data in the game. The preset database table can be understood as multiple game behavior data tables in the game, such as the copy table, monster table, scene table, cutscene table and trap table in the game, etc. Different types of game behavior data are recorded in different game behavior data tables. It should be noted that since there is a lot of game behavior data, each type of game behavior data table may include multiple tables, which is not limited here.
[0044] Encoding the game behavior data in the preset database table can be understood as encoding each game behavior data involved in the game, thereby obtaining a coding result. The coding result includes a coding identifier (ID) corresponding to any game behavior data, that is, the coding result includes a coding identifier corresponding to each game behavior data. Moreover, different game behavior data correspond to different coding identifiers, which can be understood as each game behavior data can be uniquely represented by a corresponding coding identifier.
[0045] By marking the game behavior data with a unique coding identifier, different game behavior data are marked with different coding identifiers, so that the corresponding game behavior data can be accurately distinguished by the coding identifier, making the game behavior data identifiable. For example, the coding identifier can be in the form of numbers, letters, symbols, etc., which are not limited here.
[0046] In an embodiment of the present application, when audio is linked to a game, all game behavior data in the preset database table of the game can be encoded to obtain a coding identifier corresponding to each game behavior data, that is, to obtain a coding result, so that the corresponding game behavior data can be accurately identified according to the coding identifier later.
[0047] Step S32, determining the target coding identifier corresponding to the target game behavior data based on the encoding result in the preset database table, wherein the target game behavior data is used to indicate the audio hanging position in the game scene, and the audio hanging position is used to indicate the position or event that triggers audio playback in the game scene.
[0048] In an embodiment of the present application, the audio hanging position is used to represent a game position or game event in a game scene that triggers audio playback, which can be understood as a game position that can trigger audio playback reached by a virtual character in the game when moving in the game scene, and a game event that can trigger audio playback triggered by a virtual character in the game in the game scene.
[0049] For example, the game can be set to play the corresponding copy audio when the virtual character enters a copy, the game can be set to play the corresponding monster audio when the virtual character encounters a monster, the game can be set to play the corresponding scene audio when the virtual character moves to a scene, the game can be set to play the corresponding cutscene audio when the virtual character moves through a level and enters a cutscene, and the game can be set to play the corresponding trap audio when the virtual character triggers a specific plot. There is no restriction here.
[0050] The target game behavior data is used to indicate the audio attachment position in the game scene. It is understandable that when performing audio attachment for the game, not all game behavior data in the game can become the condition for triggering audio playback. Therefore, it is necessary to determine the target game behavior data in the game used to indicate the audio attachment position in the game scene, and determine the target coding identifier corresponding to the target game behavior data.
[0051] The target game behavior data may include specific game behavior data in the game behavior table that requires audio hooking in the game, such as copy data in the copy table, monster data in the monster table, scene data in the scene table, cutscene data in the cutscene table, trap data in the trap table, etc., without limitation here.
[0052] It should be noted that the same audio attachment position can correspond to one or more target game behavior data. For example, the virtual character is set to be in scene A, and audio playback is triggered when encountering monster B. Therefore, the target game behavior data corresponding to the current position C of the virtual character (i.e., audio attachment position C) includes scene A data and monster B data, that is, scene A data and monster B data are used to indicate the audio attachment position C. This is only an example and is not limited.
[0053] In the embodiment of the present application, after the encoding result is obtained, the target encoding identifier corresponding to the target game behavior data indicating the audio attachment position in the game scene can be determined in the preset database table according to the aforementioned encoding result.
[0054] Step S34, creating a first audio hanging table based on the first mapping rule and the target coding identifier, wherein the first audio hanging table includes multiple row records, the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to the target row record in the multiple row records, the specified game behavior data is at least one game behavior data indicating the same audio hanging position in the target game behavior data, and the first audio hanging table is used to record the association relationship between different target coding identifiers.
[0055] Taking into account that there are many game behavior data tables in current games, the audio hooking process is more cumbersome and prone to errors. Therefore, this application uses unique ID mapping technology to map multiple game behavior data tables to an audio hooking table, thereby simplifying the complex multi-table hooking operation to a single table hooking operation, simplifying the audio hooking process, and thus improving the accuracy and efficiency of audio hooking.
[0056] In an embodiment of the present application, the designated game behavior data is at least one game behavior data indicating the same audio hanging position in the target game behavior data. For example, the virtual character is set to be in scene A, and audio playback is triggered when encountering monster B, so that the current position C of the virtual character (that is, audio hanging position C) is the audio hanging position indicated by scene A data and monster B data, and scene A data and monster B data are at least one game behavior data indicating the same audio hanging position, that is, the designated game behavior data.
[0057] The first audio attachment table includes multiple row records. Exemplarily, the first audio attachment table can be an Excel table, which is not limited here. The first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to the target row record in the multiple row records. It can be understood that the same row in the first audio attachment table is used to record the coding identifier corresponding to the specified game behavior data indicating the same audio attachment position. For example, it is set that the virtual character is in scene A, and the audio playback is triggered when encountering monster B. The coding identifier corresponding to the A scene data and the coding identifier corresponding to the B monster data can be recorded in the target row record of the first audio attachment table, that is, the coding identifier corresponding to the A scene data and the coding identifier corresponding to the B monster data are located in the same row in the first audio attachment table.
[0058] It can be seen that the coding identifiers recorded in the same row of the first audio attachment table have an association relationship, which corresponds to the same audio attachment position. Therefore, the first audio attachment table is used to record the association relationship between different target coding identifiers, that is, the first audio attachment table is used to record the association relationship between the coding identifiers corresponding to the specified game behavior data. For example, the first audio attachment table is used to record the association relationship between the above-mentioned A scene data and B monster data. This is only an example and is not limited. According to the coding identifiers recorded in the same row in the first audio attachment table, the audio attachment position of the audio to be attached in the game can be accurately located.
[0059] In the embodiment of the present application, after determining the target coding identifier corresponding to the target game behavior data, a first audio attachment table can be created based on the first mapping rule and the target coding identifier. When creating the first audio attachment table, the coding identifier corresponding to the specified game behavior data can be imported into the same row of the first audio attachment table according to the first mapping rule, so that the coding identifiers recorded in the same row in the first audio attachment table have an association relationship, which corresponds to the same audio attachment position and is used to jointly describe the same audio attachment position, so that the association relationship between each game behavior data can be accurately determined through the first audio attachment table, the position of the audio to be attached can be accurately located, and it is convenient to quickly understand which positions in the game need to attach the audio.
[0060] Step S36, mapping the target audio information to the first audio attachment table based on the second mapping rule to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association relationship between the audio attachment position and the target audio information.
[0061] In the embodiment of the present application, the target audio information is used to represent the audio information to be mounted at the audio mounting position, and the target audio information may include a Bnk file and an Event. It is understandable that the target audio information at each audio mounting position may be determined according to the game design requirements.
[0062] The second mapping rule is used to map the target audio information to the target row record. The target audio information is the audio information to be mounted at the audio mounting position. It can be understood as mapping the audio information to be mounted and the coding identifier corresponding to the specified game behavior data to the same row. For example, if the virtual character is in scene A and triggers the playback of audio D when encountering monster B, then audio D is mapped to the same row where the coding identifier corresponding to scene A data and the coding identifier corresponding to monster B data are located in the first audio mounting table, so that the coding identifier corresponding to scene A data, the coding identifier corresponding to monster B data, and audio D are located in the same row.
[0063] According to the second mapping rule, the target audio information is mapped to the first audio mounting table, thereby obtaining the second audio mounting table. The second audio mounting table is used to record the association between the audio mounting position and the target audio information, and the second audio mounting table is the final audio mounting table. Through the second audio mounting table, the audio mounting position in the game can be accurately located according to the coding identifier corresponding to the game behavior data, thereby accurately locating the position of the audio to be mounted. In addition, through the second audio mounting table, it is also possible to accurately determine which audio mounting position in the game needs to mount what audio information, thereby facilitating quick familiarity with the audio information corresponding to the audio mounting position in the game.
[0064] In an embodiment of the present application, after the first audio mounting table is created, the target audio information is mapped to the first audio mounting table according to the second mapping rule, so that the second audio mounting table is determined based on the target audio information and the first audio mounting table. The position of the audio to be mounted can be accurately located through the second audio mounting table, and the audio information corresponding to the audio mounting position in the game can be quickly familiarized.
[0065] Step S38, performing audio hooking on the game based on the second audio hooking table.
[0066] In an embodiment of the present application, after obtaining the second audio mounting table, the audio of the game is mounted based on the second audio mounting table, so that only one second audio mounting table is required to achieve audio mounting, and there is no need to search and locate in hundreds of tables, which simplifies the audio mounting process, can effectively improve the mounting efficiency of the game audio, and reduce labor costs and time costs.
[0067] It can be seen that the present application assigns a unique coding identifier to each game behavior data in the preset database table, and then maps the coding identifier corresponding to the target game behavior data in the preset database table to the same audio hook table through unique ID mapping. The coding identifier corresponding to each target game behavior data has a unique position, so that in the audio hook process, only one audio hook table is needed to achieve audio hooking, which greatly simplifies the hooking process. In addition, the present application does not need to search and locate in hundreds of tables, which reduces the time for searching and locating the hooking position, improves work efficiency, and reduces time cost. Furthermore, the present application can reduce the possibility of audio hooking errors and improve the accuracy of audio hooking through unique ID mapping. In addition, through the audio hooking table finally obtained by the present application, new audio designers can quickly understand and master the hooking process, thereby reducing training costs.
[0068] Through the above steps, the game behavior data in the preset database table is encoded to obtain the encoding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes the encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers. Then, the target encoding identifier corresponding to the target game behavior data is determined in the preset database table based on the encoding result, wherein the target game behavior data is used to indicate the audio attachment position in the game scene, and the audio attachment position is used to indicate the position or event that triggers audio playback in the game scene. Next, a first audio attachment table is created based on the first mapping rule and the target encoding identifier, wherein the first audio attachment table contains multiple row records, and the first mapping rule is used to map the encoding identifier corresponding to the specified game behavior data to the target row record in the multiple row records, and the specified game behavior data is at least one game behavior data indicating the same audio attachment position in the target game behavior data, and the first audio attachment table is used to record the association relationship between different target encoding identifiers. Afterwards, the target audio information is mapped to the first audio attachment table based on the second mapping rule to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association between the audio attachment position and the target audio information. Finally, the audio of the game is attached based on the second audio attachment table. Thus, the purpose of accurately attaching the game audio through an audio attachment table is achieved, thereby being able to achieve the technical effect of simplifying the audio attachment process, improving the audio attachment efficiency, improving the accuracy of audio attachment, and reducing the labor cost and time cost, thereby solving the technical problem in the related art that the accuracy and efficiency of the game audio attachment are low by searching and locating the positions of the audio to be attached in multiple game behavior data tables.
[0069] In a possible implementation, in step S30, encoding the game behavior data in the preset database table to obtain the encoding result may include the following execution steps:
[0070] Step S300, encoding the preset database table based on the first encoding rule to obtain a first encoding result, wherein the first encoding rule is used to encode different types of preset database tables using different encoding rules, and the first encoding result is used to record first encoding identifiers corresponding to different types of preset database tables;
[0071] Step S302, encode the game behavior data in the preset database table based on the second encoding rule to obtain a second encoding result, wherein the second encoding rule is used to encode different types of game behavior data using different encoding rules, and the second encoding result is used to record the second encoding identifier corresponding to different types of game behavior data.
[0072] In an embodiment of the present application, when the game behavior data in the preset database table is encoded and the encoding result is obtained, the preset database table and the game behavior data in the preset database table are encoded at the same time, so that the preset database table and the game behavior data in the preset database table both have unique coding identifiers, thereby being identifiable.
[0073] The preset database table can be encoded based on the first encoding rule to obtain a first encoding result. The first encoding rule is used to encode different types of preset database tables using different encoding rules, and the first encoding result is used to record the first encoding identifier corresponding to each preset database table. That is, the present application can encode different types of preset database tables using different encoding rules, so that each preset database table has a unique encoding identifier.
[0074] The game behavior data in the preset database table can also be encoded based on the second encoding rule to obtain a second encoding result. The second encoding rule is used to encode different types of game behavior data using different encoding rules, and the second encoding result is used to record the second encoding identifier corresponding to each game behavior data. That is, the present application can encode different types of game behavior data in the preset database table using different encoding rules, so that each game behavior data has a unique encoding identifier.
[0075] Exemplarily, both the first coding result and the second coding result may be in the form of numbers, letters, special symbols, etc., which are not limited here.
[0076] It is understandable that the game behavior data can be marked by the first encoding result and the second encoding result.
[0077] In one possible implementation, the second coding identifier is a target number with a preset number of digits, the number at the first position in the target number represents the position of the game behavior data divided by the first range in the corresponding preset database table, the number at the second position in the target number represents the position of the game behavior data divided by the second range within the first range in the corresponding preset database table, the first range represents preset database tables of the same type, and the second range represents any preset database table.
[0078] In the embodiment of the present application, the second coding mark is a target number of preset digits, that is, the coding mark of the game behavior data is in digital form. Since the game behavior data is usually large, the preset digits may include multiple digits, that is, the second coding mark may be a number consisting of multiple digits.
[0079] The number at the first position in the target number represents the position of the game behavior data divided by the first range in the corresponding database table. The first position may include one or more digits, which is not limited here. The number at the second position in the target number represents the position of the game behavior data divided by the second range within the first range in the corresponding database table. The second position may include one or more digits, which is not limited here. Among them, the first range represents the preset database table of the same type, which can be understood as the first range is used to represent multiple tables of the same game behavior data type. The second range represents any preset database table, which can be understood as the second range is used to represent each table in the multiple tables.
[0080] Exemplarily, when encoding the game behavior data in the scene table based on the second encoding rule, since there are relatively few maps and scenes in the game, they can be encoded according to a three-digit number, where the hundreds digit represents the map number, which is equivalent to the scene number in the scene table, and the ones digit and the tens digit together represent the scene number. Thus, the game engine and program will determine the scene number in the map number according to the three-digit encoding identifier, which is equivalent to the scene number in the scene table.
[0081] Figure 4 is a schematic diagram of coding identification of a scene table according to one embodiment of the present application, such as Figure 4 As shown, take the coding mark of the game behavior data in the scene table as "101" as an example, where the hundreds digit "1" represents the first map, and the ones digit and the tens digit together constitute "01" represents the first scene, so "101" represents the first scene in the first map. Similarly, "102" represents the second scene in the first map, "201" represents the first scene in the second map, and so on, which will not be repeated here.
[0082] When encoding the game behavior data in the task table based on the second encoding rule, since the number of tasks in the game is moderate, it can be encoded according to a four-digit number. The thousands digit in the four-digit number represents the number of the main task, which is equivalent to the number of the task table, and the ones digit, tens digit and hundreds digit together represent the number of the subtask. Therefore, the game engine and program will determine the number of subtasks in the number of the main task according to the four-digit encoding identifier, which is equivalent to the number of subtasks in the number of the task table.
[0083] Figure 5 is a schematic diagram of coding identification of a task table according to one embodiment of the present application, such as Figure 5As shown, take the coding mark of the game behavior data in the task table as "1001" as an example, where the thousands digit "1" represents the first main task, and the units digit, tens digit and hundreds digit together constitute "001" represents the first subtask, so "1001" represents the first subtask in the first main task. Similarly, "1002" represents the second subtask in the first main task, "2001" represents the first subtask in the second main task, and so on, which will not be repeated here.
[0084] When encoding the game behavior data in the timeline animation table based on the second encoding rule, since there are a large number of animations, they can be encoded according to a five-digit number. The ten thousandth digit in the five-digit number represents the number of the timeline animation. However, since there is usually only one timeline animation, the ten thousandth digit can be set to 1, indicating the first timeline animation, which is equivalent to the first timeline animation table. The units digit, tens digit, hundreds digit and thousands digit together represent the number of the cutscene. Therefore, the game engine and program will determine the number of the cutscene in the timeline animation based on the four-digit encoding identifier, which is equivalent to the number of the cutscene in the first timeline animation table.
[0085] Figure 6 is a schematic diagram of coding identification of a timeline animation table according to one embodiment of the present application, such as Figure 6 As shown, take the coding mark of the game behavior data in the timeline animation table as "10001" as an example, where the ten thousandth digit "1" represents the first timeline animation, and the unit digit, ten digit, hundred digit and thousand digit together constitute "0001" represents the first cutscene, so "10001" represents the first cutscene in the first timeline animation. Similarly, "10002" represents the second cutscene in the first timeline animation, "10003" represents the third cutscene in the first timeline animation, and so on, which will not be elaborated here.
[0086] When encoding the game behavior data in the monster table based on the second encoding rule, since there are a large number of monsters, they can be encoded according to a five-digit number. The ten thousand digit in the five-digit number represents the monster type, which is equivalent to the monster table, and the ones digit, tens digit, hundreds digit and thousands digit together represent the monster. Therefore, the game engine and program will determine the monster type and the monster number according to the four-digit encoding identifier, which is equivalent to the monster number in the monster table.
[0087] Figure 7 is a schematic diagram of coding identification of a monster table according to one embodiment of the present application, such as Figure 7As shown, take the coding identifier of the game behavior data in the monster table as "10001" as an example, where the ten thousandth digit "1" represents the first monster type, and the ones, tens, hundreds and thousands digits together constitute "0001" represents the first monster, so "10001" represents the first monster in the first monster type. Similarly, "10002" represents the second monster in the first monster type, "20001" represents the first monster in the second monster type, and so on, which will not be repeated here.
[0088] The coding identifiers of the game behavior data in the other preset database tables can be deduced in the same way and will not be elaborated here.
[0089] In a possible implementation, in step S32, determining the target coding identifier corresponding to the target game behavior data based on the coding result in the preset database table may include the following execution steps:
[0090] Step S320, determining the audio hook position in the game based on the game audio hook requirement;
[0091] Step S322, determining target game behavior data based on the audio hook position;
[0092] Step S324, determining the target coding identifier corresponding to the target game behavior data based on the coding result in the preset database table.
[0093] In the embodiment of the present application, when the target coding identifier corresponding to the target game behavior data is determined based on the coding result in the preset database table, the audio mounting position in the game can be determined based on the game audio mounting requirement, wherein the game audio mounting requirement can be determined based on the game design requirement, which is not limited here. Then, the target game behavior data required for game audio mounting is determined based on the audio mounting position, and finally, the target coding identifier corresponding to the target game behavior data is determined based on the coding result in the preset database table.
[0094] In a possible implementation, in step S320, determining the audio hook position in the game based on the game audio hook requirement may include the following execution steps:
[0095] Step S3200, traversing the game, and controlling the virtual character in the game to move to the target position based on the game audio hookup requirements;
[0096] Step S3202, determining the audio attachment position based on the target position; or,
[0097] Step S3204, traversing the game, and controlling the virtual character to trigger the target event based on the game audio hookup requirements;
[0098] Step S3206, determining the audio attachment position based on the target event.
[0099] In the embodiment of the present application, the audio attachment position can be determined in two ways, one is to determine the audio attachment position by the target position, and the other is to determine the audio attachment position by the target event. Among them, the target position can be understood as the game position of the audio to be attached determined in the game scene according to the game audio attachment requirement, and the target event can be understood as the game event triggered in the game scene according to the game audio attachment requirement.
[0100] When determining the audio mounting position in the game through the target position, you can traverse the game and control the virtual character in the game to move to the target position based on the game audio mounting requirements. That is, it can be understood as controlling the virtual character to move in the game, moving to the game position where the audio is to be mounted, and then determining the audio mounting position based on the target position to which the virtual character moves.
[0101] For example, the virtual character may be controlled to move to position C where it encounters monster B in scene A, thereby determining an audio attachment position based on position C, and then the virtual character may continue to be controlled to move and determine other audio attachment positions.
[0102] When determining the audio attachment position in the game through the target event, you can traverse the game and control the virtual characters in the game to trigger the target events based on the game audio attachment requirements. That is, it can be understood as controlling the virtual characters to trigger game events to be attached to the audio in the game, and then determining the audio attachment position based on the target events triggered by the virtual characters.
[0103] In a possible implementation, in step S322, determining the target game behavior data based on the audio hook position may include the following execution steps:
[0104] Step S3220, determining a target game interface corresponding to the audio hook position, wherein the target game interface is used to display a game scene including the audio hook position, and the target game interface is a game screen presented by a graphical user interface;
[0105] Step S3222, obtaining candidate game behavior data in the target game interface, wherein the candidate game behavior data includes any game behavior data in the target game interface;
[0106] Step S3224, screening the candidate game behavior data based on the game audio hook-up requirements to obtain target game behavior data.
[0107] It is understandable that the game can be run on a terminal device, and the terminal device is configured with a corresponding graphical user interface. When the terminal device runs the game, the corresponding game screen can be presented on the graphical user interface.
[0108] In the embodiment of the present application, when the target game behavior data is determined based on the audio hook position, the target game interface corresponding to the audio hook position can be determined, and the target game interface is used to display the game scene including the audio hook position. It can be understood that when the virtual character is controlled to move to the audio hook position, the game screen currently presented in the graphical user interface is determined.
[0109] After determining the target game interface, the candidate game behavior data in the target game interface is obtained, that is, all game behavior data involved in the target game interface is obtained. It is understandable that multiple tasks are usually run in parallel in the game, and multiple monsters may appear in the same game screen, so when determining the target game behavior data corresponding to a certain audio hook position, it is necessary to first obtain all candidate game behavior data in the target game interface.
[0110] For example, the target game interface is located in scene D, the target game interface is running tasks E and F at the same time, and there are three monsters in the target game interface, namely monster G, monster H and monster I. The candidate game behavior data in the target game interface includes scene D data, task E data, task F data, monster G data, monster H data and monster I data.
[0111] After obtaining the candidate game behavior data, the candidate game behavior data is screened based on the game audio attachment requirements to obtain the target game behavior data. It is understandable that among the multiple candidate game behavior data included in the target game interface, only part of the game behavior data may be game behavior data corresponding to the audio attachment position, so it is necessary to screen the candidate game behavior data based on the game audio attachment requirements to obtain the target game behavior data. That is, the target game behavior data corresponding to the audio attachment position is selected from the multiple candidate game behavior data based on the game audio attachment requirements.
[0112] For example, taking the above example, the target game behavior data corresponding to the audio hanging position may include D scene data, E task data, and G monster data, which means that the audio playback is triggered only when the virtual character performs E task in D scene and encounters G monster, so that the audio hanging position can be accurately located and the target game behavior data corresponding to the audio hanging position can be determined according to the game design requirements.
[0113] In a possible implementation, in step S3222, obtaining the candidate game behavior data in the target game interface may include the following execution steps:
[0114] Step S32220, in response to the graphical user interface presenting the target game interface, controlling the game console to output the candidate game behavior data based on preset control information.
[0115] In the embodiment of the present application, the preset control information can be understood as information that controls the game behavior data encoded in the output target game interface. Exemplarily, the preset control information can be in the form of code or in the form of instructions, which is not limited here.
[0116] When obtaining candidate game behavior data in the target game interface, when the target game interface is presented on the graphical user interface, the game console can be controlled to output the candidate game behavior data based on preset control information, for example, a preset code can be entered into the game console to control the game console to output the candidate game behavior data.
[0117] It is understandable that, since each game behavior data in the present application carries a corresponding coding identifier, the coding identifiers corresponding to the candidate game behavior data will also be displayed when the candidate game behavior data is output.
[0118] In a possible implementation, in step S34, creating the first audio hook table based on the first mapping rule and the target encoding identifier may include the following execution steps:
[0119] Step S340, determining the designated game behavior data in the target game behavior data;
[0120] Step S342, determining the first position of the specified game behavior data in the preset database table;
[0121] Step S344, importing the coding identifier corresponding to the designated game behavior data into the second position in the first audio hook table, wherein the second position is used to represent at least one column position in the target row record;
[0122] Step S346: Establish a mapping relationship between the first position and the second position in the first audio hook table.
[0123] In an embodiment of the present application, when creating a first audio hanging table based on the first mapping rule and the target coding identifier, the specified game behavior data in the target game behavior data can be determined first, that is, the specified game behavior data indicating the same audio hanging position can be determined, and then the first position of the specified game behavior data in the preset database table can be determined, that is, the position of each specified game behavior data in the corresponding game behavior data table.
[0124] Then, the coding identifier corresponding to the specified game behavior data is imported into the second position in the first audio hanging table, wherein the second position is at least one column position in the target row record. If the specified game behavior data includes multiple game behavior data, the second position is multiple column positions in the target row record. If the specified game behavior data only includes one game behavior data, the second position is one column position in the target row record. It can be understood that the coding identifier corresponding to the specified game behavior data is imported into at least one column position in the target row record.
[0125] Finally, a mapping relationship between the first position and the second position is established in the first audio hook table, that is, the first position and the second position are linked, so that the first audio hook table can be created.
[0126] In a possible implementation manner, in step S34, creating the first audio hook table based on the first mapping rule and the target encoding identifier may further include the following execution steps:
[0127] Step S348, determining a trigger condition based on the audio hook position, wherein the trigger condition is used to indicate a time to trigger audio playback;
[0128] Step S349, importing the trigger condition into the third position of the first audio hook table, wherein the third position is located in the target row record.
[0129] In the embodiments of the present application, it is necessary to determine the specific time when the audio is played when the audio is attached, for example, the audio is played when a monster is encountered, when a cutscene starts, at the end of a cutscene, when a monster is born, when a monster dies, when a player's instructions pop up, etc. Therefore, the present application introduces trigger conditions to determine the specific time when the audio is played.
[0130] The trigger condition is used to indicate the moment to trigger audio playback. The trigger condition is determined based on the audio attachment position. It can be understood that the audio attachment position corresponds to the trigger condition. According to the trigger condition, it can further indicate when the audio needs to be played at the corresponding audio attachment position.
[0131] Trigger conditions may include, but are not limited to, audio when encountering a monster (i.e., playing when encountering a monster), when a cutscene starts (i.e., playing when a cutscene starts), at the end of a cutscene (i.e., playing at the end of a cutscene), when a monster is born (i.e., playing when a monster is born), when a monster dies (i.e., playing when a monster dies), and when guidance is triggered (i.e., playing when player guidance pops up). There are no restrictions here.
[0132] When creating the first audio hanging table based on the first mapping rule and the target coding identifier, the trigger condition can also be predetermined based on the audio hanging position, that is, the time to play the audio at the audio hanging position can be predetermined according to the audio hanging position, and then the trigger condition can be imported into the third position of the first audio hanging table, that is, the trigger condition can be imported into the target row record, so that the coding identifier of the game behavior data corresponding to the same audio hanging position and the trigger condition are located in the same row in the first audio hanging table, thereby obtaining the first audio hanging table.
[0133] In a possible implementation, the target audio information includes a target triggering audio file and a target triggering audio event. In step S36, mapping the target audio information to the first audio hook table based on the second mapping rule, and obtaining the second audio hook table may include the following execution steps:
[0134] Step S360, import the target trigger audio file into the fourth position of the first audio hanging table, and import the target trigger audio event into the fifth position of the first audio hanging table, to obtain a second audio hanging table, wherein the fourth position and the fifth position are both located in the target row record.
[0135] In an embodiment of the present application, when the second audio attachment table is determined based on the target audio information and the first audio attachment table, the target trigger audio file and target trigger audio event corresponding to the audio attachment position can be determined, that is, the target Bnk file and target Event corresponding to the audio attachment position.
[0136] After determining the target Bnk file and the target Event, the target trigger audio file is imported into the fourth position of the first audio hanging table, and the target trigger audio event is imported into the fifth position of the first audio hanging table, so as to obtain the second audio hanging table, that is, the target Bnk file and the target Event are respectively imported into the corresponding positions in the first audio hanging table, so as to obtain the second audio hanging table.
[0137] It should be noted that the audio hook table proposed in the present application (i.e., the second audio hook table finally obtained) includes multiple rows and columns. For example, the audio hook table may include a column of "associated scene number", so as to facilitate mapping the game behavior data in the scene table to the corresponding position in the column of associated scene number. For example, if a certain position in the column of associated scene number in the audio hook table is "412", the game engine and program will locate the twelfth scene in the fourth scene table according to the coding identifier 412.
[0138] The audio hook table may also include a column of "associated task number" to facilitate mapping the game behavior data in the task table to the corresponding position in the associated task number column. For example, if a position in the associated task number column in the audio hook table is "1008", the game engine and program will locate the eighth subtask in the first task table according to the coding identifier 1008.
[0139] The audio hook table may also include a column of "associated task number" to facilitate mapping the game behavior data in the task table to the corresponding position in the associated task number column. For example, if a position in the associated task number column in the audio hook table is "1008", the game engine and program will locate the eighth subtask in the first task table according to the coding identifier 1008.
[0140] The game behavior data in the other preset database tables correspond to which column in the audio hook table, which can be deduced similarly, and will not be elaborated here.
[0141] It is understandable that the audio hook table also includes a "trigger condition" column, which is used for the game engine and program to determine at what moment to play the corresponding audio. For example, if a certain position in the trigger condition column of the audio hook table is "when the monster is born", it means that the corresponding audio is played when the monster is born.
[0142] It should be noted that since monsters in the game can exist in the scene table and the task table, there is no need for a separate column for mapping in the audio hook table. You only need to fill in the limitations in the scene table and the task table, and then fill in the monster's coding identifier in the "Condition Parameters" column after the "Trigger Conditions" in the audio hook table to determine which scene and which task the monster belongs to.
[0143] Figure 8 FIG. 1 is a partial schematic diagram of an audio hookup table according to one embodiment of the present application. Figure 8 As shown, the associated task number 1008 represents the eighth subtask in the first task table (i.e. the eighth row), the associated scene number 412 represents the twelfth scene in the fourth scene table (i.e. the twelfth row), the trigger condition is when the monster is born, which means that the audio is played when the monster is born, and the condition parameter 10001 represents the first monster in the first monster table (i.e. the first row). Figure 8 It means that the first monster of the first monster type in the eighth sub-task under the first task in the twelfth scene in the fourth map needs to be hooked or played when the audio is born.
[0144] It is understandable that the conditional parameters in the audio hook table may include multiple columns, each column is set according to actual conditions, and is not limited here.
[0145] Fig. 9 is a partial schematic diagram of another audio hookup table according to one embodiment of the present application, such as Fig. 9 As shown, the final generated audio hook table may include the following columns: associated task number, associated scene number, trigger condition, condition parameter 1, condition parameter 2, condition parameter 3, trigger audio file, and trigger audio event. After determining the audio hook position in the game according to the associated task number, associated scene number, trigger condition, condition parameter 1, condition parameter 2, and condition parameter 3, the trigger audio file and the trigger audio event can be imported into the corresponding position according to the game design requirements, so that the game engine and the program will perform audio hook according to the audio hook table.
[0146] Understandably, Fig. 9 The columns in the audio hookup table are only examples and can be adjusted according to actual conditions.
[0147] Exemplarily, the audio hookup table may further include a remark column for noting why the audio is hooked up in this way, so that new audio designers can understand the reasons for the audio hookup.
[0148] This application uniquely encodes the game behavior data in each preset database table, such as the scene table, the copy table, the monster table, etc., so that each game behavior data has a unique coding identifier. Afterwards, according to the game design requirements, the coding identifier of the target game behavior data corresponding to the audio mounting position is imported into the audio mounting table, and the preset database table is mapped to the audio mounting table. Then the target audio information corresponding to the audio mounting position is imported into the audio mounting table to obtain the final audio mounting table, and finally the game engine and program perform audio mounting according to the audio mounting table to complete the audio mounting. If the mounted audio needs to be changed later, the audio mounting in the game can also be adjusted by adjusting the final audio mounting table.
[0149] It can be seen that the present application uniquely encodes the game behavior data, maps multiple tables into an audio hook table, and determines the unique hook position in the audio hook table through cross-determination, thereby improving the accuracy and efficiency of audio hooking and reducing the error rate. In addition, new audio designers can quickly understand and master the hooking process based on the audio hook table, reducing training costs.
[0150] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0151] In this embodiment, a game audio hook-up device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0152] Fig.10 is a structural block diagram of a game audio hookup device according to one embodiment of the present application, such as Fig.10As shown, taking a game audio hooking device 1000 as an example, the game audio hooking device 1000 includes: an encoding module 1001, which is used to encode the game behavior data in a preset database table to obtain an encoding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes an encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers; a determination module 1002, which is used to determine a target encoding identifier corresponding to the target game behavior data in the preset database table based on the encoding result, wherein the target game behavior data is used to indicate an audio hooking position in a game scene, and the audio hooking position is used to indicate a position or event in a game scene that triggers audio playback; a creation module 1003, which is used to create a first audio hooking table based on a first mapping rule and a target encoding identifier, Among them, the first audio hanging table includes multiple row records, and the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to the target row record in the multiple row records, the specified game behavior data is at least one game behavior data indicating the same audio hanging position in the target game behavior data, and the first audio hanging table is used to record the association relationship between different target coding identifiers; the mapping module 1004 is used to map the target audio information to the first audio hanging table based on the second mapping rule to obtain the second audio hanging table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be hung at the audio hanging position, and the second audio hanging table is used to record the association relationship between the audio hanging position and the target audio information; the hanging module 1005 is used to perform audio hanging on the game based on the second audio hanging table.
[0153] Optionally, the encoding module 1001 is also used to: encode the preset database table based on a first encoding rule to obtain a first encoding result, wherein the first encoding rule is used to encode different types of preset database tables using different encoding rules, and the first encoding result is used to record first encoding identifiers corresponding to different types of preset database tables; encode the game behavior data in the preset database table based on a second encoding rule to obtain a second encoding result, wherein the second encoding rule is used to encode different types of game behavior data using different encoding rules, and the second encoding result is used to record second encoding identifiers corresponding to different types of game behavior data.
[0154] Optionally, the second coding identifier is a target number of preset digits, the number at the first position in the target number represents the position of the game behavior data divided by the first range in the corresponding preset database table, the number at the second position in the target number represents the position of the game behavior data divided by the second range within the first range in the corresponding preset database table, the first range represents preset database tables of the same type, and the second range represents any preset database table.
[0155] Optionally, the determination module 1002 is also used to: determine the audio mounting position in the game based on the game audio mounting requirements; determine the target game behavior data based on the audio mounting position; and determine the target coding identifier corresponding to the target game behavior data based on the coding result in the preset database table.
[0156] Optionally, the determination module 1002 is also used to: traverse the game, and control the virtual character in the game to move to the target position based on the game audio hook requirements; determine the audio hook position based on the target position; or traverse the game, and control the virtual character to trigger the target event based on the game audio hook requirements; determine the audio hook position based on the target event.
[0157] Optionally, the first determination module 1002 is also used to: determine a target game interface corresponding to the audio mounting position, wherein the target game interface is used to display a game scene including the audio mounting position, and the target game interface is a game screen presented by a graphical user interface; obtain candidate game behavior data in the target game interface, wherein the candidate game behavior data includes any game behavior data in the target game interface; screen the candidate game behavior data based on the game audio mounting requirements to obtain the target game behavior data.
[0158] Optionally, the second determination module 1002 is further configured to: in response to the graphical user interface presenting a target game interface, control the game console to output the candidate game behavior data based on preset control information.
[0159] Optionally, the creation module 1003 is also used to: determine specified game behavior data in the target game behavior data; determine the first position of the specified game behavior data in the preset database table; import the coding identifier corresponding to the specified game behavior data into the second position of the first audio hanging table, wherein the second position is used to represent at least one column position in the target row record; and establish a mapping relationship between the first position and the second position in the first audio hanging table.
[0160] Optionally, the creation module 1003 is also used to: determine a trigger condition based on the audio attachment position, wherein the trigger condition is used to indicate the moment of triggering the audio playback; and import the trigger condition into the third position of the first audio attachment table, wherein the third position is located in the target row record.
[0161] Optionally, the target audio information includes a target trigger audio file and a target trigger audio event, and the mapping module 1004 is also used to: import the target trigger audio file into the fourth position of the first audio hanging table, and import the target trigger audio event into the fifth position of the first audio hanging table to obtain a second audio hanging table, wherein the fourth position and the fifth position are both located in the target row record.
[0162] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0163] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0164] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0165] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.
[0166] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0167] Step S30, encoding the game behavior data in the preset database table to obtain an encoding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes an encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers;
[0168] Step S32, determining a target coding identifier corresponding to the target game behavior data based on the coding result in a preset database table, wherein the target game behavior data is used to indicate an audio hook position in a game scene, and the audio hook position is used to indicate a position or event in a game scene that triggers audio playback;
[0169] Step S34, creating a first audio attachment table based on the first mapping rule and the target coding identifier, wherein the first audio attachment table includes a plurality of row records, the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to a target row record in the plurality of row records, the specified game behavior data is at least one game behavior data indicating the same audio attachment position in the target game behavior data, and the first audio attachment table is used to record the association relationship between different target coding identifiers;
[0170] Step S36, mapping the target audio information to the first audio attachment table based on the second mapping rule to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association relationship between the audio attachment position and the target audio information;
[0171] Step S38, performing audio hooking on the game based on the second audio hooking table.
[0172] Optionally, the above-mentioned computer-readable storage medium is also configured to store program codes for executing the following steps: encoding the preset database table based on a first coding rule to obtain a first coding result, wherein the first coding rule is used to encode different types of preset database tables using different coding rules, and the first coding result is used to record first coding identifiers corresponding to different types of preset database tables; encoding the game behavior data in the preset database table based on a second coding rule to obtain a second coding result, wherein the second coding rule is used to encode different types of game behavior data using different coding rules, and the second coding result is used to record second coding identifiers corresponding to different types of game behavior data.
[0173] Optionally, the second coding identifier is a target number of preset digits, the number at the first position in the target number represents the position of the game behavior data divided by the first range in the corresponding preset database table, the number at the second position in the target number represents the position of the game behavior data divided by the second range within the first range in the corresponding preset database table, the first range represents preset database tables of the same type, and the second range represents any preset database table.
[0174] Optionally, the computer-readable storage medium is also configured to store program codes for executing the following steps: determining an audio mounting position in the game based on a game audio mounting requirement; determining target game behavior data based on the audio mounting position; and determining a target coding identifier corresponding to the target game behavior data based on the coding result in a preset database table.
[0175] Optionally, the computer-readable storage medium is also configured to store program codes for executing the following steps: traversing the game, and controlling the virtual character in the game to move to a target position based on the game audio hook requirements; determining the audio hook position based on the target position; or, traversing the game, and controlling the virtual character to trigger a target event based on the game audio hook requirements; determining the audio hook position based on the target event.
[0176] Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: determining a target game interface corresponding to the audio mounting position, wherein the target game interface is used to display a game scene including the audio mounting position, and the target game interface is a game screen presented by a graphical user interface; obtaining candidate game behavior data in the target game interface, wherein the candidate game behavior data includes any game behavior data in the target game interface; screening the candidate game behavior data based on the game audio mounting requirements to obtain the target game behavior data.
[0177] Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: in response to the graphical user interface presenting a target game interface, controlling the game console to output candidate game behavior data based on preset control information.
[0178] Optionally, the above-mentioned computer-readable storage medium is also configured to store program codes for executing the following steps: determining specified game behavior data in the target game behavior data; determining the first position of the specified game behavior data in a preset database table; importing the coding identifier corresponding to the specified game behavior data into the second position of the first audio hanging table, wherein the second position is used to represent at least one column position in the target row record; and establishing a mapping relationship between the first position and the second position in the first audio hanging table.
[0179] Optionally, the above-mentioned computer-readable storage medium is also configured to store program codes for performing the following steps: determining a trigger condition based on the audio hanging position, wherein the trigger condition is used to indicate the moment of triggering the audio playback; importing the trigger condition into the third position of the first audio hanging table, wherein the third position is located in the target row record.
[0180] Optionally, the target audio information includes a target trigger audio file and a target trigger audio event, and the above-mentioned computer-readable storage medium is also configured to store program codes for executing the following steps: importing the target trigger audio file into the fourth position of the first audio hanging table, and importing the target trigger audio event into the fifth position of the first audio hanging table to obtain a second audio hanging table, wherein the fourth position and the fifth position are both located in the target row record.
[0181] In the computer-readable storage medium of this embodiment, a technical solution for game audio attachment is provided, by encoding the game behavior data in the preset database table to obtain an encoding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes an encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers. Then, the target encoding identifier corresponding to the target game behavior data is determined in the preset database table based on the encoding result, wherein the target game behavior data is used to indicate the audio attachment position in the game scene, and the audio attachment position is used to indicate the position or event that triggers audio playback in the game scene. Next, a first audio attachment table is created based on a first mapping rule and a target encoding identifier, wherein the first audio attachment table contains multiple row records, and the first mapping rule is used to map the encoding identifier corresponding to the specified game behavior data to the target row record in the multiple row records, and the specified game behavior data is at least one game behavior data indicating the same audio attachment position in the target game behavior data, and the first audio attachment table is used to record the association relationship between different target encoding identifiers. Afterwards, the target audio information is mapped to the first audio attachment table based on the second mapping rule to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association between the audio attachment position and the target audio information. Finally, the audio of the game is attached based on the second audio attachment table. Thus, the purpose of accurately attaching the game audio through an audio attachment table is achieved, thereby being able to achieve the technical effect of simplifying the audio attachment process, improving the audio attachment efficiency, improving the accuracy of audio attachment, and reducing the labor cost and time cost, thereby solving the technical problem in the related art that the accuracy and efficiency of the game audio attachment are low by searching and locating the positions of the audio to be attached in multiple game behavior data tables.
[0182] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0183] In an exemplary embodiment of the present application, a program product capable of implementing the above method of the present embodiment is stored on a computer-readable storage medium. In some possible implementations, various aspects of the embodiments of the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present application described in the above "Exemplary Method" section of the present embodiment.
[0184] According to the program product for implementing the above method according to the embodiment of the present application, it can adopt a portable compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the embodiment of the present application is not limited to this. In the embodiment of the present application, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0185] The program product may be in any combination of one or more computer-readable media. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive) of computer-readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (Electrically Programmable Read-Only Memory, EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0186] It should be noted that the program code contained in the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, radio frequency (RF), etc., or any suitable combination of the above.
[0187] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0188] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0189] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0190] Step S30, encoding the game behavior data in the preset database table to obtain an encoding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes an encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers;
[0191] Step S32, determining a target coding identifier corresponding to the target game behavior data based on the coding result in a preset database table, wherein the target game behavior data is used to indicate an audio hook position in a game scene, and the audio hook position is used to indicate a position or event in a game scene that triggers audio playback;
[0192] Step S34, creating a first audio attachment table based on the first mapping rule and the target coding identifier, wherein the first audio attachment table includes a plurality of row records, the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to a target row record in the plurality of row records, the specified game behavior data is at least one game behavior data indicating the same audio attachment position in the target game behavior data, and the first audio attachment table is used to record the association relationship between different target coding identifiers;
[0193] Step S36, mapping the target audio information to the first audio attachment table based on the second mapping rule to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association relationship between the audio attachment position and the target audio information;
[0194] Step S38, performing audio hooking on the game based on the second audio hooking table.
[0195] Optionally, the processor can also be configured to perform the following steps through a computer program: encoding the preset database table based on a first coding rule to obtain a first coding result, wherein the first coding rule is used to encode different types of preset database tables using different coding rules, and the first coding result is used to record first coding identifiers corresponding to different types of preset database tables; encoding the game behavior data in the preset database table based on a second coding rule to obtain a second coding result, wherein the second coding rule is used to encode different types of game behavior data using different coding rules, and the second coding result is used to record second coding identifiers corresponding to different types of game behavior data.
[0196] Optionally, the second coding identifier is a target number of preset digits, the number at the first position in the target number represents the position of the game behavior data divided by the first range in the corresponding preset database table, the number at the second position in the target number represents the position of the game behavior data divided by the second range within the first range in the corresponding preset database table, the first range represents preset database tables of the same type, and the second range represents any preset database table.
[0197] Optionally, the processor may also be configured to perform the following steps through a computer program: determining an audio mounting position in the game based on a game audio mounting requirement; determining target game behavior data based on the audio mounting position; and determining a target coding identifier corresponding to the target game behavior data based on the coding result in a preset database table.
[0198] Optionally, the processor may also be configured to perform the following steps through a computer program: traverse the game, and control the virtual character in the game to move to a target position based on the game audio hook requirements; determine the audio hook position based on the target position; or, traverse the game, and control the virtual character to trigger a target event based on the game audio hook requirements; determine the audio hook position based on the target event.
[0199] Optionally, the processor may also be configured to perform the following steps through a computer program: determining a target game interface corresponding to the audio mounting position, wherein the target game interface is used to display a game scene including the audio mounting position, and the target game interface is a game screen presented by a graphical user interface; obtaining candidate game behavior data in the target game interface, wherein the candidate game behavior data includes any game behavior data in the target game interface; screening the candidate game behavior data based on the game audio mounting requirements to obtain the target game behavior data.
[0200] Optionally, the processor may also be configured to execute the following steps through a computer program: in response to the graphical user interface presenting a target game interface, controlling the game console to output candidate game behavior data based on preset control information.
[0201] Optionally, the processor may also be configured to perform the following steps through a computer program: determining specified game behavior data in the target game behavior data; determining the first position of the specified game behavior data in a preset database table; importing the coding identifier corresponding to the specified game behavior data into the second position of the first audio hanging table, wherein the second position is used to represent at least one column position in the target row record; and establishing a mapping relationship between the first position and the second position in the first audio hanging table.
[0202] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: determine a trigger condition based on the audio hanging position, wherein the trigger condition is used to indicate the moment of triggering the audio playback; import the trigger condition into the third position of the first audio hanging table, wherein the third position is located in the target row record.
[0203] Optionally, the target audio information includes a target trigger audio file and a target trigger audio event, and the above-mentioned processor can also be configured to perform the following steps through a computer program: importing the target trigger audio file into the fourth position of the first audio hanging table, and importing the target trigger audio event into the fifth position of the first audio hanging table to obtain a second audio hanging table, wherein the fourth position and the fifth position are both located in the target row record.
[0204] In the electronic device of this embodiment, a technical solution for game audio hooking is provided, by encoding the game behavior data in the preset database table to obtain a coding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the coding result includes a coding identifier corresponding to any game behavior data, and different game behavior data correspond to different coding identifiers. Then, the target coding identifier corresponding to the target game behavior data is determined in the preset database table based on the coding result, wherein the target game behavior data is used to indicate the audio hooking position in the game scene, and the audio hooking position is used to indicate the position or event that triggers audio playback in the game scene. Next, a first audio hooking table is created based on a first mapping rule and a target coding identifier, wherein the first audio hooking table includes multiple row records, the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to the target row record in the multiple row records, the specified game behavior data is at least one game behavior data indicating the same audio hooking position in the target game behavior data, and the first audio hooking table is used to record the association relationship between different target coding identifiers. Afterwards, the target audio information is mapped to the first audio attachment table based on the second mapping rule to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association between the audio attachment position and the target audio information. Finally, the audio of the game is attached based on the second audio attachment table. Thus, the purpose of accurately attaching the game audio through an audio attachment table is achieved, thereby being able to achieve the technical effect of simplifying the audio attachment process, improving the audio attachment efficiency, improving the accuracy of audio attachment, and reducing the labor cost and time cost, thereby solving the technical problem in the related art that the accuracy and efficiency of the game audio attachment are low by searching and locating the positions of the audio to be attached in multiple game behavior data tables.
[0205] Fig.11is a schematic diagram of an electronic device according to an embodiment of the present application. Fig.11 As shown, the electronic device 1100 is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0206] like Fig.11 As shown, the electronic device 1100 is in the form of a general computing device. The components of the electronic device 1100 may include but are not limited to: the at least one processor 1110, the at least one memory 1120, a bus 1130 connecting different system components (including the memory 1120 and the processor 1110), and a display 1140.
[0207] The memory 1120 stores program codes, which can be executed by the processor 1110, so that the processor 1110 executes the steps described in the method part of the embodiment of the present application according to various exemplary embodiments of the present application.
[0208] The memory 1120 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 11201 and / or a cache memory unit 11202, and may further include a read-only memory unit (ROM) 11203, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
[0209] In some examples, the memory 1120 may also include a program / utility 11204 having a set (at least one) of program modules 11205, such program modules 11205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. The memory 1120 may further include a memory remotely disposed relative to the processor 1110, and these remote memories may be connected to the electronic device 1100 via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0210] The bus 1130 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a local bus of the processor 1110, or a bus using any of a variety of bus architectures.
[0211] The display 1140 may be, for example, a touch screen liquid crystal display (LCD), which may enable a user to interact with a user interface of the electronic device 1100 .
[0212] Optionally, the electronic device 1100 may also communicate with one or more external devices 1200 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 1100, and / or any device that enables the electronic device 1100 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 1150. Furthermore, the electronic device 1100 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 1160. Fig.11 As shown, the network adapter 1160 communicates with other modules of the electronic device 1100 via the bus 1130. It should be understood that although Fig.11 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Array of Independent Disks, RAID) systems, tape drives, and data backup storage systems.
[0213] The electronic device 1100 may further include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply and / or a camera.
[0214] It can be understood by those skilled in the art that Fig.11 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.11 More or fewer components as shown, or with Figure 2 The memory 1120 may be used to store computer programs and corresponding data, such as the computer programs and corresponding data corresponding to the game audio hooking method in the embodiment of the present application. The processor 1110 executes various functional applications and data processing by running the computer programs stored in the memory 1120, that is, implementing the above-mentioned game audio hooking method.
[0215] The embodiment of the present application further provides a computer program product. Optionally, in this embodiment, the computer program product may include a computer program, and the computer program implements the method provided in the embodiment when executed by a processor.
[0216] Optionally, the computer program included in the above-mentioned computer program product is executed by a processor to perform the following steps:
[0217] Step S30, encoding the game behavior data in the preset database table to obtain an encoding result, wherein different types of preset database tables are used to store different types of game behavior data in the game, and the encoding result includes an encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers;
[0218] Step S32, determining a target coding identifier corresponding to the target game behavior data based on the coding result in a preset database table, wherein the target game behavior data is used to indicate an audio hook position in a game scene, and the audio hook position is used to indicate a position or event in a game scene that triggers audio playback;
[0219] Step S34, creating a first audio attachment table based on the first mapping rule and the target coding identifier, wherein the first audio attachment table includes a plurality of row records, the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to a target row record in the plurality of row records, the specified game behavior data is at least one game behavior data indicating the same audio attachment position in the target game behavior data, and the first audio attachment table is used to record the association relationship between different target coding identifiers;
[0220] Step S36, mapping the target audio information to the first audio attachment table based on the second mapping rule to obtain the second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association relationship between the audio attachment position and the target audio information;
[0221] Step S38, performing audio hooking on the game based on the second audio hooking table.
[0222] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0223] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0224] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.
[0225] 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0226] In addition, each functional unit in each embodiment of the present application 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 software functional units.
[0227] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0228] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A game audio hookup method, characterized in that: The method comprises: Encoding the game behavior data in the preset database table to obtain a coding result, wherein different types of the preset database tables are used to store different types of game behavior data in the game, and the coding result includes a coding identifier corresponding to any game behavior data, and different game behavior data correspond to different coding identifiers; Determining a target coding identifier corresponding to target game behavior data based on the coding result in the preset database table, wherein the target game behavior data is used to indicate an audio attachment position in a game scene, and the audio attachment position is used to indicate a position or event in the game scene that triggers audio playback; Creating a first audio attachment table based on a first mapping rule and the target coding identifier, wherein the first audio attachment table includes a plurality of row records, the first mapping rule is used to map the coding identifier corresponding to the specified game behavior data to a target row record in the plurality of row records, the specified game behavior data is at least one game behavior data indicating the same audio attachment position in the target game behavior data, and the first audio attachment table is used to record the association relationship between different target coding identifiers; Mapping the target audio information to the first audio attachment table based on a second mapping rule to obtain a second audio attachment table, wherein the second mapping rule is used to map the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used to record the association relationship between the audio attachment position and the target audio information; Perform audio hooking on the game based on the second audio hooking table.
2. The method according to claim 1, characterized in that The encoding of the game behavior data in the preset database table to obtain the encoding result includes: Encode the preset database table based on a first encoding rule to obtain a first encoding result, wherein the first encoding rule is used to encode different types of preset database tables using different encoding rules, and the first encoding result is used to record first encoding identifiers corresponding to different types of preset database tables; The game behavior data in the preset database table is encoded based on a second encoding rule to obtain a second encoding result, wherein the second encoding rule is used to encode different types of game behavior data using different encoding rules, and the second encoding result is used to record the second encoding identifier corresponding to different types of game behavior data.
3. The method according to claim 2, characterized in that The second coding identifier is a target number of preset digits, the number at the first position in the target number represents the position of the game behavior data divided by the first range in the corresponding preset database table, the number at the second position in the target number represents the position of the game behavior data divided by the second range within the first range in the corresponding preset database table, the first range represents the preset database tables of the same type, and the second range represents any of the preset database tables.
4. The method according to claim 1, characterized in that: The target coding identifier corresponding to the target game behavior data determined based on the coding result in the preset database table includes: Determining the audio hook position in the game based on the game audio hook requirement; Determine the target game behavior data based on the audio hook position; The target coding identifier corresponding to the target game behavior data is determined in the preset database table based on the coding result.
5. The method according to claim 4, characterized in that Determining the audio hook position in the game based on the game audio hook requirement includes: Traversing the game, and controlling the virtual character in the game to move to a target position based on the game audio hookup requirements; Determine the audio hook position based on the target position; or, Traversing the game, and controlling the virtual character to trigger a target event based on the game audio hookup requirements; The audio hook position is determined based on the target event.
6. The method according to claim 4, characterized in that Determining the target game behavior data based on the audio hook position includes: Determine a target game interface corresponding to the audio hook position, wherein the target game interface is used to display a game scene including the audio hook position, and the target game interface is a game screen presented by a graphical user interface; Acquire candidate game behavior data in the target game interface, wherein the candidate game behavior data includes any game behavior data in the target game interface; The candidate game behavior data is screened based on the game audio hookup requirement to obtain the target game behavior data.
7. The method according to claim 6, characterized in that The obtaining of candidate game behavior data in the target game interface includes: In response to the graphical user interface presenting the target game interface, the game console is controlled to output the candidate game behavior data based on preset control information.
8. The method according to claim 1, characterized in that The creating of the first audio hook table based on the first mapping rule and the target coding identifier comprises: Determining the designated game behavior data in the target game behavior data; Determine the first position of the specified game behavior data in the preset database table; Importing the coding identifier corresponding to the specified game behavior data into the second position of the first audio hook table, wherein the second position is used to represent at least one column position in the target row record; A mapping relationship between the first position and the second position is established in the first audio hook table.
9. The method according to claim 8, characterized in that The creating of the first audio hook table based on the first mapping rule and the target coding identifier further comprises: Determining a trigger condition based on the audio hook position, wherein the trigger condition is used to indicate a time to trigger audio playback; The trigger condition is introduced into a third position of the first audio hook table, wherein the third position is located in the target row record.
10. The method according to claim 1, characterized in that The target audio information includes a target triggering audio file and a target triggering audio event, and the target audio information is mapped to the first audio hook table based on the second mapping rule to obtain the second audio hook table, including: Import the target trigger audio file into the fourth position of the first audio hanging table, and import the target trigger audio event into the fifth position of the first audio hanging table to obtain the second audio hanging table, wherein the fourth position and the fifth position are both located in the target row record.
11. A game audio hook-up device, characterized in that: The device comprises: An encoding module, used to encode the game behavior data in a preset database table to obtain an encoding result, wherein different types of the preset database tables are used to store different types of game behavior data in the game, and the encoding result includes an encoding identifier corresponding to any game behavior data, and different game behavior data correspond to different encoding identifiers; A determination module, configured to determine a target coding identifier corresponding to target game behavior data in the preset database table based on the coding result, wherein the target game behavior data is used to indicate an audio attachment position in a game scene, and the audio attachment position is used to indicate a position or event in the game scene that triggers audio playback; A creation module, configured to create a first audio attachment table based on a first mapping rule and the target coding identifier, wherein the first audio attachment table includes a plurality of row records, the first mapping rule is configured to map the coding identifier corresponding to the specified game behavior data to a target row record in the plurality of row records, the specified game behavior data is at least one game behavior data indicating the same audio attachment position in the target game behavior data, and the first audio attachment table is configured to record the association relationship between different target coding identifiers; A mapping module, used for mapping the target audio information to the first audio attachment table based on a second mapping rule to obtain a second audio attachment table, wherein the second mapping rule is used for mapping the target audio information to the target row record, the target audio information is the audio information to be attached to the audio attachment position, and the second audio attachment table is used for recording the association relationship between the audio attachment position and the target audio information; A mounting module is used to mount the audio of the game based on the second audio mounting table.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the game audio hooking method described in any one of claims 1 to 10 when running on a computer or a processor.
13. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the game audio hookup method described in any one of claims 1 to 10.
14. A computer program product, characterized in that The invention comprises a computer program, which implements the game audio hooking method described in any one of claims 1 to 10 when being executed by a processor.
