Hello all. As mentioned before, I am teaching a course on Processing for Android and so am assembling easy to use examples. Here are the first two:
MediaPlayer_example - this uses the great apwidgets library examples to make a simple audio player with system buttons. This type of media player is meant for soundtracks and songs, NOT for sound effects. For sound effects...
effects_example - this brings together a number of leads from this forum and elsewhere into a super simplified look at firing off sounds quickly with the soundPool from the android sdk. This is the recommended method for short quick sounds that are possibly overlaid on one another. each of the five system style buttons plays a different sound.
These examples include the complete package with the audio files so it should work right away on your devices. You just need to install the apwidgets library first.
I hope these are useful, and those of you with more expertise are welcome to post improved versions if you find significant errors, but I do know that these work.
I just wanted to mention that I am teaching a Processing for Android course, and while all the mac users have no problems, every single windows users is having the same issue of being unable to use the emulator. The emulator is spawned, then a second emulator is spawned which then crashes and the whole process fails. We have tried killing the emulators in the virtual device manager and all the other hints I could find here. I did see a note that this might be an issue with Processing 2.0a4 and the SDK v16 and it might be resolved with Processing 2.0a5, but can anyone confirm this? A timeline would be great as well.
I have asked this on the ioio discussion group to no avail and hope one of you might understand how to utilize the ioio library (already in java) in Processing for android?
I have made the folder and placed the library so it is recognized by processing and written code using this guide:
The result is a compiler failure for every mention of the ioio after the initialization that looks like this:
java:30: unreported exception ioio.lib.api.exception.ConnectionLostException; must be caught or declared to be thrown
[javac] ioio.waitForConnect();
Any help or suggestions are appreciated, I think I dont understand fully how to merge the structure of the ioio examples with the more rigid structure of a processing sketch.