Exemple #1
0
        internal override void InitializeAudioEngine(AudioDevice device)
        {
            mediaPlayer.Completion += OnMusicCompletion;
            mediaPlayer.Error      += OnMusicError;
            mediaPlayer.Prepared   += OnMusicPrepared;

            if (nbOfAudioEngineInstances == 0)
            {
                SoundEffectInstance.CreateAudioTracks();
            }
        }
Exemple #2
0
        private void AudioEngineImpl(AudioDevice device)
        {
            mediaPlayer.Completion += OnMusicCompletion;
            mediaPlayer.Error      += OnMusicError;
            mediaPlayer.Prepared   += OnMusicPrepared;

            if (nbOfAudioEngineInstances == 0)
            {
                SoundEffectInstance.CreateAudioTracks();
            }
        }