conversion of a arduino lenardo program to arduino due

Hi i m working on a sound localization project. I have found a program that works on arduino lenardo but i am unable to compile it for arduino DUE. It uses some terms like ADMUX,OCROA…etc .that are not for DUE.

i know very basic programming so i need help. Basically the aim is to take audio analogue inputs from electret microphones, calculate fft(fourier transforom) ,phase shift and dicrection of sound.

More detail on

the code is in attachment

Localizator_final.ino (24.7 KB)