Calsign / APDE

Source code for APDE: Create and run Processing sketches on an Android device.
GNU General Public License v2.0
346 stars 76 forks source link

Load and play a wav file #18

Open SimpleProgrammer opened 8 years ago

SimpleProgrammer commented 8 years ago

Hello, I want to load and play a simple wav file. I discovered following things:

My questions are:

I have a Samsung Note 2 mobile phone.

Best regards, SimpleProgrammer

SimpleProgrammer commented 8 years ago

The dex files can be built with the laptop and transferred to the mobile. But Beads is not supported on android. It uses javax.sound.sampled, that is not supported on android. Someone told in a different forum, that it is possible to get the jdk code for this (from OpenJDK) and build a jar of it. I do not know, if this can work, because the code must be pure java for that.

I used SoundPool and MediaPlayer instead of Beads.