/// <summary> /// Erzeugt eine neue Instanz und bindet sie an einen <i>Transport /// Stream</i>. /// </summary> /// <param name="tsFile">Der <i>Transport Stream</i>, zu dem noch keine /// <param name="audioName">Der ISO Name der Sprache.</param> /// Datenströme hinzugefügt wurden.</param> public PVASplitter(Manager tsFile, string audioName) { // Remember TransportStream = tsFile; // Open streams m_Video = TransportStream.AddVideo(255); m_Audio = TransportStream.AddAudio(audioName); // Register self for PTS guidance TransportStream.PVASplitter = this; // Create reader m_Worker = new Thread(new ThreadStart(Worker)); // Configure m_Worker.SetApartmentState(ApartmentState.MTA); // Run it m_Worker.Start(); }