コード例 #1
0
        /// <summary>
        /// Positions the stream at the start of the next frame.
        /// </summary>
        /// <param name="stream"></param>
        /// <param name="streamContentType"></param>
        /// <returns></returns>
        public void SeekNextFrame(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)
            {
                SeekNextFrame(syncWord);
            }
        }
コード例 #2
0
ファイル: BassStream.cs プロジェクト: joconno4/MediaPortal-2
 /// <summary>
 /// Determines if the stream contains DTS data in 14 bit format.
 /// </summary>
 /// <returns></returns>
 private bool Is14bitDTS()
 {
   SyncWord syncWord = new DTS14bitSyncWord();
   return IsEncoded(syncWord);
 }
コード例 #3
0
ファイル: BassStream.cs プロジェクト: joconno4/MediaPortal-2
    /// <summary>
    /// Positions the stream at the start of the next frame.
    /// </summary>
    /// <param name="stream"></param>
    /// <param name="streamContentType"></param>
    /// <returns></returns>
    public void SeekNextFrame(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)
        SeekNextFrame(syncWord);
    }
コード例 #4
0
        /// <summary>
        /// Determines if the stream contains DTS data in 14 bit format.
        /// </summary>
        /// <returns></returns>
        private bool Is14bitDTS()
        {
            SyncWord syncWord = new DTS14bitSyncWord();

            return(IsEncoded(syncWord));
        }