Learn To Make Hip Hop

...Learn to make hip hop music. become a true beatmaker today.

Android 2.2: Badly-needed Improvements to Audio, Touch, More; What’s Missing

Written by on May 20th, 2010
Summary:

Yes, I admit it’s getting better. And that could mean more choices for creative music software makers. Photo ( CC-BY ) Pittaya Sroilong . Android 2.2 boasts enormous boosts to performance in Java, JavaScript, and the browser, plus nice end-user features like tethering and tons of developer goodies. But developers interested in pushing the multimedia capabilities of the OS have been eager for some specific good news – particularly with Android a candidate for tablets and new embedded platforms (think new, Android-powered DIY music gadgets). 2.2 isn’t likely to satisfy all those concerns, but it is a step forward. There are some subtle but key aspects you might miss, since they aren’t quite headline news for most gadget sites. Apologies for an atypically technical post, but this stuff is important if the platform has a future for readers of this site. And if anyone doubts this is news, let me tell you – talking to music developers from a variety of backgrounds, I hear both immense desire to look at Android, and some significant skepticism about the limitations, many of them specific to performance. What’s improved: Audio gets a separate priority. Changes to AudioManager mean that audio can gain focus. Currently, audio processes on Android often get preempted by other processes, so that literally, another service syncing data can screw up your sound. What I can’t tell here is whether the audio focus helps successfully prioritize sound – or if it just helps mix sound with other apps. At the very least, it should avoid other apps cutting into a music performance app without you wanting that. If we’re lucky, Google has also improved audio performance, so that audio apps can set shorter buffer times without adding clicks and pops. (I’ve found disabling data sync stops sound from skipping, but that’s not how it’s supposed to work – not even close.) It’s possible these issues could be positively impacted by improvements to the Java virtual machine (in fact, it’s almost a sure thing). Android 2.2 blog post , full revisions ; NDK changes on the NDK site . Media recording APIs are finally set up right. As Google puts it, “New APIs in MediaRecorder for specifying audio settings for number of channels, encoding and sampling rates, sampling rate.” Or, as I’d put it, less charitably, “MediaRecorder API no longer involves pain.” This is also a big deal for Android applications that take audio input, including in-progress ports of free synthesis environments Pd and SuperCollider, and Jasuto, whose developer got tripped up on this very problem. MotionEvent has been improved, for better multi-touch event handling. Developer Luke Hutchison has had to manually write code that works around some unreliable multitouch processing. Google promises better reporting in the new version. Unfortunately, I don’t think we’ll know until this build ships; this can only be tested on devices. Better storage. Flexibility in storage is a key advantage of Android (cough, Apple) in some areas, but needed work. Now, the ability to (finally) install apps to the SD card means that music-rich apps or interactive music albums become possible. And automated data backup could be a boon to people using Android as a creation device. A smarter NDK . Debugging. ‘Nuff said. And that’s something native developers (see, again, SuperCollider and Pd) can download and use right now, today. By the way, motion fans should be happy with doubled camera preview FPS and YUV support in OpenGL, among other tweaks. Now, the bad news. What’s Missing JIT (Just in Time) compilation for Java translates to vastly improved performance, so you can’t wish for more. But there are still things musicians could use. Everyone’s been writing open letters to Steve Jobs. Let’s make this an open letter to Google. Why should Google care about musicians? How about because Google threw down the gauntlet today on its comparative “openness,” compared life with Apple devices to 1984 , and prides itself on its Linux heritage? No, actually — let me put this better: don’t you want Android to be a rock star, Google? Native audio access . This NDK added still more support – native access to image buffers, which will help people writing graphics apps. But with that and OpenGL finished, audio should be next on Google’s list. Android devices all appear to use Linux audio standard ALSA. There’s really no reason native DSP code shouldn’t talk directly to the audio output. Google: pay attention. Audio apps have been some of the biggest hits on Apple’s App Store; Smule alone has made ocarinas, AutoTune, and Glee fandom cultural phenomena on the iPhone. Android really does need improved audio performance to compete. Unless a miracle has happened on the Java side, that means providing the NDK as at least an option. And it’s self-selecting: the only programmers who would even try to write their own DSP code and ALSA interfaces would be the ones who already know what they’re doing. You’re not going to get stupid questions about this on IRC like you do with people who haven’t read the UI documentation. Get it? Reach out to better multitouch hardware partners. I’m beginning to think that waiting for OEMs to stop sucking at multitouch on phones and tablets is a losing game. So, Google, you’ve got the biggest tech brand power on the planet now. You’ve got smart people. Find a way to hook up your mobile partners with the people who can make touch hardware and firmware work, and the whole platform wins. Hardware support (question mark) . The Droid already supports USB host mode – so why isn’t it a standard? And why shouldn’t Android benefit from the Linux kernel and provide external hardware support in the API? Help the device live up to the “open” hype you keep espousing; it doesn’t make for a flattering comparison if the iPhone OS has more hardware features for developers than Android, especially with tablets on the horizon. So wait, why a question mark? It looks like good stuff is happening here. Tablets show promise, and the announcement of Google’s TV product suggests not only video out but USB, too. So the key is, will developers be able to use those features? It’s not really an “open” platform if the answer is no. It just seems at this point like we’re waiting on standard APIs and documentation. TV video out is a safe bet when Google’s promised TV SDK appears early next year. But by then, Apple may have a similar offering – and it’d be unfortunate if Google didn’t extend capabilities to their whole line, rather than slice up the platform. Specific as these things are, they could be the detail that makes a (pardon the word) “magical” app for the platform. And hey, that’s also mean some rockstars using Android. That can’t be too bad, can it? I’m hopeful. And I think the vision of the platform could be extraordinary. Imagine an Android phone that connects to a music rig onstage, an audiovisual app that makes the audio output really shine, or an interactive album you can watch on an Android-powered TV accessory from

