How to fast forward audio??

All your problems with Audio, Video and Images.

How to fast forward audio??

Postby shrikant » Wed Jul 09, 2008 6:16 am

Hi all,
Well i was trying to figure out how to fast forward audio. I went through the android documentation and here are some classes/functions that i think need to be used.

javax.sound.sampled.AndroidAudioInputStream
AndroidAudioInputStream(InputStream stream, AudioFormat format, long length)

javax.sound.sampled.AudioFormat
AudioFormat(Encoding encoding, float sampleRate, int sampleSizeInBits, int channels, int frameSize, float frameRate, boolean bigEndian)

javax.sound.sampled.AudioFormat.Encoding
AudioFormat.Encoding(String name)

Now the thing is, that the xplanation given is insufficient.. at least i think so.
One thing i understood, that is required, is to set to fast forward we'll have to increase the "frameRate" in the new AudioFormat that we make.

BUT,
In the Encoding constructor, what does "name" signify??
In AndroidAudioInputStream what do we put for "stream" in the constructor??
How do we play it after all this?

Thanks in advance for helping..
shrikant
Junior Developer
Junior Developer
 
Posts: 13
Joined: Fri Jun 13, 2008 5:53 am
Location: India

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests