{"id":205230,"date":"2021-03-01T11:30:02","date_gmt":"2021-03-01T11:30:02","guid":{"rendered":"http:\/\/itteacheritfreelance.hk\/wordpress\/?guid=2cd4d06ffb880903d61deaa5d00de2ef"},"modified":"2021-03-01T11:30:02","modified_gmt":"2021-03-01T11:30:02","slug":"android-12-features-we-love-haptics-and-audio-can-work-together","status":"publish","type":"post","link":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/2021\/03\/01\/android-12-features-we-love-haptics-and-audio-can-work-together\/","title":{"rendered":"Android 12 features we love: Haptics and audio can work together"},"content":{"rendered":"<p class=\"syndicated-attribution\"><meta name= \\\"keywords \\\" content= \\\"\u96fb\u5b50\u8a08\u7b97\u6a5f, \u6559\u80b2, IT \u96fb\u8166\u73ed,\u96fb\u8166\u88dc\u7fd2\uff0c \u96fb\u8166\u73ed\uff0c \u5bb6\u6559\uff0c \u79c1\u4eba\u8001\u5e2b\uff0c \u8cc7\u8a0a\u6280\u8853\uff0c \u7a0b\u5e8f\u8a2d\u8a08\uff0c \u96fb\u5b50\u8a08\u7b97\u6a5f\uff0c \u904a\u6232\uff0c \u860b\u679c\uff0c \u96fb\u5f71\uff0c \u8a08\u7b97\u6a5f\uff0c\u7de8\u78bc\uff0c Java\uff0c C\/C++\uff0c JavaScript\uff0c PHP\uff0c HTML\uff0c CSS\uff0c MySQL\uff0c mobile\uff0c Android\uff0c \u52d5\u6f2b\uff0c Python\uff0c teacher\uff0c \u88dc\u7fd2\uff0c \u96fb\u8166\u88dc\u7fd2 \u8cc7\u8a0a, \u7535\u5b50\u8ba1\u7b97\u673a, IT ,Game, apple, movie, Computer,student,Java,\u6559\u80b2, ,\u5b66\u751f, \u5b66\u4e60, learn, \u6559\u5b66,  Android, apple,anime, animation, \u4fe1\u606f\u6280\u672f, \u7a0b\u5e8f\u8bbe\u8ba1, \u79fb\u52a8\u7535\u8bdd, \u8cc7\u8a0a\u79d1\u6280,Game, Jeu, Juego,Call Of Duty ,\u4f7f\u547d\u53ec\u559a , \u6e38\u620f, \u7535\u5b50\u6e38\u620f,, \u591a\u4eba\u7535\u5b50\u6e38\u620f, \u7f51\u7edc\u6e38\u620f\uff0conline\uff0conline game, \u624b\u673a\u6e38\u620f, mobile \\\"><\/p>\n<div class=\"field field-name-body field-type-text-with-summary field-label-hidden\">\n<div class=\"field-items\">\n<div class=\"field-item even\">\n<p><a href=\"https:\/\/www.androidcentral.com\/android-12-features-we-love-haptics-and-audio-can-work-together\" title=\"Android 12 features we love: Haptics and audio can work together\" georiot-ignore=\"true\" class=\"norewrite\"><img decoding=\"async\" src=\"https:\/\/www.androidcentral.com\/sites\/androidcentral.com\/files\/styles\/large_wm_brb\/public\/article_images\/2021\/02\/android-12-ac-homepage-1.jpg\"><\/a><\/p>\n<p class=\"intro\">Android 12 can make your phone dance to the music.<\/p>\n<p><a href=\"https:\/\/www.androidcentral.com\/android-12\" georiot-ignore=\"true\" class=\"norewrite\">Android 12<\/a> has plenty of features to explore, but one of the coolest may be the ability for your phone&#8217;s haptic motors to work in tandem with an audio stream. Vibration is something every Android phone \u2014 from the <a href=\"https:\/\/www.androidcentral.com\/best-android-phones\" georiot-ignore=\"true\" class=\"norewrite\">best phone<\/a> to the most <a href=\"https:\/\/www.androidcentral.com\/best-android-phones-under-300\" georiot-ignore=\"true\" class=\"norewrite\">budget-friendly phone<\/a> \u2014 already has and every phone can also play sounds through its external speaker. Pairing the two might lead to some really innovative stuff!<\/p>\n<h2>What are haptics?<\/h2>\n<p><a href=\"https:\/\/www.androidcentral.com\/android-12-features-we-love-haptics-and-audio-can-work-together\" title=\"Android 12 features we love: Haptics and audio can work together\" georiot-ignore=\"true\" class=\"norewrite\"><img decoding=\"async\" src=\"https:\/\/www.androidcentral.com\/sites\/androidcentral.com\/files\/styles\/large\/public\/article_images\/2021\/02\/haptic-motor.jpg\"><\/a><\/p>\n<p>Inside of every phone is a small motor that is purposefully made to be off-balance, called a <a href=\"https:\/\/e2e.ti.com\/blogs_\/b\/analogwire\/archive\/2016\/10\/27\/how-does-a-linear-resonant-actuator-work\" georiot-ignore=\"true\" class=\"norewrite\">linear resonant actuator<\/a>. When Android tells a phone to vibrate, this motor spins. Because it&#8217;s off-balance, it shakes and vibrates while it&#8217;s spinning and this vibration is what we&#8217;re feeling when our phone is on mute and someone calls.<\/p>\n<blockquote class=\"pull left\">\n<p>Haptic feedback isn&#8217;t a small feature, and it isn&#8217;t easy to get it right.<\/p>\n<\/blockquote>\n<p>These vibrations are useful for other things, too. The most familiar \u2014 and for many the most vital \u2014 thing is vibrating when you tap a letter on the keyboard. Haptics are one of the three ways (visual and audio are the others) our phone can give us a clue that it&#8217;s performing some sort of action. In our example, it&#8217;s letting us know that we&#8217;ve successfully entered a character from the keyboard.<\/p>\n<p><a href=\"https:\/\/www.androidcentral.com\/haptic-feedback-most-important-smartphone-feature-no-one-talks-about\" georiot-ignore=\"true\" class=\"norewrite\">Haptic feedback<\/a> is vital for phones, but it&#8217;s also very useful in your <a href=\"https:\/\/www.androidcentral.com\/crazy-new-haptics-and-adaptive-triggers-are-why-youll-love-ps5s-dualsense-controller\" georiot-ignore=\"true\" class=\"norewrite\">PlayStation controller<\/a>, wearable devices, and even as an accessibility option for those with hearing issues.<\/p>\n<h2>Haptics and audio<\/h2>\n<div class=\"article-body__video\">\n<div class=\"video_iframe\"><iframe src=\"https:\/\/www.youtube.com\/embed\/uaobNgmtgF8?modestbranding=0&amp;html5=1&amp;rel=0&amp;autoplay=0&amp;wmode=opaque&amp;loop=0&amp;controls=1&amp;autohide=0&amp;showinfo=0&amp;theme=dark&amp;color=red&amp;enablejsapi=1\" width=\"682\" height=\"400\" class=\"video-filter video-youtube vf-uaobngmtgf8\" frameborder=\"0\" allowfullscreen=\"true\" loading=\"lazy\"><\/iframe><\/div>\n<\/div>\n<p><!--\/video--><\/p>\n<p>Pay close attention to this short video, courtesy of <a href=\"https:\/\/www.xda-developers.com\/android-12-audio-coupled-haptic-effect\/\" georiot-ignore=\"true\" class=\"norewrite\">XDA Editor in Chief Mishaal Rahman<\/a> and an app from an independent developer who goes by the name kdrag0n. The volume of the phone is turned off but you can clearly hear the phone vibrate in time with the beat when placed on a wooden table. That&#8217;s the haptic audio coupling of Android 12 in full effect.<\/p>\n<blockquote class=\"pull right\">\n<p>All the magic works during the audio post-processing and causes zero overhead.<\/p>\n<\/blockquote>\n<p>The app was built using the new Haptic Generator API found in Android 12, which <a href=\"https:\/\/developer.android.com\/reference\/android\/media\/audiofx\/HapticGenerator\" georiot-ignore=\"true\" class=\"norewrite\">the documentation<\/a> describes as &#8220;an audio post-processor which generates haptic data based on the audio channels&#8221;. In simple terms, that means that any sound generated can trigger the haptic motor based on when and how a developer wants it to turn on and off.<\/p>\n<p>Because this is done during the audio processing, it doesn&#8217;t matter if the volume is on or off or how loud it is. Another interesting note is that the new API works on the <a href=\"https:\/\/www.androidcentral.com\/google-pixel-4\" georiot-ignore=\"true\" class=\"norewrite\">Pixel 4<\/a>, but not the <a href=\"https:\/\/www.androidcentral.com\/google-pixel-4a\" georiot-ignore=\"true\" class=\"norewrite\">Pixel 4a<\/a>, Pixel 4a 5G, or the <a href=\"https:\/\/www.androidcentral.com\/google-pixel-5\" georiot-ignore=\"true\" class=\"norewrite\">Pixel 5<\/a>. If I were a betting man, I would say those issues will be addressed before Android 12 is officially released sometime this fall.<\/p>\n<p>While seeing this demo in action is really cool, what else could be done with it is a lot more interesting. Two very nice additions to Android come to mind: gaming and custom vibration patterns.<\/p>\n<p><a href=\"https:\/\/www.androidcentral.com\/android-12-features-we-love-haptics-and-audio-can-work-together\" title=\"Android 12 features we love: Haptics and audio can work together\" georiot-ignore=\"true\" class=\"norewrite\"><img decoding=\"async\" src=\"https:\/\/www.androidcentral.com\/sites\/androidcentral.com\/files\/styles\/large_wm_blw\/public\/article_images\/2020\/11\/ps5-hero-with-dualsense.jpg\"><\/a><\/p>\n<p>Most of us have used an Xbox or <a href=\"https:\/\/www.androidcentral.com\/playstation-5\" georiot-ignore=\"true\" class=\"norewrite\">PlayStation<\/a> and know that a shaking controller is a pretty nifty addition. Whether you&#8217;re playing a first-person shooter, a racing game, a flight simulator, or any other sort of action game, having the controller rumble in your hands when you do something like wreck a car makes for better gameplay.<\/p>\n<blockquote class=\"pull left\">\n<p>When you crash while playing Asphalt, your phone <strong>should<\/strong> shake!<\/p>\n<\/blockquote>\n<p>There&#8217;s no reason the same can&#8217;t be done with your phone. A game developer could use the new Haptic Generator API to cause the motor to fire up at a specified intensity when an event happens. Android is getting plenty of great 3D games, and those games could make great use of this feature!<\/p>\n<p>A little more mundane but just as important would be the ability to assign a specific vibration pattern when a specific contact calls or messages you. Having <a href=\"https:\/\/www.androidcentral.com\/custom-ringtones-sounds-android\" georiot-ignore=\"true\" class=\"norewrite\">custom ringtones<\/a> and messaging tones for a contact isn&#8217;t a new idea. Let&#8217;s say the developer of the next <a href=\"https:\/\/www.androidcentral.com\/best-messaging-apps\" georiot-ignore=\"true\" class=\"norewrite\">great messaging app<\/a> wants to go a step further, and let you assign both a ringtone and a vibration pattern for a contact. While there would still be extra work, the Haptic Generator makes it far less involved.<\/p>\n<p>Of course, Android developers have a lot of great ideas of their own, as we see every day in the apps we use and love. &#8220;Custom&#8221; Haptics may not sound like the sexiest feature of Android 12, but I think it&#8217;s one of the coolest.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~r\/androidcentral\/~4\/e5uRfoLB8wY\" height=\"1\" width=\"1\" alt=\"\"\/><\/p>\n\n<p class=\"syndicated-attribution\"><figure class= \\\"wp-block-image alignnone \\\"><img src= \\\"http:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-content\/uploads\/2016\/05\/logo2-2.png\\\" alt=\\\"IT\u96fb\u8166\u88dc\u7fd2 java\u88dc\u7fd2 \u70ba\u5927\u5bb6\u914d\u5c0d\u96fb\u8166\u88dc\u7fd2,IT freelance, \u79c1\u4eba\u8001\u5e2b, PHP\u88dc\u7fd2,CSS\u88dc\u7fd2,XML,Java\u88dc\u7fd2,MySQL\u88dc\u7fd2,graphic design\u88dc\u7fd2,\u4e2d\u5c0f\u5b78ICT\u88dc\u7fd2,\u4e00\u5c0d\u4e00\u79c1\u4eba\u88dc\u7fd2\u548cFreelance\u81ea\u7531\u5de5\u4f5c\u914d\u5c0d\u3002\\\"\/><figcaption>\u7acb\u523b\u8a3b\u518a\u53ca\u5831\u540d\u96fb\u8166\u88dc\u7fd2\u8ab2\u7a0b\u5427!<\/figcaption><\/figure>\r\n<\/br>Find A Teacher Form:\r\n<\/br>https:\/\/docs.google.com\/forms\/d\/1vREBnX5n262umf4wU5U2pyTwvk9O-JrAgblA-wH9GFQ\/viewform?edit_requested=true#responses\r\n<\/br><\/br>Email:\r\n<\/br>public1989two@gmail.com<br><br><br><br><br><br><br>\r\n<a href=www.itsec.hk style=color:#FFFFFF;>www.itsec.hk<\/a><br>\r\n<a href=\\\"www.itsec.vip\\\" style=color:#FFFFFF;>www.itsec.vip<\/a><br>\r\n<a href=\\\"www.itseceu.uk\\\" style=color:#FFFFFF;>www.itseceu.uk<\/a><br><\/p>","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Android 12 can make your phone dance to the music.<\/p>\n<p>Android 12 has plenty of features to explore, but one of the coolest may be the ability for your phone&#8217;s haptic motors to work in tandem with an audio stream. Vibration is something every Android phone \u2014 from the best phone to the most budget-friendly phone \u2014 already has and every phone can also play sounds through its external speaker. Pairing the two might lead to some really innovative stuff!<\/p>\n<p>What are haptics?<\/p>\n<p>Inside of every phone is a small motor that is purposefully made to be off-balance, called a linear resonant actuator. When Android tells a phone to vibrate, this motor spins. Because it&#8217;s off-balance, it shakes and vibrates while it&#8217;s spinning and this vibration is what we&#8217;re feeling when our phone is on mute and someone calls.<\/p>\n<p>  Haptic feedback isn&#8217;t a small feature, and it isn&#8217;t easy to get it right.<\/p>\n<p>These vibrations are useful for other things, too. The most familiar \u2014 and for many the most vital \u2014 thing&#8230;<\/p>\n<\/div>","protected":false},"author":205,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Android 12 features we love: Haptics and audio can work together - ITTeacherITFreelance.hk","description":"Android 12 can make your phone dance to the music. Android 12 has plenty of features to explore, but one of the coolest may be the ability for your phone's hapt"},"footnotes":""},"categories":[11],"tags":[2978],"_links":{"self":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/205230"}],"collection":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/205"}],"replies":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=205230"}],"version-history":[{"count":1,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/205230\/revisions"}],"predecessor-version":[{"id":205231,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/205230\/revisions\/205231"}],"wp:attachment":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=205230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=205230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=205230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}