Tell others about us:
  • Twitter
  • Digg
  • StumbleUpon
  • MySpace
  • Reddit
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Yes, I admit it’s getting better. And that could mean more choices for creative music software makers. Photo (CC-BY) Pittaya Sroilong.

Android 2.2 boasts enormous boosts to performance in Java, JavaScript, and the browser, plus nice end-user features like tethering and tons of developer goodies. But developers interested in pushing the multimedia capabilities of the OS have been eager for some specific good news – particularly with Android a candidate for tablets and new embedded platforms (think new, Android-powered DIY music gadgets).

2.2 isn’t likely to satisfy all those concerns, but it is a step forward. There are some subtle but key aspects you might miss, since they aren’t quite headline news for most gadget sites. Apologies for an atypically technical post, but this stuff is important if the platform has a future for readers of this site. And if anyone doubts this is news, let me tell you – talking to music developers from a variety of backgrounds, I hear both immense desire to look at Android, and some significant skepticism about the limitations, many of them specific to performance.

What’s improved:

Audio gets a separate priority. Changes to AudioManager mean that audio can gain focus. Currently, audio processes on Android often get preempted by other processes, so that literally, another service syncing data can screw up your sound. What I can’t tell here is whether the audio focus helps successfully prioritize sound – or if it just helps mix sound with other apps. At the very least, it should avoid other apps cutting into a music performance app without you wanting that. If we’re lucky, Google has also improved audio performance, so that audio apps can set shorter buffer times without adding clicks and pops. (I’ve found disabling data sync stops sound from skipping, but that’s not how it’s supposed to work – not even close.) It’s possible these issues could be positively impacted by improvements to the Java virtual machine (in fact, it’s almost a sure thing).

Android 2.2 blog post, full revisions; NDK changes on the NDK site.

Media recording APIs are finally set up right. As Google puts it, “New APIs in MediaRecorder for specifying audio settings for number of channels, encoding and sampling rates, sampling rate.” Or, as I’d put it, less charitably, “MediaRecorder API no longer involves pain.” This is also a big deal for Android applications that take audio input, including in-progress ports of free synthesis environments Pd and SuperCollider, and Jasuto, whose developer got tripped up on this very problem.

