Exemple #1
0
 void SetSongPos(float posTime)
 {
     if (EAudio.IsAudioPlaying())
     {
         EAudio.SetSamplePosition((int)(EAudio.GetSampleDuration() * (posTime / f_totalTime)));
         i_pauseSample = EAudio.GetCurSample();
     }
     else
     {
         Play();
         EAudio.SetSamplePosition((int)(EAudio.GetSampleDuration() * (posTime / f_totalTime)));
         Pause();
     }
     f_beatCheck = 0;
 }
Exemple #2
0
 void Resume()
 {
     EAudio.ResumeClip();
     EAudio.SetSamplePosition(i_pauseSample);
     b_pause = false;
 }