コード例 #1
0
        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;
        }
コード例 #2
0
 private static bool IsDD(int stream)
 {
     SyncWord syncWord = new DDSyncWord();
       return IsEncoded(stream, syncWord);
 }