function SNR = demoAAC1(fNameIn, fNameOut) %Implementation of WHAT?? //TODO!! % Usage SNR = demoAAC1(fNameIn, fNameOut), where: % Inputs % - fNameIn is the filename and path of the file to encode % - fNameOut is the filename and path of the file that will be % written after decoding % % Output % - SNR is the signal to noise ration computed after successively % encoding and decoding the audio signal AACSeq1 = AACoder1(fNameIn); decodedAudio = iAACoder1(AACSeq1, fNameOut); [audioData, ~] = audioread(fNameIn); SNR = sum(10*log10((sum(audioData(1:length(decodedAudio), :)) .^ 2)./ ... (sum(audioData(1:length(decodedAudio), :) - decodedAudio) .^ 2))); end