[android-developers] Re: Playing sound from memory

2009-04-28 Thread niko20
Hi, You can use the AudioTrack class to stream raw PCM data. On Apr 27, 7:50 pm, rookie1_1998 eric.yongjun.c...@gmail.com wrote: I need a way to play a short sound clip repeatedly very fast, with precise timing for musical purpose.  I looked around, and it seems like MediaPlayer and

[android-developers] Re: Playing sound from memory

2009-04-28 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 5:50 PM, rookie1_1998 eric.yongjun.c...@gmail.comwrote: I need a way to play a short sound clip repeatedly very fast, with precise timing for musical purpose. I looked around, and it seems like MediaPlayer and SoundPool don't guarantee lag-free playing. Is there

[android-developers] Re: Playing sound from memory

2009-04-28 Thread Dave Sparks
SoundPool has too much jitter for a serious music application. If you want to control the jitter, you need to output to a single AudioTrack. On Apr 28, 8:27 am, Marco Nelissen marc...@android.com wrote: On Mon, Apr 27, 2009 at 5:50 PM, rookie1_1998 eric.yongjun.c...@gmail.comwrote: I need