public void SetupSong(string pFileName, GtTimeSignature pTimeSignature) { if ((pFileName != string.Empty) && (!File.Exists(pFileName))) { throw new FileNotFound(string.Format("SongPlayer could't find the file [{0}].", pFileName)); } //Constructor parameters fFileName = pFileName; fTimeSignature = pTimeSignature; //Default values fStatus = SongPlayerStatus.Stopped; fLastBeatNotifyPosition = 0; //Callback handlers fOnFinishedHandle = new SYNCPROC(OnFinished); fOnBeatNotifyHandle = new SYNCPROC(OnBeatNotify); fOnTickNotifyHandle = new SYNCPROC(OnTickNotify); fOnBeatNotifyId = 0; }
public void SetupSong(string pFileName, GtTimeSignature pTimeSignature) { }
void ISongPlayer.SetupSong(string pFileName, GtTimeSignature pTimeSignature) { throw new NotImplementedException(); }
public void SetupSong(string pFileName, double pTempoBPM, GtTimeSignature pTimeSignature) { throw new NotImplementedException(); }
public SongPlayer(string pFileName, GtTimeSignature pTimeSignature) { this.SetupSong(pFileName, pTimeSignature); }