MotionEvent has been improved, for better multi-touch event handling. Developer Luke Hutchison has had to manually write code that works around some unreliable multitouch processing. Google promises better reporting in the new version. Unfortunately, I don’t think we’ll know until this build ships; this can only be tested on devices.

Better storage. Flexibility in storage is a key advantage of Android (cough, Apple) in some areas, but needed work. Now, the ability to (finally) install apps to the SD card means that music-rich apps or interactive music albums become possible. And automated data backup could be a boon to people using Android as a creation device.

A smarter NDK. Debugging. ‘Nuff said. And that’s something native developers (see, again, SuperCollider and Pd) can download and use right now, today.

By the way, motion fans should be happy with doubled camera preview FPS and YUV support in OpenGL, among other tweaks.

Now, the bad news.

What’s Missing

JIT (Just in Time) compilation for Java translates to vastly improved performance, so you can’t wish for more. But there are still things musicians could use.

Everyone’s been writing open letters to Steve Jobs. Let’s make this an open letter to Google.

Why should Google care about musicians? How about because Google threw down the gauntlet today on its comparative “openness,” compared life with Apple devices to 1984, and prides itself on its Linux heritage?

No, actually — let me put this better: don’t you want Android to be a rock star, Google?

  • Native audio access. This NDK added still more support – native access to image buffers, which will help people writing graphics apps. But with that and OpenGL finished, audio should be next on Google’s list. Android devices all appear to use Linux audio standard ALSA. There’s really no reason native DSP code shouldn’t talk directly to the audio output. Google: pay attention. Audio apps have been some of the biggest hits on Apple’s App Store; Smule alone has made ocarinas, AutoTune, and Glee fandom cultural phenomena on the iPhone. Android really does need improved audio performance to compete. Unless a miracle has happened on the Java side, that means providing the NDK as at least an option. And it’s self-selecting: the only programmers who would even try to write their own DSP code and ALSA interfaces would be the ones who already know what they’re doing. You’re not going to get stupid questions about this on IRC like you do with people who haven’t read the UI documentation. Get it?
  • Reach out to better multitouch hardware partners. I’m beginning to think that waiting for OEMs to stop sucking at multitouch on phones and tablets is a losing game. So, Google, you’ve got the biggest tech brand power on the planet now. You’ve got smart people. Find a way to hook up your mobile partners with the people who can make touch hardware and firmware work, and the whole platform wins.
  • Hardware support (question mark). The Droid already supports USB host mode – so why isn’t it a standard? And why shouldn’t Android benefit from the Linux kernel and provide external hardware support in the API? Help the device live up to the “open” hype you keep espousing; it doesn’t make for a flattering comparison if the iPhone OS has more hardware features for developers than Android, especially with tablets on the horizon. So wait, why a question mark? It looks like good stuff is happening here. Tablets show promise, and the announcement of Google’s TV product suggests not only video out but USB, too. So the key is, will developers be able to use those features? It’s not really an “open” platform if the answer is no. It just seems at this point like we’re waiting on standard APIs and documentation. TV video out is a safe bet when Google’s promised TV SDK appears early next year. But by then, Apple may have a similar offering – and it’d be unfortunate if Google didn’t extend capabilities to their whole line, rather than slice up the platform.

Specific as these things are, they could be the detail that makes a (pardon the word) “magical” app for the platform. And hey, that’s also mean some rockstars using Android. That can’t be too bad, can it?

I’m hopeful. And I think the vision of the platform could be extraordinary. Imagine an Android phone that connects to a music rig onstage, an audiovisual app that makes the audio output really shine, or an interactive album you can watch on an Android-powered TV accessory from your couch? On that last question, imagine people listening to albums in their entirety, blissing out to specialized generative visuals? (Return of the psychedelic prog rock album cover!)

Users, take all of this with a grain of salt, because I still want to test 2.2 to evaluate real-world performance. But it’s worth saying, because the fact that we have 2.2 means Google’s talented Android team is already moving on to the next thing.

See original here:
Android 2.2: Badly-needed Improvements to Audio, Touch, More; What’s Missing

Tell others about us:
  • Twitter
  • Digg
  • StumbleUpon
  • MySpace
  • Reddit
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Comments are closed.