![]() Programmers write programs, exchange programs and took the drinks.Īwakening only sits on the Internet, and drunk still comes to sleep offline ĭrunk sober day after day, online and offline year after year. Office in the Scriptorium, offices of programmers It is said that the Tone sound generated by hardware is hard to hear, so it is generated by software.Īt the end of the article to share some of the programmers joke Quotations: Programmer limerick I originally thought that there would be a separate hardware to handle the Tone sound, but I finally found that it was automatically generated and processed through AudioTrack. ![]() The class of playing ringtones, I didn't look at it specifically, and finally it was played through MediaPlayer. After searching again, it was found that it was originally provided to the AudioPolicyManagerBase application to play the Tone tone asynchronously.Īfter the disposal of AudioCommandThread, it is finally handed over to ToneGenerator for disposal. This is weird, and there is no corresponding interface provided in AudioSystem, which is even more weird, is it not prepared for the surface people to use. I originally thought that this thread was specifically dealing with Tone audio equipment, but according to the following look, it originally went directly to AudioTrack. mTonePlaybackThread in AudioPolicyService Why do you need such a formula? Is it a bug? It should be tested! !Īccording to the frequency, length and other information of the defined Tone factor, audio data is generated, and finally handed over to AudioTrack for playback.ģ. The calculated value will be directly set to AudioTrack, but the volume in AudioTrack should be a percentage of 0~1.0f. * tone a tone code from playTone(int tone) * Tone sound will only be played when Tone is selected in the settings and it is not in silent mode. * Play the tone of TONE_LENGTH_MS milliseconds.
0 Comments
Leave a Reply. |