Tushar
Tushar

Reputation: 5935

Implementing media player in Android application

I am developing an application in which I have to perform three functions play, record and pause an audio file.

Has anyone implemented it before?

Upvotes: 0

Views: 357

Answers (1)

inazaruk
inazaruk

Reputation: 74780

Take a look at MediaPlayer or AudioTrack for playback. The difference is that MediaPlayer can play several audio formats directly from file (or in some cases even from remote URL), while AudioTrack plays only from raw LPCM buffer,

For recording take a look at MediaRecorder or AudioRecord. The difference is that MediaRecorder records audio and video to .3gp, while AudioRecord gives you only audio as raw LPCM buffers. The AudioRecord data can be used to create .wav files (though some extra code is required for this).

Upvotes: 1

Related Questions