示例#1
0
 protected override bool InitExtra()
 {
     this.mSoundFinishedCallback = new Sound.SoundFinished(this.OnSoundFinished);
     MusicData.Intialize();
     Audio.InitWorld();
     return(true);
 }
示例#2
0
 private void StartSound()
 {
     if (this.mCurrentSound == 0)
     {
         this.mSoundFinishedCallback = new Sound.SoundFinished(this.OnSoundFinished);
         this.mCurrentSound          = Audio.StartSound(this.soundNameTXT.Text, this.mSoundFinishedCallback);
         if (this.mCurrentSound != 0)
         {
             this.mSoundStopwatch.Reset();
             this.mSoundStopwatch.Start();
             this.stopReasonTXT.Text    = "Stop Reason: ";
             this.startSoundBTN.Enabled = false;
             this.stopSoundBTN.Enabled  = true;
         }
     }
 }