using System; using Barotrauma.IO; using System.Collections.Generic; using System.Text; using System.Threading; using System.Linq; using System.Runtime.InteropServices; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Barotrauma.Sounds; namespace Barotrauma.Media { partial class Video : IDisposable { private static Internal.EventCallback VideoFrameCallback; private static Internal.EventCallback VideoAudioCallback; private static Dictionary videos; public static void Init() { if (VideoFrameCallback == null) { VideoFrameCallback = VideoFrameUpdate; } if (VideoAudioCallback == null) { VideoAudioCallback = VideoAudioUpdate; } if (videos == null) { videos = new Dictionary(); } } public static void Close() { if (videos != null) { List