I need to stream runtime generated PCM data. This sounds pretty simple, but it doesn't work. Pseudo code:
public void run() { while(...) { mAudioTrack.write(whatNoiseDoesThisAnimalMake(mAnimal), ...); } } mAnimal can be changed from UI obviously. Just in case it matters, I set the AudioTrack internal buffer to 0.1 * sampleRate * bitsPerSample / 8 to obtain kinda low latency (100ms). At this time, I can get my sound played only once. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en