Hi, I wonder if anyone can help. I'm using Android 4.0.x development kit Win 7 64 bit development platform
using the code as supplied in http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html which contains SoundPool examples I've also tried out my own testing using SoundPool I'm using Eclipse Version: Indigo Service Release 1 Build id: 20110916-0149 This is the problem When I invoke SoundPool .play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) when 'int loop' is 0 (zero) then everything is fine and the sound plays once perfectly However, any other value for int loop and you get this error Sount.Test.namespace AudioFlinger could not create track, status: -12 Sount.Test.namespace Error creating audio track This happens in the emulator and also on my phone Samsung galaxy Nexus I want the sound to loop indefinitely so have been setting int loop to -1 I'm playing a small audio clip, it's in ogg file format, 140K long I've used all types of file format, wav, mp3 and It's the same with any file format I use, so it isn't the audio file. They will play once (int loop = 0) but not for any other value of int loop It's driving me mad cos I've spent a day and a half on it.. Anyone know what's going on ? many thanks, Phil -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

