Ejemplo n.º 1
0
		/// <summary>
		/// Create an audio manager object with default audio adapter.
		/// </summary>
        public AudioManager()
        {
#if SDL2
            _audioAdapter = new SDLMixerAdapter();
#else
			_audioAdapter = new XnaAudioAdapter();
#endif
            _audioAdapter.MusicEnabled = true;
            _audioAdapter.SoundEnabled = true;
            _audioAdapter.MusicVolume = 0.6f;
			_audioAdapter.RepeatMusic = false;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Create an audio manager object with default audio adapter.
        /// </summary>
        public AudioManager()
        {
#if SDL2
            _audioAdapter = new SDLMixerAdapter();
#else
            _audioAdapter = new XnaAudioAdapter();
#endif
            _audioAdapter.MusicEnabled = true;
            _audioAdapter.SoundEnabled = true;
            _audioAdapter.MusicVolume  = 0.6f;
            _audioAdapter.RepeatMusic  = false;
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Create an audio manager object with a custom audio adapter.
		/// </summary>
		/// <param name='audioAdapter'>A custom audio adapter.</param>
		public AudioManager(AudioAdapter audioAdapter)
		{
			_audioAdapter = audioAdapter;
		}
Ejemplo n.º 4
0
 /// <summary>
 /// Create an audio manager object with a custom audio adapter.
 /// </summary>
 /// <param name='audioAdapter'>A custom audio adapter.</param>
 public AudioManager(AudioAdapter audioAdapter)
 {
     _audioAdapter = audioAdapter;
 }