コード例 #1
0
        /// <summary>
        /// Invoke the action synchronously
        /// </summary>
        /// <remarks>Blocks until the action has been processed
        /// on the device and sets any output arguments</remarks>
        /// <param name="aDuration"></param>
        /// <param name="aBitRate"></param>
        /// <param name="aBitDepth"></param>
        /// <param name="aSampleRate"></param>
        /// <param name="aLossless"></param>
        /// <param name="aCodecName"></param>
        public void SyncDetails(out uint aDuration, out uint aBitRate, out uint aBitDepth, out uint aSampleRate, out bool aLossless, out String aCodecName)
        {
            SyncDetailsAvOpenhomeOrgInfo1 sync = new SyncDetailsAvOpenhomeOrgInfo1(this);

            BeginDetails(sync.AsyncComplete());
            sync.Wait();
            sync.ReportError();
            aDuration   = sync.Duration();
            aBitRate    = sync.BitRate();
            aBitDepth   = sync.BitDepth();
            aSampleRate = sync.SampleRate();
            aLossless   = sync.Lossless();
            aCodecName  = sync.CodecName();
        }
コード例 #2
0
ファイル: CpAvOpenhomeOrgInfo1.cs プロジェクト: nterry/ohNet
 /// <summary>
 /// Invoke the action synchronously
 /// </summary>
 /// <remarks>Blocks until the action has been processed
 /// on the device and sets any output arguments</remarks>
 /// <param name="aDuration"></param>
 /// <param name="aBitRate"></param>
 /// <param name="aBitDepth"></param>
 /// <param name="aSampleRate"></param>
 /// <param name="aLossless"></param>
 /// <param name="aCodecName"></param>
 public void SyncDetails(out uint aDuration, out uint aBitRate, out uint aBitDepth, out uint aSampleRate, out bool aLossless, out String aCodecName)
 {
     SyncDetailsAvOpenhomeOrgInfo1 sync = new SyncDetailsAvOpenhomeOrgInfo1(this);
     BeginDetails(sync.AsyncComplete());
     sync.Wait();
     sync.ReportError();
     aDuration = sync.Duration();
     aBitRate = sync.BitRate();
     aBitDepth = sync.BitDepth();
     aSampleRate = sync.SampleRate();
     aLossless = sync.Lossless();
     aCodecName = sync.CodecName();
 }