protected override bool InitExtra() { this.mSoundFinishedCallback = new Sound.SoundFinished(this.OnSoundFinished); MusicData.Intialize(); Audio.InitWorld(); return(true); }
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; } } }