classdef MSEAudioMetricItem < FFMPEGDecoderAudioMetricItem
    
    properties
    
    end
    
     methods 
         function obj=MSEAudioMetricItem
             obj=obj@FFMPEGDecoderAudioMetricItem('PSNR');
         end
         
         
         function m=calc_audio_metric(obj,y1,y2,fs)
              e=y1-y2;
              
              m=sum(sum(abs(e.^2)))/size(e,1)/size(e,2);
              m=10*log10(1/m);
         end
    end
    
    
    
end