Re: love-android
Posted: Sat Nov 12, 2011 9:21 am
i didn't have any trouble getting that to work, so not sure what the problem is, but below my config in case it helps you :Taehl wrote:Wow. I couldn't get the emulator to play sound even for demonstration apps.
i used
Code: Select all
import android.media.SoundPool;
int miSoundID = audio.mSoundPool.load(filepath,0);
... audio.mSoundPool.play(miSoundID,fLeftVol,fRightVol,iPrio,iLoopMode,fRate);
Code: Select all
import android.media.MediaPlayer;
MediaPlayer mp = MediaPlayer.create(audio.vm.getActivity(), Uri.fromFile(audio.vm.getStorage().getFileFromSdCard(filename)) );
... if (mp != null) mp.start();
target : android 2.2 api level 8
sd card 512mb
skin: wvga854
hardware : gps, dpad, accellerometer, abs.lcd.dens=240, max vm app heap size 24, audio playback support yes, device ram 256 , cam no ,gpu emu no, touch screen yes, audio recording yes
i'm on ubuntu natty and it shows up as "qemu" in volume control, and is a bit quiet, so i have to turn volume up.