Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public void SetupSong(string pFileName, GtTimeSignature pTimeSignature)
 {
 }
Esempio n. 3
0
 void ISongPlayer.SetupSong(string pFileName, GtTimeSignature pTimeSignature)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public void SetupSong(string pFileName, double pTempoBPM, GtTimeSignature pTimeSignature)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 public SongPlayer(string pFileName, GtTimeSignature pTimeSignature)
 {
     this.SetupSong(pFileName, pTimeSignature);
 }