public static bool Sync(int stream, StreamContentType streamContentType) { SyncWord syncWord; switch (streamContentType) { case StreamContentType.DD: syncWord = new DDSyncWord(); break; case StreamContentType.DTS14Bit: syncWord = new DTS14bitSyncWord(); break; case StreamContentType.DTS: syncWord = new DTSSyncWord(); break; case StreamContentType.IEC61937: syncWord = new IECSyncWord(); break; default: syncWord = null; break; } if (syncWord != null) return SyncToWord(stream, syncWord); else return false; }
private static bool IsDTS(int stream) { SyncWord syncWord = new DTSSyncWord(); return IsEncoded(stream, syncWord); }