Summary of the invention
The embodiment of the invention provides a kind of audio-frequence player device, with shielding because the unlatching of power amplifier or close and the sonic boom that produces at audio-frequence player device.This equipment comprises:
Power amplifier;
Voltage generation circuit is for generation of first direct voltage;
Selector switch comprises first end, second end and output, and described first end and described voltage generation circuit are coupled, and the output of described second end and described power amplifier is coupled, and described output is connected to audio signal output;
Select control module, be used for when described power amplifier is about to cut out, the output of controlling described selector switch links to each other with described first end, and, when the DC component of output was stablized after power amplifier is opened, the output of controlling described selector switch was connected to described second end;
The direct current signal amplitude that produces at described second end when described first direct voltage is in opening with described power amplifier is identical.
The embodiment of the invention also provides a kind of method of eliminating sonic boom, comprising:
Judge whether power amplifier is about to open;
If power amplifier is about to open, then controls audio frequency output and be connected to voltage generation circuit;
When the output level after power amplifier is opened reached and stablizes, the output of control audio frequency was connected to power amplifier;
Judge whether power amplifier is about to close;
If power amplifier is about to cut out, then controls audio frequency output and be connected to voltage generation circuit;
Wherein, described voltage generation circuit is for generation of first direct voltage, and described first direct voltage is direct current signal amplitude level signal same corresponding when being in opening with described power amplifier.
The audio-frequence player device that the embodiment of the invention provides and method, when power amplifier is about to open or cuts out, the output of control audio frequency links to each other with voltage generation circuit, DC level saltus step on the audio playing apparatus when effectively having shielded the power amplifier switch, effectively eliminate sonic boom, improved user's experience.
Embodiment
Below in conjunction with description of drawings the specific embodiment of the present invention.
Embodiment one
Present embodiment is the embodiment of device disclosed by the invention.As shown in Figure 1, present embodiment comprises following module:
Power amplifier 101 is used for audio signal is carried out power amplification, the audio signal after power output is amplified;
This module is amplified audio signal in order to output, this module except the interchange level of output audio signal correspondence, the direct current signal of correspondence when going back output power amplifier 101 and being in opening.
Present embodiment is not done restriction to type and the realization of power amplifier 101, and any power amplifier all can.In the prior art, when power amplifier 101 cut out from being opened to, the direct current signal of the output of power amplifier 101 can produce saltus step, if audio playing apparatus is directly connect the output of power amplifier, then can produce sonic boom.
Voltage generation circuit 102, corresponding direct current signal amplitude level signal same when being in opening with power amplifier 101;
Voltage generation circuit 102 can produce a stable voltage, and the amplitude of the direct current signal that the input that is coupled with it at selector switch 103 when the amplitude of this voltage is in opening with power amplifier 101 produces is identical.The circuit of any one bias stabilization all can serve as this circuit, and the voice output via design that for example mobile phone can be under the talking state is this stable voltage of output, thus with the voice output path of mobile phone as described voltage generation circuit 102.
Selector switch 103;
Two selection branch roads of this switching device are coupled to power amplifier 101 and voltage generation circuit 102 respectively, and output then is connected to audio signal output.This switch can switch between power amplifier 101 and voltage generation circuit 102 back and forth, when it connects power amplifier 101, power amplifier 101 is coupled to audio signal output, and when it connected voltage generation circuit 102, voltage generation circuit 102 was coupled to audio signal output.
Select control module 104, be used for when power amplifier 101 is about to open or is about to cut out, control selector switch 103 connects the described branch road (hereinafter referred to as first end) that is coupled with voltage generation circuit 102, and, when power amplifier 101 was opened the level equalization of back output, control selector switch 103 connected the described branch road (hereinafter referred to as second end) that is coupled with output power amplifier 101.
As previously mentioned, when power amplifier 101 opens or cuts out, a saltus step can take place in the DC level of output, when this module is about to open or closes at power amplifier 101, also be the saltus step of DC level at hand the time, make the output of selector switch 103 connect first end, this moment, the DC level of audio signal output remained unchanged, still be stable, by the time during the level equalization of power amplifier 101 output, switch to second end again.
In some embodiments of the invention, selector switch 103 is designed to the state that when power amplifier 101 cuts out its output remains connected to first end always, select this moment 104 need of control module when being about to open, to control selector switch 103 connections second end and get final product, and need not when being about to open, also so do.
In order to be illustrated more clearly in the working method of selecting control module 104, select the control order of control module 104 below in conjunction with the sequential chart explanation.As shown in Figures 2 and 3, in Fig. 2 and Fig. 3, output and audio signal output for power amplifier, our its DC component of only drawing, and select first end and its output conducting of control signal selector switch 103 when high level of control module 104 outputs, its second end and its output conducting when low level.
What Fig. 2 represented is that power amplifier is from being closed to the sight of unlatching.Power amplifier 101 when closing, output be low level, first end of selector switch 103 and audio signal output conducting this moment, audio signal output be the level of voltage generation circuit.Certainly, this moment, selector switch 103 also can connect second end.As shown in Figure 2, power amplifier 101 is opened, and its output level (being generally Millisecond) in an extremely short time rises to high level, and this moment, selector switch 103 was in the state of first end and audio signal output conducting.If selector switch 103 just was in this state before power amplifier 101 is opened, then selector switch 103 need only keep this state to get final product at this moment; If what selector switch 103 connected before power amplifier 101 is opened is second end, then this moment, it should switch to the state that is connected with first end.When the output level of power amplifier 101 reaches when stablizing, control signal jumps to low level, and control selector switch 103 switches to second end, audio signal output this moment be the signal of power amplifier output.Because when the rising edge of power amplifier output level arrives, voltage generation circuit is coupled in audio signal output, and the rising edge of power amplifier output level can not be reflected in the audio signal output, does not therefore have sonic boom in the audio frequency of output.
What Fig. 3 represented is that power amplifier is from being opened to the sight of cutting out.Power amplifier 101 when opening, output be high level, this moment selector switch 103 second end and audio signal output conducting, audio signal output be the level of power amplifier output.As shown in the figure, power amplifier 101 cuts out, its output level can (being generally Millisecond) drop to low level in an extremely short time, be about to close at it, when output level is still stablized, control signal jumps to high level, and control selector switch 103 switches to first end, and what this moment, audio signal was exported is the level of voltage generation circuit.Because when the trailing edge of power amplifier output level arrives, voltage generation circuit is coupled in audio signal output, and the trailing edge of power amplifier output level can not be reflected in the audio signal output, does not therefore have sonic boom in the audio frequency of output.
It is evident that, select the control signal of control module 104 outputs to be not limited to above-mentioned form.This signal can be first end and its output conducting that makes selector switch 103 when low level fully, its second end and its output conducting when high level.More usually, the switching that can come triggering selection switch 103 with rising edge and/or the trailing edge of level.
In one embodiment of the invention, select control module to comprise with lower module:
Prediction module 1041 is for the unlatching moment and/or the close moment of predicted power amplifier 101;
The opening and closing of predicted power amplifier can realize by the time that monitoring plays sound.As a rule, audio-frequence player device can obtain the duration of audio files and the time of having play at present in the file that plays sound, thus, just can know also when audio files plays end, and when playing end, power amplifier will cut out.
In another embodiment of the present invention, the opening and closing of predicted power amplifier are to realize by the signal of monitoring unlatching power amplifier.When audio-frequence player device is about to begin to play sound, its transmit control module 100 at first sends an information to this module, postponing one default period then produces the signal of opening power amplifier again, can realize that so just prediction module 1041 knows that in advance power amplifier 101 is about to open, in other words, the moment that prediction module receives aforementioned information adds aforementioned preset delay time, namely is the unlatching moment of power amplifier.Certain this implementation is closing applicable to power amplifier also.The benefit of this implementation is that when power amplifier cuts out suddenly for example the user stops the sound broadcast by force, and prediction module 1041 still can dope the opening and closing of power amplifier 101.
A kind of simple deformation of above-mentioned implementation is when transmit control module 100 sends described information, selects control module 104 to make the action of switching immediately.
In some embodiments of the invention, selector switch 103 is designed to the state that when power amplifier 101 cuts out its output remains connected to first end always, the unlatching that this moment, prediction module 1041 needn't the predicted power amplifier, it is closed and gets final product only to need prediction.
Control module 1042, be used for predicting power amplifier 101 when being about to open or closing when prediction module 1041, the output that produces control selector switch 103 is connected to the control signal of described first end, and, when the DC component of output reached and stablizes after power amplifier 101 is opened, the output that produces control selector switch 103 was connected to the control signal of described second end.
Here " being about to " can be understood as temporal certain lead, and this lead can set in advance, and as a rule, hears the obvious interruption of sound for fear of the user, and this lead operated by rotary motion gets very short, for example is Millisecond.The form of control signal as previously mentioned, can be first end and its output conducting that when high level, makes selector switch 103, when low level, make its second end and its output conducting, also can be first end and its output conducting that when low level, makes selector switch 103, its second end and its output conducting when high level.More usually, the switching that can come triggering selection switch 103 with rising edge and/or the trailing edge of level.When the output level after power amplifier 101 is opened reached and stablizes, this module produced the control signal that control selector switch 103 is connected to second end.It is stable when decision level reaches, can realize by default time of delay, namely set this module and just produce the control signal that control selector switch 103 is connected to second end in the 101 unlatching back delay regular hours of power amplifier, open the back level and reach and stablize the required time and get final product being decided to be power amplifier 101 this time of delay, this preset delay time generally can be set very shortly, be Millisecond for example, stable because the output level of power amplifier 101 can reach in the time of Millisecond.In addition, delay is very short also can make the user can not aware the interruption of sound.
An alternative embodiment of the invention is by monitoring decision level when to reach stable in real time to the output level of power amplifier 101.In this embodiment, audio-frequence player device also comprises monitoring modular 105, is used for the output level of monitoring power amplifier 101.Behind the stabilizing output level after monitoring modular 105 monitors power amplifier 101 unlatchings, control module 1042 can produce the control signal that control selector switch 103 is connected to power amplifier 101.
Embodiment two
Present embodiment is the embodiment about the method for eliminating sonic boom.As shown in Figure 5, present embodiment may further comprise the steps:
501, judge whether power amplifier is about to open or close;
502, if power amplifier is about to open or cut out, then controls audio frequency output and be connected to voltage generation circuit;
503, when the output level after power amplifier is opened reached and stablizes, the output of control audio frequency was connected to power amplifier;
The direct current signal amplitude level signal same of correspondence when here, described voltage generation circuit is in opening for generation of a described power amplifier.
As shown in Figure 6, in one embodiment of the invention, before aforesaid step 501, increase a step:
600, the unlatching of predicting described power amplifier constantly or close moment;
Aforesaid step 501 is specially:
651, judge whether to arrive in advance and open constantly or the moment of one scheduled time of close moment in described; If then execution in step 502.
This embodiment's
As shown in Figure 7, in another embodiment of the present invention, before aforesaid step 501, increase step:
700, begin to play or when finishing the instruction of audio plays receiving, produce power amplifier and be about to the information of opening or closing;
701, control described power amplifier delay scheduled time after producing described information and open or close;
Aforesaid step 501 is specially:
751, judge whether to have produced described information.
More than the specific implementation of each method embodiment can not repeat them here with reference to embodiment one.
In addition; the technical characterictic that illustrates respectively among each technology, system, device, method and each embodiment that illustrates respectively among the above embodiment can make up; thereby form other the module do not break away within the spirit and principles in the present invention; method, device, system and technology; the module that these combine according to the record of the embodiment of the invention; method, device, system and technology are all within protection scope of the present invention.
Obviously, those skilled in the art should be understood that, above-mentioned each unit of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and be carried out by calculation element.Perhaps they are made into each circuit module respectively, perhaps a plurality of unit in them or step are made into single circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
More than being preferred embodiment of the present invention, is not for limiting protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.