title: Native Audio Resampling on Android
body: <p>I am building a custom audio player with MediaCodec/MediaExtractor/AudioTrack etc. which mixes and plays multiple audio files.
  Therefore I need a resampling algorithm, if one of the files has a different samplerate.</p>
  
  <p>I can see that there is a native AudioResample class available:
  <a href="https://android.googlesource.com/platform/frameworks/av/+/jb-mr1.1-release/services/audioflinger/AudioResampler.h" rel="nofollow">https://android.googlesource.com/platform/frameworks/av/+/jb-mr1.1-release/services/audioflinger/AudioResampler.h</a> -
  But so far I did not find any examples how it can be used.</p>
  
  <p>My question:
  Is it possible to use the native resampler on Android? (in Java or with JNI)
  If yes, does anyone know an example out there? Or any docs how one can use this custom AudioResampler class?</p>
  
  <p>Thanks for any hints!</p>