//internal clsAutoSync(List<string> lines) { // //* load .chtx file // BaseConstructor(); // //CHTFilePath = P.F.Project.AudioSyncPath; // Elapsed = new clsElapsed(this, lines); // InitMP3Player(); // Play_LastSaved = Elapsed.Play.ToList(); // Record_LastUsed = Elapsed.Record.ToList(); // P.frmSC.lblTopSync.Text = "Sync: External"; //} //internal clsAutoSync() { // //* create default .chtx file // BaseConstructor(); // //CHTFilePath = P.F.Project.AudioSyncPath; // Elapsed = new clsElapsed(this); // InitMP3Player(); // Play_LastSaved = Elapsed.Play.ToList(); // Record_LastUsed = Elapsed.Record.ToList(); // P.frmSC.lblTopSync.Text = "Sync: External"; //} //internal void CheckIndChanged(FormClosingEventArgs e) { // if (indSave) { // DialogResult res = MessageBox.Show("AutoSync.Play File has unsaved changes - Save it?", // "Unsaved Changes Warning", // MessageBoxButtons.YesNoCancel); // switch (res) { // case DialogResult.No: // e.Cancel = false; // break; // case DialogResult.Yes: // if (SaveFile() != "") { //error // e.Cancel = true; // return; // } // e.Cancel = false; // break; // case DialogResult.Cancel: // e.Cancel = true; // return; // } // } // indSave = false; //} internal static void SetPlayAudioText(clsAudioSync audiosync) { string txt = "Play\r\nAudio"; if (audiosync?.Elapsed == null || !audiosync.AudioSyncEna || P.F.Project.AudioPath == "") { txt = "Play\r\nAudio\r\nNoSyn"; if (P.frmSC != null) { P.frmSC.chkManSyncChord.Enabled = true; } } else { if (P.frmSC != null) { P.frmSC.chkManSyncChord.Enabled = false; P.frmSC.chkManSyncChord.Checked = false; } } if (P.frmSC != null) { P.frmSC.cmdPlayAudio.Text = txt; } if (P.F?.frmTrackMap != null) { P.F.frmTrackMap.cmdPlayAudio.Text = txt; } if (P.F?.frmChordMap != null) { P.F.frmChordMap.cmdPlayAudio.Text = txt; } }
//internal clsMTime.clsBBT AudioPlayStartBBT { //Bar pane (blue highlight) // get { // //return Forms.frmTrackMap.BarPaneBBT; // return P.F.CurrentBBT; // } //} internal clsMP3Bass(clsAudioSync autosync, string filepath) { AudioSync = autosync; FilePath = filepath; OpenStream(); delegOnEnd = new SyncProcedure(OnEnd); delegOnPos = new SyncProcedure(OnPos); P.frmSC.panTrkAudio.Enabled = true; Vol = P.frmSC.trkAudioVol.Value; Pan = P.frmSC.trkAudioPan.Value; }
internal clsElapsed(clsAudioSync autosync, List <string> lines) //from .cht file //* create list from .cht file { AudioSync = autosync; int i = 0; clsList list; ReadSection(lines, ref i, out list); //to "+++" or EOF Play = list; ReadSection(lines, ref i, out list); if (list.Count == 0) { ResetRecord(); } else { Record = list; } AudioSync.indSave = false; }
internal clsElapsed(clsAudioSync autosync) //empty { AudioSync = autosync; Reset(); AudioSync.indSave = false; }
internal clsElapsed(clsElapsed elapsed) //copy { Record = elapsed.Record.ToList(); Play = elapsed.Play.ToList(); AudioSync = elapsed.AudioSync; }
internal clsList(clsAudioSync autosync, List <long> list) { AudioSync = autosync; List = list; }
internal clsList(clsAudioSync autosync) { AudioSync = autosync; List = new List <long>(200); }