Skip to main content

Android 12 features we love: Haptics and audio can work together

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 haptic motors to work in tandem with an audio stream. Vibration is something every Android phone — from the best phone to the most budget-friendly phone — already has and every phone can also play sounds through its external speaker. Pairing the two might lead to some really innovative stuff!

What are haptics?

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's off-balance, it shakes and vibrates while it's spinning and this vibration is what we're feeling when our phone is on mute and someone calls.

Haptic feedback isn't a small feature, and it isn't easy to get it right.

These vibrations are useful for other things, too. The most familiar — and for many the most vital — 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's performing some sort of action. In our example, it's letting us know that we've successfully entered a character from the keyboard.

Haptic feedback is vital for phones, but it's also very useful in your PlayStation controller, wearable devices, and even as an accessibility option for those with hearing issues.

Haptics and audio

Pay close attention to this short video, courtesy of XDA Editor in Chief Mishaal Rahman 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's the haptic audio coupling of Android 12 in full effect.

All the magic works during the audio post-processing and causes zero overhead.

The app was built using the new Haptic Generator API found in Android 12, which the documentation describes as "an audio post-processor which generates haptic data based on the audio channels". 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.

Because this is done during the audio processing, it doesn'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 Pixel 4, but not the Pixel 4a, Pixel 4a 5G, or the Pixel 5. If I were a betting man, I would say those issues will be addressed before Android 12 is officially released sometime this fall.

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.

Most of us have used an Xbox or PlayStation and know that a shaking controller is a pretty nifty addition. Whether you'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.

When you crash while playing Asphalt, your phone should shake!

There's no reason the same can'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!

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 custom ringtones and messaging tones for a contact isn't a new idea. Let's say the developer of the next great messaging app 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.

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. "Custom" Haptics may not sound like the sexiest feature of Android 12, but I think it's one of the coolest.



Source: androidcentral

Popular posts from this blog

How to watch England vs New Zealand: Live stream 2nd Test series cricket on

With the first Test ending in a draw, the series is on a knife edge at Edgbaston, as Joe Root's side look to put off the field controversies to one side and claim a much needed win against the Kiwis. Don't miss a single ball of the 2nd Test with our England vs New Zealand live stream guide below. The series has been somewhat overshadowed by the emergence of offensive historic tweets posted by Ollie Robinson who made his debut in the opening Test but has since been suspended. With the controversy still brewing amid interventions from politicians and accusations leveled at other members of the team, Root has a battle on his hands to keep his side focused on the game ahead. One positive for Root coming into the game is that they'll be playing in front of a near capacity crowd at Egbaston, with the overwhelming majority of the expected 18,000 spectators set to be cheering on the home side. The tourists have been delivered a huge blow coming intot his final match, with s

Review: The Amazon Echo Show 10 (3rd Gen) is a truly moving Alexa speaker

This new Echo Show is a real head-turner. The smart speaker market has grown quite a bit since Amazon introduced the first Echo in late 2014. However, after introducing the first Echo Show in 2017, the evolution of smart screened devices hasn't progressed nearly so quickly. There have mostly been incremental updates to the devices put out by Amazon, Google, and others like Lenovo, adding bigger screens and (marginally) better speakers, but nothing has really moved the category forward. As it has done several times before, Amazon is poised to usher in the next paradigm shift in smart speaker tech with its latest Echo device, the Echo Show 10 (3rd Gen). I've had the pleasure of using just about every Alexa and Google Assistant-enabled smart speaker over the past few years, so I feel well-suited to write this Amazon Echo Show 10 (3rd Gen) review based on that background. I'm not going to get too far into the argument of which smart assistant is better — by now, you've

The Galaxy Watch 4 is coming soon — here's everything you need to know

Samsung's Galaxy-brain play: leaving Tizen behind for Wear OS. The Samsung Galaxy Watch 3, one of the best Android smartwatches , may have only just launched in November 2020, but the latest rumors out of South Korea suggest the company may already be developing its replacement — with some big changes and upgrades in the works meant to topple Apple from its smartwatch throne. There's no confirmation whether Samsung's 2021 smartwatch will be named the "Galaxy Watch 4" or adopt a new name entirely. However, we know that this new watch will run the new version of Wear OS, which would have a big impact on app support and Android phone connectivity. It could also feature a newer-faster chipset, which could put it leagues ahead of the best Wear OS watches . Details are fairly scarce so far, but we've scrounged up every known leak about specs, design leaks, and pricing, along with everything else we know so far about the Samsung Galaxy Watch 4. Samsung's bes

6 things Apple stole from Android at WWDC— and one that Google should steal

Every year, Apple and Google trade ideas for their newest versions of iOS and Android, respectively. But this year, during Apple's WWDC 2021, it seems like Apple purloined more than a few ideas that Google's integrated into Android over the last few years. Millions of iOS users won't get their hands on iOS 15 and iPadOS 15 until later this year, so until then, we don't know until then how the new features will fare in the real world. For now, here's a tongue-in-cheek look at six features Apple, um, borrowed from Android with its latest software releases. Jump to: iPad widgets and app drawer Live Text Apple Maps AR navigation iOS notifications New Siri capabilities Apple Photos Bonus: What Google needs to steal iPad widgets and app drawer iPad OS 15 introduced two big new updates for the iPad home screen today: widgets and the App Library. If you think this sounds awfully familiar, there's a good reason for that. 2020's iOS 14 introduced both