android - How to convert 44100 stereo to 11025 mono programmatically? -


i using ffmpeg (c++) decode variety of audio files 44100 stereo or mono (according source). have keep because play them too. meanwhile, need 11025 mono versions of these. trying find quick/easy way convert 44100 stereo pcm 11025 mono without ffmpeg save cpu.

is possible in java (android) or c++ (ndk)?

i using java , c++ in same project.

sample-by-sample averaging correct stereo mono conversion, sample rate conversion, why not use library libsamplerate? if heavy, averaging indeed fast, not correct method. whether acceptable or not depends on application. alternative method described in answer post:

how convert pcm samples in byte array floating point numbers in range -1.0 1.0 , back?


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -