Пример #1
0
        //-----------------------------------------------------------------------------
        // Updating
        //-----------------------------------------------------------------------------

        // Called every step to update the audio manager.
        public static void Update(GameTime gameTime)
        {
            if (currentSong != null)
            {
                currentSong.UpdateSoundInstance();
            }

            foreach (KeyValuePair <string, Sound> entry in Resources.Sounds)
            {
                entry.Value.Update();
            }
        }