Sandeep,
SoundPool leverages MediaPlayer service to decode the compressed audio into
a raw 16-bit PCM stream, which I thought you could refer to its
implementation.
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=media/jni/soundpool/SoundPool.cpp;h=02731825e08794a17132caed973
Freepine,
I have looked at Soundpool, it does not solve my problem. To further
clarify, I need to implement the following (pseudo code) api for my
application. I do not need to play the sound.
public short[] getPcmData(String audioFilename, int
seekPositionInSeconds, int durationInSeconds);
Whe
You might want to take a look at SoundPool class and its corresponding
implementation in native layer, which could be a good reference if the class
itself doesn't satisfy your needs:)
http://developer.android.com/reference/android/media/SoundPool.html
On Thu, Jul 16, 2009 at 3:16 PM, sandy8531 wr
Can you be more precise about what your application does? On quite a
few devices (and especially on the Dream/G1) Android fits tightly with
little room to spare, so it's unclear that we'd be accepting
contributions for entirely new applications.
JBQ
On Thu, Jul 16, 2009 at 12:16 AM, sandy8531 wr
Hi Sandeep,
You can put the if condition in the parser to read only till 10 sec
and take the PCM samples from decoder output to a file
-Giri
From: sandy8531
To: android-framework
Sent: Thursday, 16 July, 2009 12:46:10 PM
Subject: Access to opencore audio
My application needs to extract a 10 second portion of a audio file in
PCM format and store it.
On other platforms I have been doing this in Java using Jlayer
decoder, but once I ported that to Android, it ran extremely slowly.
It takes almost 50 seconds to decode a 10 second sample !
Since the