WaveFrogger.Services.AudioService.Initialize C# (CSharp) Method

Initialize() protected method

Initializes a new instance of the SoundsManager class.
protected Initialize ( ) : void
return void
        protected override void Initialize()
        {
            this.musicPlayer = WaveServices.MusicPlayer;
            this.soundPlayer = WaveServices.SoundPlayer;

            this.soundsBank = new SoundBank();
            this.soundsBank.MaxConcurrentSounds = 5;
            this.soundPlayer.RegisterSoundBank(this.soundsBank);

            // Create SoundInfo array
            this.sounds = new SoundInfo[Enum.GetValues(typeof(Audio.Sfx)).Length];

            //this.uniqueLoopedSounds = new Dictionary<Audio.SfxLoop, SoundInstance>();
            //this.playLoopedSoundRequests = new Dictionary<Audio.SfxLoop, int>();

            this.LoadAllSounds();
        }