Hi On Thu, Jul 16, 2009 at 10:19:23AM -0700, sandy8531 wrote: > I have a similar need for my application. > http://groups.google.com/group/android-framework/browse_thread/thread/dcd1cd51d3c4d036
I've searched the android sources and found the same functions mentioned in this thread, but i don't know how to use them or if they are even accessible to a userspace program. (btw. i am an experienced programmer, but new to Java and Android). In "[platform/frameworks/base.git]/media/jni/soundpool/SoundPool.cpp" in the "Sample::doLoad()" method they use: "p = MediaPlayer::decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format);" that's exactly what i need, but i don't know how to get this into my program. What to include? How to create or find a MediaPlayer-Object? or the other Link to "[platform/frameworks/base.git]/media/libmediaplayerservice/MediaPlayerService.cpp" how would i access this method? "sp<IMemory> MediaPlayerService::decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, int* pFormat)" > Any suggestions ? I ported libmpg123 to Android (i.e. i stripped all the unneeded stuff out and made it work for me :) It runs at about 10x realtime on the G1. So your 10s clip might take 1s to decode. I don't know how fast the android routines are. i've read somewhere they run not on the main cpu but on a separate dsp. Is this true? Bye dworz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---