コード例 #1
0
ファイル: WaveformData.cs プロジェクト: BryErn1996/NanoTrans
        public WaveformData(long initialBufferLengthMS)
        {
            this.audioBuffer = new MyBuffer16(initialBufferLengthMS);
            this.audioBuffer.AddDataToBuffer(new short[480000], 30000);

            //constructor
            CaretPositionMS = 0;
            SelectionStart  = TimeSpan.Zero;
            SelectionEnd    = TimeSpan.Zero;
            MouseLeftDown   = false;


            LengthMS = 30000;

            BeginMS = 0;
            EndMS   = 30000;

            DeltaMS = 1000;

            ShortJumpMS = 1000;


            YScalePercentage  = 100;
            ScaleAutomaticaly = true;
        }
コード例 #2
0
ファイル: WaveformData.cs プロジェクト: Ttxman/NanoTrans
        public WaveformData(long initialBufferLengthMS)
        {
            this.audioBuffer = new MyBuffer16(initialBufferLengthMS);
            this.audioBuffer.AddDataToBuffer(new short[480000], 30000);

            //constructor
            CaretPositionMS = 0;
            SelectionStart = TimeSpan.Zero ;
            SelectionEnd = TimeSpan.Zero;
            MouseLeftDown = false;

            LengthMS = 30000;

            BeginMS = 0;
            EndMS = 30000;

            DeltaMS = 1000;

            ShortJumpMS = 1000;

            YScalePercentage = 100;
            ScaleAutomaticaly = true;
        }