Disclosure of Invention
The invention aims to solve the defects of the prior art and provides a method and a device for controlling the sound playing of game applications and other applications.
In order to achieve the above object, the present invention provides a method for controlling sound playing of a game application and other applications, comprising the following steps:
s100) after the game application is started, detecting whether a sound playing setting table exists, if so, directly executing the step S300, otherwise, executing the step S200;
s200) prompting a user to set a sound playing mode of other related applications, forming a sound playing setting table and storing the sound playing setting table in the game application;
s300) controlling the volume of the game application and the other applications which are currently running according to the sound playing setting table.
In the method of the present invention, step S300 is to gradually decrease the volume of the other application in a gradual manner.
Similarly, in the method of the present invention, step S300 may also stop the music of the other application and play the music of the game application after the music of the other application is played for a specified time, for example, after the music of the other application is played completely.
In the method of the present invention, the developer may preset the sound play setting table in the game application. When the user does not set the sound playing mode of the related application, the preset sound playing setting table is used as the sound playing setting table to be set by the user, so as to control the volume of the currently running game application and other applications.
The invention also provides a device for controlling the sound playing of the game application and other applications, which comprises the following modules:
the recording module is used for storing a sound playing setting table;
the editing module is used for acquiring the sound playing modes of the game application and the other applications set by the user and forming the sound playing setting table;
and the execution module is used for controlling the volume of the currently running game application and other applications according to the sound playing setting table.
In the above device of the present invention, the execution module gradually reduces the volume of other applications in a gradual manner.
Similarly, in the above device of the present invention, the execution module stops the music of the other application and plays the music of the game application after the music of the other application is played for a specified time, for example, after the music of the other application is played.
In the above apparatus of the present invention, the developer presets the sound playback setting table in the recording module. When the user does not set the sound playing mode of the game application and the other applications, the execution module regards the preset sound playing setting table as the sound playing setting table set by the user so as to control the volume of the currently running game application and the other applications.
The invention also provides a computer readable medium containing instructions for executing the method for controlling the game application and the sound playing of other applications.
The invention provides a method and a device for controlling the sound playing of game application and other applications aiming at the technical problem of the conflict between the sound playing modes of the existing game application and other applications, so as to obtain the sound playing mode which can be selected by a user, thereby improving the technical effect of game experience of different types of users.
Detailed Description
The conception, the specific structure and the technical effects of the present invention will be clearly and completely described in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the schemes and the effects of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The same reference numbers will be used throughout the drawings to refer to the same or like parts.
Referring to the flowchart of the method for controlling the sound playing of the game application and other applications shown in fig. 1, according to an embodiment of the present invention, the method includes the following steps:
s100) after the game application is started, detecting whether a sound playing setting table exists, if so, directly executing the step S300, otherwise, executing the step S200;
s200) prompting a user to set a sound playing mode of other applications and forming a sound playing setting table, wherein the sound playing setting table can be saved in a mode including but not limited to the following modes, such as recording into a game application, saving as a readable external file or recording into a registry;
s300) controlling the volume of the currently running game application and other applications according to the sound playing setting table.
In one embodiment of the invention, the game application can gradually reduce the volume of other applications in a gradual change mode and finally close the volume of other applications, so that a user can gradually adapt to the sound effect and volume change between the game application and other applications, and the use experience of the user is improved.
In another embodiment of the present invention, after the music of the other application is played for a specified time, the music of the other application is stopped and the music of the game application is played. Specifically, a timer is arranged inside the execution module. The user may set a specified time the previous time the game application was started. When the user starts the game application again and detects that the other applications run in the background, the music of the game application stops playing and the timer starts to count time, and after a preset specified time, the music of the other applications stops and the applications of the game application start to play.
Further, the other applications can monitor the current music playing state of the other applications by setting a timer; after the music of the other applications is played, the game application starts to play the music of the game application, so that the user experience of the game application is prevented from being influenced by the forced interruption of the user in the middle of listening to the music of the other applications.
In another embodiment of the present invention, the developer of the game application may preset the sound playing setting table in the game application according to the type of the game application and the preference of the target user group. After the game application is started for the first time, a user can directly use the preset sound playing setting table as the sound playing setting table set by the user without setting a sound playing mode of the related application so as to control the volume of the currently running game application and other applications, so that the game application is quickly started, and the setting operation of the game application is simplified so as to improve the user experience.
Referring to the flow chart of the structure for controlling the sound playing of the game application and other applications shown in fig. 2, according to an embodiment of the present invention, the apparatus of the present invention includes the following modules: the recording module is used for storing a sound playing setting table; the editing module is used for acquiring the sound playing modes of the game application and the other applications set by the user and forming the sound playing setting table; and the execution module is used for controlling the volume of the currently running game application and the volume of the other applications according to the sound playing setting table. Specifically, after the user starts the game application, the editing module sends an instruction to the recording module to query whether the game application has recorded the sound playing setting table. The recording module may store the sound playing setting table in a manner including, but not limited to, recording into a database of the recording module, saving as a readable external file, or recording into a registry. And if the return result of the recording module to the editing module is null, the editing module sends a sound playing mode for setting the game application and the other applications to a user, forms the sound playing setting table according to the setting of the user, and stores the sound playing setting table in the recording module. Finally, the editing module sends a message to the execution module to request the execution module to control the volume of the currently running game application and the other applications according to the sound equipment table stored in the recording module.
In an embodiment of the present invention, the execution module may gradually reduce the volume of the other applications in a gradual change manner, and finally close the volume of the other applications, so that the user may gradually adapt to sound effects and volume changes between the game application and the other applications, thereby improving the user experience.
In another embodiment of the present invention, after the music of the other application is played for a specified time, the execution module stops the music of the other application and plays the music of the game application. Specifically, a timer is arranged inside the execution module. The user may set a specified time the previous time the game application was started. When the user starts the game application again and detects that the other applications run in the background, the music of the game application stops playing and the timer of the execution module starts to count time. And after a preset designated time, the execution module stops the music of the other applications according to the sound playing setting table and starts to play the application of the game application.
Further, the execution module sends a message to the system at a certain frequency by setting a timer, and queries the current music playing status of the other applications, thereby monitoring the other applications. And after the music of the other applications is played, the execution module starts playing the music of the game application, so that the user experience of the game application is prevented from being influenced by the forced interruption of the user in the middle of listening to the music of the other applications.
In another embodiment of the present invention, the developer of the game application may preset the sound playing setting table in the recording module according to the type of the game application and the preferences of the target user group. After the game application is started for the first time, a user can directly use the preset sound playing setting table as the sound playing setting table set by the user without setting a sound playing mode of the related application so as to control the volume of the currently running game application and other applications, so that the game application is quickly started, and the setting operation of the game application is simplified so as to improve the user experience.
While the present invention has been described in considerable detail and with particular reference to a few illustrative embodiments thereof, it is not intended to be limited to any such details or embodiments or any particular embodiments, but it is to be construed as effectively covering the intended scope of the invention by providing a broad, potential interpretation of such claims in view of the prior art with reference to the appended claims. Furthermore, the foregoing describes the invention in terms of embodiments foreseen by the inventor for which an enabling description was available, notwithstanding that insubstantial modifications of the invention, not presently foreseen, may nonetheless represent equivalent modifications thereto.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
As will be appreciated by one skilled in the art, the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.