MrSnowflake wrote:Thanks for these reports, but definately don't for get to report them to the googlecode android site!
I just looked over the docs of SoundPool and sinds non of the methods have comments, it's not supposed to work. I hope you realised it before you began diggin in to it . But still good, you could get it to work.
i think you're right but Google don't think so .rbgrn wrote:I think it'd be strange to leave a class in the API but not document it and claim that it's not supported because it's not documented. IMO if it's in a public package (like java.lang or android.media) it's a public API regardless of how poor the documentation is. It's certainly listed as added in the .9-m5 changelist.
Java is not my fluent language, so please bear with me
I've tried the following code after seeing the snippet here, and I can't seem to get this to work. Here's what I have:
You'll notice I replaced instaces of 'getContext()' with 'Context', as 'getContext()' doesn't seem to be available from where I have this code.
Here is my LogCat that's being returned, and no sound is being played:
11-08 19:25:23.679: DEBUG/dalvikvm(1822): Trying to load lib /system/lib/libsoundpool.so 0x0
11-08 19:25:23.759: DEBUG/dalvikvm(1822): Added shared lib /system/lib/libsoundpool.so 0x0
11-08 19:25:23.819: WARN/SoundPool(1822): sample 1 not READY
Any ideas on this? I've been pulling my hair out all day messing with MediaPlayer, then I came across SoundPool and it looks great!
Thanks in advance.
Users browsing this forum: No registered users and 16 guests