Example #1
0
 private void SetAllocatorProperties() { 
     _AllocatorProperties pprop = new _AllocatorProperties();
     pprop.cbPrefix = 0;
     pprop.cbAlign = 1;
     pprop.cbBuffer = bufferSize;
     pprop.cBuffers = bufferCount;
     
     ((IAMBufferNegotiation)OutputPin).SuggestAllocatorProperties(ref pprop);            
 }
Example #2
0
        /// <summary>
        /// Change the default buffer size and number of buffers in order to
        /// produce low latency audio.
        /// </summary>
        protected override void InitializeOutputPin()
        {
            base.InitializeOutputPin();

            _AllocatorProperties pprop = new _AllocatorProperties();
            pprop.cbPrefix = 0;
            pprop.cbAlign = 1;
            pprop.cbBuffer = 1000;
            pprop.cBuffers = 5;

            ((IAMBufferNegotiation)OutputPin).SuggestAllocatorProperties(ref pprop);
        }