CN102033776A - Audio playing method and computing device - Google Patents

Audio playing method and computing device Download PDF

Info

Publication number
CN102033776A
CN102033776A CN2009102352803A CN200910235280A CN102033776A CN 102033776 A CN102033776 A CN 102033776A CN 2009102352803 A CN2009102352803 A CN 2009102352803A CN 200910235280 A CN200910235280 A CN 200910235280A CN 102033776 A CN102033776 A CN 102033776A
Authority
CN
China
Prior art keywords
application program
application
volume
sound
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2009102352803A
Other languages
Chinese (zh)
Other versions
CN102033776B (en
Inventor
邝宇豪
陈诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN200910235280.3A priority Critical patent/CN102033776B/en
Publication of CN102033776A publication Critical patent/CN102033776A/en
Application granted granted Critical
Publication of CN102033776B publication Critical patent/CN102033776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an audio playing method and a computing device. The method comprises the steps: confirming a first window of current acquired focus in a plurality of opened windows, wherein the plurality of opened windows correspond to a plurality of current running application programs; confirming the first application program corresponding to the first window; adjusting the volume of the plurality of application programs, and leading the volume of the sound triggered by the first application program to be larger than the volume of the sound triggered by other application programs in the plurality of application programs except the first application program when the first application program is capable of triggering the sound; and ensuring the difference between the volume of the sound triggered by the first application program and the volume of the sound triggered by other application programs in the plurality of application programs to be larger than the preset threshold value. By utilizing the technical scheme, the user can conveniently and rapidly highlight the sound production of the application program which is selected currently when the plurality of application programs of sound production are opened at the same time; and the operation is simple, the current task does not need to interrupt and the efficiency is high.

Description

A kind of audio frequency playing method and a kind of computing equipment
Technical field
The present invention relates to media play field, particularly relate to a kind of audio frequency playing method and a kind of computing equipment.
Background technology
The computing equipment of prior art, as computing machine, notebook computer, MP3, mobile phone etc., can move the application program of a plurality of energy sounding simultaneously, for example, the user can open the one or more audio application that may sound such as chatting programme or webpage etc. again in the movie of foreground.In realizing process of the present invention, the inventor finds under the above-mentioned situation that a plurality of application program operations that can sounding are arranged at the same time, if the audio frequency playing method that the user wants to utilize prior art is the sounding of foreground program outstanding foreground program can sounding the time in the window corresponding application program of current acquisition focus, as realizing only allowing the foreground application sounding with quiet exclusive quiet of all the other all programs, for example, only allow the film sounding play and other sounding program is quiet to avoid influence to watch film, then the user can only utilize operating system, or third party software provide at the quiet function of single audio application, because needing the manual unlocking setting program successively each background program to be provided with quietly is provided with separately, watch the process of film to be interrupted, influenced user experience.The said method of prior art is loaded down with trivial details at the voiced process of realizing the outstanding application program of choosing, make mistakes easily, and efficient is very low.
Summary of the invention
Embodiments of the invention provide a kind of audio frequency playing method and a kind of computing equipment, to solve in the prior art, open when the application program of a plurality of sounding is arranged the technical matters that can't give prominence to the sounding of the current application program of choosing quickly and easily at the same time.
To achieve these goals, on the one hand, provide a kind of audio frequency playing method, wherein, comprise the steps:
Determine first window of current acquisition focus in a plurality of windows of opening, described a plurality of windows of opening are corresponding to a plurality of application programs of current operation;
Determine first application program of the described first window correspondence;
Volume to described a plurality of application programs is adjusted, described first application program makes when can trigger sound, the volume of the sound of described first application triggers is greater than the volume of the sound of other application triggers except that described first application program in described a plurality of application programs, and in the volume of the sound of described first application triggers and the described a plurality of application program difference of the volume of the sound of other application triggers except that described first application program greater than predetermined threshold value.
Preferably, described audio frequency playing method, wherein,
Described first application program is an audio application;
The volume of the sound of other application triggers in described a plurality of application program except that described first application program is: the volume of the audio application in described a plurality of application programs except that described first application program.
Preferably, described audio frequency playing method, wherein, described volume to described a plurality of application programs is adjusted and is comprised:
It is quiet that system is set;
The described first application program sounding is set.
Preferably, described audio frequency playing method wherein, utilizes the volume control interface of the described first application program correspondence that the described first application program sounding is set.
Preferably, described audio frequency playing method, wherein, described volume to described a plurality of application programs is adjusted and is comprised:
It is quiet and the described first application program sounding is set that other application program except that described first application program is set in described a plurality of application program.
Preferably, described audio frequency playing method, wherein, it is quiet and the described first application program sounding is set to utilize the volume control interface of each the application program correspondence in described a plurality of application program that other application program except that described first application program is set in described a plurality of application program.
Preferably, described audio frequency playing method wherein, before determining described first window, also comprises:
Trigger the step of described voice playing.
Preferably, described method wherein, after the volume of described a plurality of application programs is adjusted, also comprises the step that highlights described first application program.
Preferably, described method wherein, after the volume of described a plurality of application programs is adjusted, also comprises:
When the user switches to second window with described first window of current acquisition focus, determine second application program of the described second window correspondence, and the volume of described a plurality of application programs adjusted, described second application program makes when can trigger sound, the volume of the sound of described second application triggers is greater than the volume of the sound of other application triggers except that described second application program in described a plurality of application programs, and in the volume of the sound of described second application triggers and the described a plurality of application program difference of the volume of the sound of other application triggers except that described second application program greater than predetermined threshold value.
On the other hand, provide a kind of computing equipment, wherein, comprise audio playing module, described audio playing module comprises again:
First determination module is used for first window in the definite current acquisition focus of a plurality of windows of opening, and described a plurality of windows of opening are corresponding to a plurality of application programs of current operation;
Second determination module is used for determining first application program of the described first window correspondence;
Processing module, be used for the volume of described a plurality of application programs is adjusted, described first application program makes when can trigger sound, the volume of the sound of described first application triggers is greater than the volume of the sound of other application triggers except that described first application program in described a plurality of application programs, and the difference of the volume of the sound of other application triggers outside first application program described in the volume of the sound of described first application triggers and the described a plurality of application program is greater than predetermined threshold value.
Preferably, described computing equipment, wherein, described processing module comprises:
The quiet module that is provided with, it is quiet to be used to that system is set;
Sounding is provided with module, is used to be provided with the described first application program sounding.
Preferably, described computing equipment, wherein,
Described sounding is provided with module, further utilizes the volume control interface of the described first application program correspondence that the described first application program sounding is set.
A technical scheme in the technique scheme has following technique effect:
By determining first window of current acquisition focus, first application program of this first window correspondence, and the volume of a plurality of application programs of current operation adjusted, first application program makes when can trigger sound, the volume of the sound of its triggering is greater than the wave volume of other application triggers except that described first application program in a plurality of application programs of above-mentioned operation, make when the application program of a plurality of sounding of operation, the sound that the volume that the user need not manually to adjust separately each application program again avoids the foreground application of the window correspondence of the current activation of sound interference that the application program on backstage sends to send, for the user has brought convenience, strengthened user's experience.
Description of drawings
Fig. 1 is the schematic flow sheet of the audio frequency playing method of the embodiment of the invention;
Fig. 2 is the schematic flow sheet of the audio frequency playing method of another embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the audio frequency playing method of further embodiment of this invention;
Fig. 4 is the schematic flow sheet of the audio frequency playing method of further embodiment of this invention;
Fig. 5 is in the audio frequency playing method of one embodiment of the invention, utilizes WASAPI to realize the principle schematic of every application program volume control;
Fig. 6 is in the audio frequency playing method of one embodiment of the invention, the patterned way indication when realizing exclusive silent mode;
In the audio frequency playing method of Fig. 7 for the embodiment of the invention, the transition diagram of different mute state when realizing exclusive silent mode;
Fig. 8 is the structural representation of the computing equipment of the embodiment of the invention.
Embodiment
For technical matters, technical scheme and advantage that the embodiment of the invention will be solved is clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
Fig. 1 is the schematic flow sheet of the audio frequency playing method of the embodiment of the invention.As Fig. 1, the method for this embodiment comprises:
Step 101, first window of definite current acquisition focus in a plurality of windows of opening, described a plurality of windows of opening are corresponding to a plurality of application programs of current operation;
Exemplarily, can determine first window of current acquisition focus by the application programming interface API that calls current operation system, as determining first window by the window handle that obtains the current window of working of user, exemplarily, in Windows Windows, can obtain window handle by the GetForegroundWindow function.Because the window handle identify label that window of unique identification is a window in system behind the window handle of therefore definite first window, can determine which first window is;
Step 102 is determined first application program of the described first window correspondence;
Exemplarily, this step can be utilized the window handle of first window of determining in step 101, call corresponding system API again, for example, be the GetWindowThreadProcessId function in Windows, the Process identifier that can obtain the pairing application program of first window is a process ID.Therefore similar with the aforementioned window handle, process ID is to be used for application program of unique identification in system, has obtained first application program that process ID has also just been determined the first window correspondence.
Step 103, volume to described a plurality of application programs is adjusted, as adjusting according to predetermined strategy, described first application program makes when can trigger sound, the volume of the sound of described first application triggers is greater than the volume of the sound of other application triggers except that described first application program in described a plurality of application programs, and in the volume of the sound of described first application triggers and the described a plurality of application program difference of the volume of the sound of other application triggers except that first application program greater than predetermined threshold value.
Preferably, above-mentioned first application program is an audio application.
Preferably, the volume of the sound of other application triggers except that described first application program is in above-mentioned a plurality of application program: the volume of the audio application in above-mentioned a plurality of application programs except that first application program.
Preferably, the difference of the volume of the sound of other application triggers in the volume of the sound of above-mentioned first application triggers and the described a plurality of application program is greater than predetermined threshold value, the difference of volume of sound that is the volume of sound of first application triggers and other each application triggers in described a plurality of application program is greater than predetermined threshold value, both can be all sounding that satisfy the sounding condition in a plurality of application programs, and the volume of first application program is bigger, and the volume of other application program is less, the volume difference of the two is greater than predetermined threshold value, make it possible to the sound of outstanding first application program, make things convenient for the user that the sound of first application program sound zones with other application program is separated; Also can be to have only the first application program sounding, and other application program is all quiet, it is exclusive quiet that this situation belongs to.In a word, above-mentioned predetermined threshold value needs to make the user that the volume of the sound of the volume of the sound of above-mentioned first application triggers and other each application triggers in described a plurality of application program is distinguished.
Preferably, the application program of the embodiment of the invention is an audio application.
Preferably, the application program of the embodiment of the invention also comprises the non-audio application program that can trigger sound except that audio application.
Preferably, after the volume of described a plurality of application programs is adjusted, also comprise: when the user switches to second window with described first window of current acquisition focus, determine second application program of the described second window correspondence, and the volume of described a plurality of application programs adjusted, described second application program makes when can trigger sound, the volume of the sound of described second application triggers is greater than the volume of the sound of other application triggers except that described second application program in described a plurality of application programs, and in the volume of the sound of described second application triggers and the described a plurality of application program difference of the volume of the sound of other application triggers except that described second application program greater than predetermined threshold value.
Preferably, in the method for the embodiment of the invention, after the volume of described a plurality of application programs is adjusted, also comprise: utilize the pilot lamp that sets in advance to identify described adjusted state.
Preferably, in the method for the embodiment of the invention, before determining described first window, also comprise: the step that triggers described voice playing.
In the above-mentioned steps 103, preferably, can adjust the volume of above-mentioned a plurality of application programs according to following predetermined strategy:
First strategy is:
It is quiet that system is set earlier, and the first application program sounding is set again;
Second strategy is:
Utilize the volume control interface of each application program, respectively each application program of desire adjustment is carried out the volume setting, comprise: the first application program sounding is set and other application program except that first application program is set in a plurality of application programs of current operation quiet, wherein, quiet and order sounding being set promptly can carry out also can carrying out sequentially simultaneously; Or, first application program is set with the first volume sounding with other application program except that first application program is set in a plurality of application programs of current operation with the second volume sounding less than first volume; Wherein, the order that sounding is set promptly can carry out also can carrying out sequentially simultaneously;
The 3rd strategy is:
The system that is provided with earlier is with the first volume sounding; Utilize the volume control interface of each application program other application program except that first application program to be set in a plurality of application programs of current operation again, or it is quiet that other application program except that first application program is set in a plurality of application programs of current operation with the second volume sounding less than first volume.
Fig. 2 is the schematic flow sheet of the audio frequency playing method of embodiments of the invention.The audio frequency playing method of this embodiment can be to audio playing apparatus, as be provided with the computing equipment of audio playing module, the application program of a plurality of energy sounding of playing simultaneously realizes exclusive quiet, promptly only allow the first application program sounding of the first window correspondence of current acquisition focus, and other application program is quiet.
As Fig. 2, the audio frequency playing method of this embodiment comprises:
Step 201 triggers audio playing apparatus and enters exclusive silent mode as the computing equipment with voice playing function;
Exemplarily, trigger audio playing apparatus by hard button or virtual key and enter quiet exclusive pattern; For example, can judge that quiet key is pressed and when keeping the duration of down state to surpass scheduled duration, trigger audio playing apparatus and enter exclusive silent mode; Perhaps, can after directly pressing quiet key, promptly enter exclusive silent mode; The concrete mode that triggers can have multiple;
Step 202 under exclusive silent mode, is determined first window of current acquisition focus in a plurality of windows of opening;
Step 203 is determined first application program of the first window correspondence;
Step 204, it is quiet that system is set, so that all application programs under the current system are quiet;
Step 205 is provided with first application program with sounding;
In this step, this first application program can be an audio application, also can be to have ready conditions to trigger the non-audio application program of sound; Audio application then is provided with the first application program sounding in this way; As not being audio application, first application program then be set be current sounding when satisfying the sounding condition.
Particularly, among this embodiment, as step 204,205, be to be provided with earlier that system is quiet promptly earlier to carry out quietly in system level (system level), promptly first application program is quiet at foreground application to use every application program volume control (per-applicationvolume control) technology then.This every application program volume controlling technique realization on each operating system is not quite similar.Exemplarily, on Windows 7, (WASAPI, Windows Audio Session API) can manage the audio data stream between each application program and audio frequency apparatus such as loudspeaker, the earphone etc. by form audio session application programming interface.
Utilize embodiment of the invention method, when a plurality of audio application are opened simultaneously, only need to trigger to enter exclusive silent mode, as pin the quiet key that is used to trigger exclusive silent mode, just can all backstage audio application are quiet, be foreground audio application sounding and only allow the window corresponding audio application program of current acquisition focus.For example, using video application such as Skype to carry out video calling,, guaranteeing that at first Skype video calling window is in state of activation if do not want to be subjected to the interference of other audio programs of backstage, pin quiet key then and surpass predetermined duration, can finish exclusive quiet setting as 2 seconds.
Preferably, the method for the embodiment of the invention utilizes the volume control interface of the first audio application correspondence that current operation system provides, described that the described first audio application sounding is set.
Fig. 3 is the schematic flow sheet of the audio frequency playing method of another embodiment of the present invention.As Fig. 3, the method among this embodiment comprises:
Step 301, button detects;
Step 302 is judged the current default quiet key of whether pressing; In this way, execution in step 303 then; Otherwise, change step 301 over to;
Step 303 judges whether the duration of pressing quiet key surpasses predetermined duration, and exemplarily, this predetermined duration is 2 seconds; In this way, execution in step 305 then; Otherwise, execution in step 304;
Step 304, audio playing apparatus enter common silent mode, and process ends;
Step 305, audio playing apparatus enter exclusive silent mode, and under this exclusive silent mode, are determining first window of current acquisition focus and first application program of this first window correspondence in a plurality of windows of front opening;
Step 306, system sound volume is quiet, thereby, thereby make that all audio application under the current system are quiet;
Step 307, but judge whether sounding of above-mentioned first application program, exemplarily, can judge whether this first application program is audio application; In this way, execution in step 308 then; Otherwise, process ends;
Step 308 is provided with this first application program sounding.
Exemplarily, above-mentioned quiet key can be hard button, and promptly physical button exemplarily, as the button on the keyboard, mousebutton etc., also can be the virtual key of realizing by program module.Exemplarily, this virtual key can be: screen soft keyboard button, on-screen menu option, touch-screen etc.
Particularly, among this embodiment,, be system to be set earlier quiet to be that present system level system level carries out quiet as step 304, use every application program volume controlling technique quiet then at foreground application.This every application program volume controlling technique realization on each operating system is not quite similar.Exemplarily, on Windows 7, (WASAPI, WindowsAudio Session API) can manage the audio data stream between each application program and audio frequency apparatus such as loudspeaker, the earphone etc. by form audio session application programming interface.
Fig. 4 is the schematic flow sheet of the audio frequency playing method of further embodiment of this invention.As Fig. 4, the method among this embodiment comprises:
Step 401~step 405 is with above-mentioned step 301~step 305;
Step 406, utilize every application program volume control interface that current operation system provides in a plurality of application programs of a plurality of window correspondences of front opening, the volume of application program that can sounding regulates, particularly, first application program of the first window correspondence of current acquisition focus is arranged to sounding and is about to its volume and is set to greater than 0, and the application program that except that first application program other can sounding is set to quiet.
Exemplarily, when the first application program sounding was set, the volume that sounding is set can be known the user and is heard greater than predetermined volume value.
Of the present invention, not to realize among exclusive other quiet embodiment, behind the audio frequency playing method that triggers the embodiment of the invention, after determining first application program, the every application program volume control interface that utilizes current operation system to provide, to in a plurality of application programs of a plurality of window correspondences of front opening, the volume of the application program of energy sounding is regulated, particularly, the volume of first application program of the first window correspondence of current acquisition focus is arranged to first volume, and will be except that first application program other can sounding the volume of application program all be set to second volume, first volume is greater than second volume, and both differences are greater than predetermined threshold value.
In another embodiment, also can to outer other of first application program can sounding the sounding type of application program classify, different classes of application program is provided with different phonation volumes, but the strategy that is provided with should make the volume of sounding of other application program not influence the sound of first application program.
Fig. 5 shows in the exclusive quiet method of realization of one embodiment of the invention, utilizes WASAPI to realize the principle schematic of every application program volume control.As Fig. 5, audio playing apparatus realizes that by form audio session application programming interface WASAPI the volume that controls to reach each audio application with volume to unique audio session corresponding to a certain audio application controls as audio playing module with voice playing function, this audio session is by the loudspeaker sounding, and this audio session can comprise one or more audio streams.Particularly, WASAPI supports that the volume of striding course audio session stream Audio Session and quiet setting are that WASAPI supports every application program volume control.The control setting of every application program volume promptly just is initialised during from system start-up at the control setting of each application program volume and can specifically can be realized by function IAudioSessionManager2, IAudioSessionControl2 among the WASAPI and ISimpleAudioVolume DLL (dynamic link library) by Sustainable Control.IAudioSessionManager2 is used for registering the arrival of audio session stream Audio Session or changing notice, and for example, when new audio program started, the program of having registered this interface will be notified.Then obtain the information of the Audio Session that application program is relevant therewith with IAudioSessionControl2, as Process identifier ProcessID, Session ID SessionID, session instance identifier SessionInstanceID, the unified identifier AudioSessionGUID of the audio session overall situation etc., at last with the volume of ISimpleAudioVolume and this Audio Session of information setting of obtaining previously and quiet.A common application program has an Audio Session at least, and every application program volume control just reaches the purpose of controlling application program volume by the volume of control Audio Session.Each audio stream AudioStream belongs to unique Audio Session, and Audio Session is discerned by unique audio session GUID, and the process ID of this GUID and application program is the unique AudioSteam of the common sign of Process ID.
Preferably, the audio frequency playing method of the embodiment of the invention utilizes the volume control interface of each application program correspondence that the sounding of each application program is set, exemplarily, can be whether sounding of controlling application program, the volume in the time of also can being the controlling application program sounding.The volume control interface that is utilized can be that operating system provides, if operating system does not provide the explicit volume control interface at each application program, also can realize that single utility program is carried out volume to be regulated by other modes.Such as the XP system, system does not support single program is provided with volume, but can utilize existing third party software IndieVolume can realize this function.
Preferably, the audio frequency playing method of the embodiment of the invention utilizes the volume control interface of the described first audio application correspondence that the described first audio application sounding is set.
Preferably, to utilize the volume control interface of each the application program correspondence in described a plurality of application program that other application program except that described first application program is set in described a plurality of application program quiet and the described first application program sounding is set for the audio frequency playing method of the embodiment of the invention.
In addition, for improve man-machine interaction can exclusive when quiet highlighted display foreground audio application window and/or flash the window border of display foreground audio application, with current just in the program of sounding, clearly tell the user current just in the program of sounding by highlighting.Exemplarily, can be by realizing the window of above-mentioned highlighted display foreground audio application except all deepenings of all places the shared zone of the window of foreground audio application.Exemplarily, can be by the window border of above-mentioned foreground audio application be arranged to eye-catching color such as redness, and flash demonstration, realize the above-mentioned window border that flashes the display foreground audio application.
In addition,, realize exclusively when quiet at the audio frequency playing method that utilizes the embodiment of the invention, can also indicate the volume of the foreground audio application of current exclusive silent mode of living in and current sounding with patterned mode as Fig. 6.Among Fig. 6, the left side is the icon of exclusive silent mode, and the right shows the volume rank of present procedure quantitatively with perpendicular lattice.
Fig. 7 show realize at the audio frequency playing method that utilizes the embodiment of the invention exclusive when quiet, the transition diagram of mute state.Mute state is that silent mode comprises: whole non-mute state, all audio application sounding all under this state; Whole mute state, under this state, all audio application are sounding not; Exclusive mute state has only foreground audio application sounding and all the other all backstage audio application sounding not under this state.As Fig. 7, under all mute state or whole non-mute state, when pressing quiet key and continuing to press, enter exclusive mute state above scheduled duration; Under exclusive mute state, the user presses quiet key, keeps the duration of down state to be no more than scheduled duration by common mode, can enter whole mute state; By the volume key of manual adjustments application program, audio playing apparatus can enter whole non-mute state when exclusive mute state or whole mute state.
Preferably, the method of the embodiment of the invention, be provided with described first application program as the first audio application sounding after, also comprise: when the user switches to second audio application with the audio application of current acquisition focus by described first audio application, it is quiet that described first audio application is set, and the described second audio application sounding is set.The process that the described second audio application sounding is set is not given unnecessary details at this with the above-mentioned process that the first audio application sounding is set.The exclusive silent mode of this pattern can be described as automatic exclusive silent mode, and whenever switch window, the window that is activated is set to pronunciation automatically, and the backstage program is all quiet.Like this, the user can realize that foreground program pronounces all the time, and need all not reset exclusive quietly when each switch window, has satisfied the demand of user under some special scenes.
Preferably, give prominence to the embodiment of the first application program sound for above-mentioned by distinguishing volume, it is whenever switch window, and the volume of the window that is activated is set to the volume greater than other application program automatically, and both volume differences are greater than predetermined threshold value.
Preferably, the method for the embodiment of the invention, for realizing exclusive quiet situation, after the described first audio application sounding was set, no matter user's switch window whether as long as this program is not closed, will pronounce always.Can think that this exclusive silent mode is common exclusive silent mode.In the specific implementation, can be by the illuminating state of quiet pilot lamp being distinguished common silent mode, common exclusive silent mode and automatic exclusive silent mode.For example, the color of utilizing quiet pilot lamp to light is distinguished above-mentioned different silent mode.Exemplarily, above-mentioned quiet pilot lamp is the LED lamp; Exemplarily, when entering silent mode, this lantern festival is lighted and is shown in red; When entering exclusive silent mode such as automatic exclusive silent mode, yellow is lighted and be shown as to this lantern festival.Entering automatic exclusive silent mode with the user is example, and under situation about lighting at amber light, if user's switch window, the window that obtains focus is set to monopolize the formula pronunciation automatically, and other all Automatic Program are quiet.
In specific implementation, with the notebook computer is example, can be similar to the pilot lamp of NumLock and CapsLock button, at keyboard or other positions the quiet indication LED lamp that a user indicates silent mode being set, is that the LED lamp of silent mode correspondence is just lighted or extinguished according to current mute state.Be to control on the hardware by embedded controller (EC, Embedded Controller).EC is the microcontroller of a single-chip, is used for managing and controlling some system equipments, and as keyboard, fan, battery etc.Usually all EC can be arranged in each computer, but the realization details of each manufacturer is not necessarily identical.In ThinkPad, button LED lamp is to be finished jointly by the button of EC/subcontrol interface (Keyboard/Auxiliary Controllerinterface) and LED control (LED Control) two modules, BIOS and operating system can be controlled lighting of LED lamp by the bit that is provided with in the EC register, extinguish and glimmer.For being achieved as follows of the quiet LED lamp of three-state: increase a quiet LED lamp of keyboard, issue keyboard commands by Keyboard/Auxiliary Controller interface and control extinguishing of lamp and light.Increase quiet zone bit among the EC, BIOS detects the look-at-me that quiet key is pressed, and just can light or extinguish quiet LED lamp when detecting this variation simultaneously.Exemplarily, this three-state is for extinguishing, light up as red light, lighting up as amber light.Since exclusive quiet be relevant with the state of audio application, so need in operating system, realize.Can increase background monitor and driver in the operating system, background monitor is used for surpassing scheduled duration and promptly sending instructions to driver down as 2 seconds detecting duration that quiet key presses, driver receive this instruction and with the EC communication, the corresponding quiet bit of EC is set to corresponding with exclusive silent mode, the LED lamp is promptly lit up as yellow, represents that current is exclusive silent mode.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the method for the above-mentioned fact is to instruct relevant hardware to finish by program, described program can be stored in the storage medium that a computing machine be can read, this program is when carrying out, comprise the steps: to determine in a plurality of windows of opening first window of current acquisition focus, described a plurality of windows of opening are corresponding to a plurality of application programs of current operation; Determine first application program of the described first window correspondence; Volume to described a plurality of application programs is adjusted, described first application program makes when can trigger sound, the volume of the sound of described first application triggers is greater than the volume of the sound of other application triggers except that described first application program in described a plurality of application programs, and the difference of the volume of the sound of other each application triggers in the volume of the sound of described first application triggers and the described a plurality of application program is greater than predetermined threshold value.
Described storage medium is as ROM/RAM, disk, CD etc.
On the other hand, provide a kind of computing equipment.Fig. 8 is the structural representation of the computing equipment of the embodiment of the invention.As Fig. 8, the computing equipment of this embodiment comprises: audio playing module 800, this audio playing module comprises again: first determination module 801, be used for determining at a plurality of windows of opening first window of current acquisition focus, described a plurality of windows of opening are corresponding to a plurality of application programs of current operation; Second determination module 802 is used for determining first application program of the described first window correspondence; Processing module 803, be used for the volume of described a plurality of application programs is adjusted, described first application program makes when can trigger sound, the volume of the sound of described first application triggers is greater than the volume of the sound of other application triggers except that described first application program in described a plurality of application programs, and in the volume of the sound of described first application triggers and the described a plurality of application program difference of the volume of the sound of other application triggers except that described first application program greater than predetermined threshold value.
Preferably, in the computing equipment of this embodiment, the volume of the sound of other application triggers in described a plurality of application programs except that described first application program is: the volume of the sound that the audio application in described a plurality of application programs except that described first application program triggers.
Preferably, in the computing equipment of this embodiment, described first application program is an audio application.
Preferably, in the computing equipment of this embodiment, described processing module comprises:
The quiet module that is provided with, it is quiet to be used to that system is set;
Sounding is provided with module, is used to be provided with the described first application program sounding.
Preferably, described sounding is provided with module, further utilizes the volume control interface of the described first application program correspondence that the described first application program sounding is set.
Preferably, the computing equipment of this embodiment also comprises:
Hard button or virtual key, described processing module triggers described audio playing module by described hard button or virtual key.
Preferably, in the computing equipment of this embodiment, described processing module also comprises:
Trigger module is used for triggering described audio playing module judging that described hard button or virtual key are pressed and the state that keeps being pressed when surpassing predetermined duration.
Preferably, the computing equipment of this embodiment also comprises:
Handover module, be used for after judging described first window of user and switching to second window current acquisition focus, determine second application program of the described second window correspondence, and the volume of described a plurality of application programs adjusted, described second application program makes when can trigger sound, the volume of the sound of described second application triggers is greater than the volume of the sound of other application triggers except that described second application program in described a plurality of application programs, and in the volume of the sound of described second application triggers and the described a plurality of application program difference of the volume of the sound of other application triggers except that described second application program greater than predetermined threshold value.
Preferably, the computing equipment of this embodiment also comprises:
Indicating module is used to utilize the pilot lamp sign that sets in advance to trigger described audio playing module.
Exemplarily, aforementioned calculation equipment can be the computing machine that is provided with above-mentioned audio playing module, mobile phone, MP3 etc.
Another aspect provides a kind of computing machine, comprise audio playing module, this audio playing module comprises again:: first determination module, be used for first window in the definite current acquisition focus of a plurality of windows of opening, described a plurality of windows of opening are corresponding to a plurality of application programs of current operation; Second determination module is used for determining first application program of the described first window correspondence; Processing module, be used for the volume of described a plurality of application programs is adjusted, described first application program makes when can trigger sound, the volume of the sound of described first application triggers is greater than the volume of the sound of other application triggers except that described first application program in described a plurality of application programs, and in the volume of the sound of described first application triggers and the described a plurality of application program difference of the volume of the sound of other application triggers except that described first application program greater than predetermined threshold value.
Preferably, this computing machine is a notebook computer.
Another aspect, a kind of audio playing apparatus is provided, comprises audio playing module, this audio playing module comprises again: first determination module, be used for determining at a plurality of windows of opening first window of current acquisition focus, described a plurality of windows of opening are corresponding to a plurality of application programs of current operation; Second determination module is used for determining first application program of the described first window correspondence; Processing module, be used for the volume of described a plurality of application programs is adjusted, described first application program makes when can trigger sound, the volume of the sound of described first application triggers is greater than the volume of the sound of other application triggers except that described first application program in described a plurality of application programs, and the difference of the volume of the sound of other each application triggers in the volume of the sound of described first application triggers and the described a plurality of application program is greater than predetermined threshold value.
Preferably, the audio playing module of the audio playing apparatus of the embodiment of the invention can have above-mentioned various features with above-mentioned computing equipment sound intermediate frequency playing module, does not repeat them here.
The above is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the described principle of the embodiment of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (12)

1. an audio frequency playing method is characterized in that, comprises the steps:
Determine first window of current acquisition focus in a plurality of windows of opening, described a plurality of windows of opening are corresponding to a plurality of application programs of current operation;
Determine first application program of the described first window correspondence;
Volume to described a plurality of application programs is adjusted, described first application program makes when can trigger sound, the volume of the sound of described first application triggers is greater than the volume of the sound of other application triggers except that described first application program in described a plurality of application programs, and in the volume of the sound of described first application triggers and the described a plurality of application program difference of the volume of the sound of other application triggers except that described first application program greater than predetermined threshold value.
2. audio frequency playing method according to claim 1 is characterized in that,
Described first application program is an audio application;
The volume of the sound of other application triggers in described a plurality of application program except that described first application program is: the volume of the audio application in described a plurality of application programs except that described first application program.
3. audio frequency playing method according to claim 1 and 2 is characterized in that, described volume to described a plurality of application programs is adjusted and comprised:
It is quiet that system is set;
The described first application program sounding is set.
4. audio frequency playing method according to claim 3 is characterized in that, utilizes the volume control interface of the described first application program correspondence that the described first application program sounding is set.
5. audio frequency playing method according to claim 1 and 2 is characterized in that, described volume to described a plurality of application programs is adjusted and comprised:
It is quiet and the described first application program sounding is set that other application program except that described first application program is set in described a plurality of application program.
6. audio frequency playing method according to claim 5, it is characterized in that it is quiet and the described first application program sounding is set to utilize the volume control interface of each the application program correspondence in described a plurality of application program that other application program except that described first application program is set in described a plurality of application program.
7. audio frequency playing method according to claim 1 is characterized in that, before determining described first window, also comprises:
Trigger the step of described voice playing.
8. method according to claim 1 is characterized in that, after the volume of described a plurality of application programs is adjusted, also comprises the step that highlights described first application program.
9. method according to claim 1 is characterized in that, after the volume of described a plurality of application programs is adjusted, also comprises:
When the user switches to second window with described first window of current acquisition focus, determine second application program of the described second window correspondence, and the volume of described a plurality of application programs adjusted, described second application program makes when can trigger sound, the volume of the sound of described second application triggers is greater than the volume of the sound of other application triggers except that described second application program in described a plurality of application programs, and in the volume of the sound of described second application triggers and the described a plurality of application program difference of the volume of the sound of other application triggers except that described second application program greater than predetermined threshold value.
10. a computing equipment is characterized in that, comprises audio playing module, and described audio playing module comprises again:
First determination module is used for first window in the definite current acquisition focus of a plurality of windows of opening, and described a plurality of windows of opening are corresponding to a plurality of application programs of current operation;
Second determination module is used for determining first application program of the described first window correspondence;
Processing module, be used for the volume of described a plurality of application programs is adjusted, described first application program makes when can trigger sound, the volume of the sound of described first application triggers is greater than the volume of the sound of other application triggers except that described first application program in described a plurality of application programs, and the difference of the volume of the sound of other application triggers outside first application program described in the volume of the sound of described first application triggers and the described a plurality of application program is greater than predetermined threshold value.
11. computing equipment according to claim 10 is characterized in that, described processing module comprises:
The quiet module that is provided with, it is quiet to be used to that system is set;
Sounding is provided with module, is used to be provided with the described first application program sounding.
12. computing equipment according to claim 10 is characterized in that,
Described sounding is provided with module, further utilizes the volume control interface of the described first application program correspondence that the described first application program sounding is set.
CN200910235280.3A 2009-09-29 2009-09-29 A kind of audio frequency playing method and a kind of calculating equipment Active CN102033776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910235280.3A CN102033776B (en) 2009-09-29 2009-09-29 A kind of audio frequency playing method and a kind of calculating equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910235280.3A CN102033776B (en) 2009-09-29 2009-09-29 A kind of audio frequency playing method and a kind of calculating equipment

Publications (2)

Publication Number Publication Date
CN102033776A true CN102033776A (en) 2011-04-27
CN102033776B CN102033776B (en) 2016-08-17

Family

ID=43886710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910235280.3A Active CN102033776B (en) 2009-09-29 2009-09-29 A kind of audio frequency playing method and a kind of calculating equipment

Country Status (1)

Country Link
CN (1) CN102033776B (en)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013037225A1 (en) * 2011-09-15 2013-03-21 腾讯科技(深圳)有限公司 Audio and video communication method, system and client
CN103456332A (en) * 2012-05-28 2013-12-18 富泰华工业(深圳)有限公司 Audio playing device and volume adjusting method
CN103577060A (en) * 2012-08-07 2014-02-12 联想(北京)有限公司 Data processing method and electronic equipment
CN104602415A (en) * 2015-01-23 2015-05-06 合肥联宝信息技术有限公司 Dark application method and device for terminal
CN104714725A (en) * 2011-12-31 2015-06-17 北京奇虎科技有限公司 Display method and device of floating window
CN104793916A (en) * 2014-01-20 2015-07-22 中兴通讯股份有限公司 Method and system for carrying out sound control over split screen terminal
CN104980801A (en) * 2015-06-05 2015-10-14 安一恒通(北京)科技有限公司 Method and device for processing audio data/video data
CN105100871A (en) * 2015-07-27 2015-11-25 四川长虹电器股份有限公司 Mute control method of intelligent television under one-screen multi-window mode
CN106027756A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Volume management device and method
CN106303816A (en) * 2015-05-25 2017-01-04 联想(北京)有限公司 A kind of information control method and electronic equipment
CN106445450A (en) * 2016-09-08 2017-02-22 乐视控股(北京)有限公司 Volume adjusting method and apparatus of mobile terminal
CN106970773A (en) * 2015-11-10 2017-07-21 谷歌公司 Automated audio horizontal adjustment during media item presentation
CN107040815A (en) * 2017-05-09 2017-08-11 微鲸科技有限公司 Multimedia method and its device are played in a kind of many applications jointly
CN107145327A (en) * 2017-04-10 2017-09-08 北京猎户星空科技有限公司 A kind of audio frequency playing method, device and smart machine
CN107302724A (en) * 2016-04-14 2017-10-27 北京搜狗科技发展有限公司 A kind of video playing control method, device and electronic equipment
CN107343080A (en) * 2016-12-27 2017-11-10 深圳市朵唯科技有限公司 A kind of auto dialing and the method that voice data can be transmitted in communication process
CN107832034A (en) * 2017-10-26 2018-03-23 深圳市沃特沃德股份有限公司 Audio play control method and device
CN107870759A (en) * 2016-09-26 2018-04-03 中兴通讯股份有限公司 A kind of audio control method and device
CN107968960A (en) * 2016-10-20 2018-04-27 中兴通讯股份有限公司 A kind of backstage audio and video playing control method and device
WO2019033434A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Volume control method and apparatus, storage medium, and mobile terminal
CN110730384A (en) * 2018-07-17 2020-01-24 腾讯科技(北京)有限公司 Webpage control method and device, terminal equipment and computer storage medium
WO2021006705A1 (en) * 2019-07-10 2021-01-14 Samsung Electronics Co., Ltd. Electronic device and method for outputting audio signal
CN112433697A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Resource display method and device, electronic equipment and storage medium
CN113377328A (en) * 2021-06-24 2021-09-10 广州朗国电子科技有限公司 Sound following method and device in all-in-one machine multi-window mode and storage medium
CN114079822A (en) * 2020-08-21 2022-02-22 聚好看科技股份有限公司 Display device
CN114138226A (en) * 2021-11-30 2022-03-04 重庆长安汽车股份有限公司 Vehicle audio mixing method and device, controller and vehicle
CN114302247A (en) * 2021-04-30 2022-04-08 海信视像科技股份有限公司 Display device and multi-window audio parameter adjusting method
WO2022143891A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Focal point synchronization method and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819451A (en) * 2005-12-28 2006-08-16 英保达资讯(天津)有限公司 Method for protecting hearing by adjusting volume based on medium player
CN101102564A (en) * 2007-07-25 2008-01-09 中兴通讯股份有限公司 A method for controlling mobile phone to play music

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2020088A2 (en) * 2006-05-22 2009-02-04 Nike International Ltd. User interface for remotely controlling a digital music player

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819451A (en) * 2005-12-28 2006-08-16 英保达资讯(天津)有限公司 Method for protecting hearing by adjusting volume based on medium player
CN101102564A (en) * 2007-07-25 2008-01-09 中兴通讯股份有限公司 A method for controlling mobile phone to play music

Cited By (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9258526B2 (en) * 2011-09-15 2016-02-09 Tencent Technology (Shenzhen) Company Limited Method and system for audio/video communication, and client thereof
CN103002245A (en) * 2011-09-15 2013-03-27 腾讯科技(深圳)有限公司 Audio and video communication method and audio and video communication system
US20140192139A1 (en) * 2011-09-15 2014-07-10 Tencent Technology (Shenzhen) Company Limited Method and system for audio/video communication, and client thereof
WO2013037225A1 (en) * 2011-09-15 2013-03-21 腾讯科技(深圳)有限公司 Audio and video communication method, system and client
CN103002245B (en) * 2011-09-15 2017-03-22 腾讯科技(深圳)有限公司 Audio and video communication method and audio and video communication system
CN104714725B (en) * 2011-12-31 2018-10-09 北京奇虎科技有限公司 A kind of display methods and device of suspended window
CN104714725A (en) * 2011-12-31 2015-06-17 北京奇虎科技有限公司 Display method and device of floating window
CN103456332A (en) * 2012-05-28 2013-12-18 富泰华工业(深圳)有限公司 Audio playing device and volume adjusting method
CN103577060B (en) * 2012-08-07 2017-11-28 联想(北京)有限公司 A kind of data processing method and electronic equipment
CN103577060A (en) * 2012-08-07 2014-02-12 联想(北京)有限公司 Data processing method and electronic equipment
CN104793916A (en) * 2014-01-20 2015-07-22 中兴通讯股份有限公司 Method and system for carrying out sound control over split screen terminal
CN104602415A (en) * 2015-01-23 2015-05-06 合肥联宝信息技术有限公司 Dark application method and device for terminal
CN106303816A (en) * 2015-05-25 2017-01-04 联想(北京)有限公司 A kind of information control method and electronic equipment
CN106303816B (en) * 2015-05-25 2019-12-24 联想(北京)有限公司 Information control method and electronic equipment
CN104980801A (en) * 2015-06-05 2015-10-14 安一恒通(北京)科技有限公司 Method and device for processing audio data/video data
CN105100871A (en) * 2015-07-27 2015-11-25 四川长虹电器股份有限公司 Mute control method of intelligent television under one-screen multi-window mode
CN106970773B (en) * 2015-11-10 2020-06-16 谷歌有限责任公司 Automatic audio level adjustment during presentation of media items
CN106970773A (en) * 2015-11-10 2017-07-21 谷歌公司 Automated audio horizontal adjustment during media item presentation
US10656901B2 (en) 2015-11-10 2020-05-19 Google Llc Automatic audio level adjustment during media item presentation
CN107302724A (en) * 2016-04-14 2017-10-27 北京搜狗科技发展有限公司 A kind of video playing control method, device and electronic equipment
CN106027756A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Volume management device and method
CN106445450A (en) * 2016-09-08 2017-02-22 乐视控股(北京)有限公司 Volume adjusting method and apparatus of mobile terminal
CN107870759A (en) * 2016-09-26 2018-04-03 中兴通讯股份有限公司 A kind of audio control method and device
CN107968960A (en) * 2016-10-20 2018-04-27 中兴通讯股份有限公司 A kind of backstage audio and video playing control method and device
CN107343080A (en) * 2016-12-27 2017-11-10 深圳市朵唯科技有限公司 A kind of auto dialing and the method that voice data can be transmitted in communication process
CN107145327A (en) * 2017-04-10 2017-09-08 北京猎户星空科技有限公司 A kind of audio frequency playing method, device and smart machine
CN107040815A (en) * 2017-05-09 2017-08-11 微鲸科技有限公司 Multimedia method and its device are played in a kind of many applications jointly
WO2019033434A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Volume control method and apparatus, storage medium, and mobile terminal
CN110730947A (en) * 2017-08-18 2020-01-24 Oppo广东移动通信有限公司 Volume control method and device, storage medium and mobile terminal
WO2019080214A1 (en) * 2017-10-26 2019-05-02 深圳市沃特沃德股份有限公司 Audio playing control method and apparatus, and vehicle-mounted system
CN107832034A (en) * 2017-10-26 2018-03-23 深圳市沃特沃德股份有限公司 Audio play control method and device
CN110730384B (en) * 2018-07-17 2022-12-23 腾讯科技(北京)有限公司 Webpage control method and device, terminal equipment and computer storage medium
CN110730384A (en) * 2018-07-17 2020-01-24 腾讯科技(北京)有限公司 Webpage control method and device, terminal equipment and computer storage medium
US11490184B2 (en) * 2019-07-10 2022-11-01 Samsung Electronics Co., Ltd. Electronic device and method for outputting audio signal
WO2021006705A1 (en) * 2019-07-10 2021-01-14 Samsung Electronics Co., Ltd. Electronic device and method for outputting audio signal
CN114079822A (en) * 2020-08-21 2022-02-22 聚好看科技股份有限公司 Display device
CN112433697A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Resource display method and device, electronic equipment and storage medium
CN112433697B (en) * 2020-11-30 2023-02-28 上海米哈游天命科技有限公司 Resource display method and device, electronic equipment and storage medium
WO2022143891A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Focal point synchronization method and electronic device
CN114302247A (en) * 2021-04-30 2022-04-08 海信视像科技股份有限公司 Display device and multi-window audio parameter adjusting method
CN113377328A (en) * 2021-06-24 2021-09-10 广州朗国电子科技有限公司 Sound following method and device in all-in-one machine multi-window mode and storage medium
CN114138226A (en) * 2021-11-30 2022-03-04 重庆长安汽车股份有限公司 Vehicle audio mixing method and device, controller and vehicle
CN114138226B (en) * 2021-11-30 2023-05-23 重庆长安汽车股份有限公司 Car machine audio mixing method and device, controller and car

Also Published As

Publication number Publication date
CN102033776B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN102033776A (en) Audio playing method and computing device
CN103257873B (en) The control method of a kind of intelligent terminal and system
WO2019129299A1 (en) Intelligent control panel, and control method and control apparatus thereof
CN104238759A (en) Method and device for controlling terminal through physical keys
CN102984478B (en) The method and apparatus for controlling television set
CN103067784B (en) A kind of virtual key method and television set based on touch-screen television set
CN104598112B (en) Button interaction method and apparatus
CN105652671B (en) The setting method and device of smart machine operating mode
CN103576834A (en) Power saving control method and electronic device supporting the same
CN202871290U (en) Apparatus for automatic switching of original singing and vocal accompaniment of karaoke equipment
CN202872899U (en) Telephone for automatically adjusting incoming call prompt according to noise and ambient light
CN106385574B (en) The switching method and switching device of a kind of projection device and optical projection system operating mode
KR20130068313A (en) Method of displaying graphic user interface using time difference and terminal supporting the same
WO2016161877A1 (en) Method and system for determining application program currently playing audio content
CN101365076B (en) Simplified setting method for television set remote controller and apparatus thereof
KR100704622B1 (en) Method and apparatus for providing user interface for multistreaming audio control
CN104698932B (en) Apparatus control method and device
CN103533497A (en) Sound channel switching device and sound channel switching method of stereo playing system
CN104202649A (en) Method for operating multiple applications of intelligent television synchronously
CN105575390A (en) Voice control method and device
CN105323612A (en) Key reuse method and device of TV
CN105959473A (en) Screen brightness adjusting method and device
CN108469894A (en) Voice recognition chip control method, device and system
CN103685708A (en) Terminal device and control method thereof
CN202750146U (en) Intelligent telephone capable of automatically adjusting incoming call prompt according to noise and ambient light

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant