Decoding audio via Android using FFMpeg?

I was able to solve my problem by taking the audio_decode_example code found in the api_example. C file in libavcodec of the ffmpeg source and modify it to suit my needs. Below is the code.

Just to note, it doesn't dynamically pick the correct codec to decode with, that is something I'll have to fix next along with a few other items. The java code remains untouched.

Ah, you might need to check the data_size value after the call to avcodec_decode_audio3: right now you always feed the return value to the play method, but if data_size is less than 0 then it is not a valid frame decode.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions