![]() The calculated value will be directly set to AudioTrack, but the volume in AudioTrack should be a percentage of 0~1.0f. 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.ģ. 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. 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. ![]() 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. The class of playing ringtones, I didn't look at it specifically, and finally it was played through MediaPlayer. 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. I hope I die in the computer room, and I don’t want to bow in front of the boss 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. Mercedes-Benz and BMW are expensive, bus programmers. ![]() Others laughed at me and I was crazy, I laughed at my own fate if youĭon't see beautiful girls all over the street, which one belongs to the programmer. ![]() #Tonegenerator android tones play at same time code#.#Tonegenerator android tones play at same time software#.#Tonegenerator android tones play at same time generator#. ![]()
0 Comments
Leave a Reply. |