Add some readonly keywords.

This commit is contained in:
J.D. Purcell 2015-09-03 01:46:29 -04:00
parent 7fa4accd64
commit d5fa8fbe3c
2 changed files with 10 additions and 10 deletions

View File

@ -8,9 +8,9 @@ namespace Nikse.SubtitleEdit.Core
{
public class RealFFT
{
private int _length;
private int[] _ip;
private double[] _w;
private readonly int _length;
private readonly int[] _ip;
private readonly double[] _w;
public readonly double ForwardScaleFactor;
public readonly double ReverseScaleFactor;

View File

@ -505,13 +505,13 @@ namespace Nikse.SubtitleEdit.Core
{
private const double raisedCosineWindowScale = 0.5;
private int _nfft;
private MagnitudeToIndexMapper _mapper;
private RealFFT _fft;
private FastBitmap.PixelData[] _palette;
private double[] _segment;
private double[] _window;
private double[] _magnitude;
private readonly int _nfft;
private readonly MagnitudeToIndexMapper _mapper;
private readonly RealFFT _fft;
private readonly FastBitmap.PixelData[] _palette;
private readonly double[] _segment;
private readonly double[] _window;
private readonly double[] _magnitude;
public SpectrogramDrawer(int nfft)
{