[Solved] How to combine two audio files on top of each other in android [closed]
You don’t need FFMPEG, you can use the standard codecs available in android. public void playFile(String fileToPlay) { // see where we find a suitable autiotrack MediaExtractor extractor = new MediaExtractor(); try { extractor.setDataSource(fileToPlay); } catch (IOException e) { out.release(); return; } extractor.selectTrack(0); String fileType=typeForFile(fileToPlay); if (fileType==null) { out.release(); extractor.release(); return; } MediaCodec codec = … Read more