0

Is there any way to get audio stream from a wav file (wav file in particular) in android?

I am trying to get the stream of a particular interval(i.e from startTime to endTime where startTime is not zero). For example, to get the audio stream from 5 sec to 10 sec (5 sec duration) of a 20 sec long wav file.

How to do that? I see this link but this is for java not android and you know javax not supported for android. Get byte stream from an audio file?

Community
  • 1
  • 1
setare shojaei
  • 145
  • 1
  • 12
  • you want to look at: http://stackoverflow.com/questions/7372813/android-audiotrack-playing-wav-file-getting-only-white-noise and probably the setLoopPoint of tha AudioTrack class https://developer.android.com/reference/android/media/AudioTrack.html#setLoopPoints(int, int, int) – pna Dec 23 '13 at 17:16
  • @pna hi.I see this link.But it was just about playing wav.I dont want record or play waves.i have already wav file and want an audio stream from one specified seccond to other.can you help me more? – setare shojaei Dec 24 '13 at 07:03
  • and @pna I read refrenced for develope android about SetLoopPoint.But I didnt undertnand the work of this method.looping for an audio what s mean?can u help me? – setare shojaei Dec 24 '13 at 12:06

0 Answers0