Пример #1
0
 /// <summary>
 /// Dispose code
 /// </summary>
 public void Dispose()
 {
     if (mediaObjectInPlace != null)
     {
         Marshal.ReleaseComObject(mediaObjectInPlace);
         mediaObjectInPlace = null;
     }
 }
Пример #2
0
        private void Configure()
        {
            int hr;

            DMOWrapperFilter  dmoFilter        = new DMOWrapperFilter();
            IDMOWrapperFilter dmoWrapperFilter = (IDMOWrapperFilter)dmoFilter;

            // Chorus - {efe6629c-81f7-4281-bd91-c9d604a95af6}
            // DmoFlip - {7EF28FD7-E88F-45bb-9CDD-8A62956F2D75}
            //hr = dmoWrapperFilter.Init(new Guid("{7EF28FD7-E88F-45bb-9CDD-8A62956F2D75}"), DMOCategory.AudioEffect);
            hr = dmoWrapperFilter.Init(new Guid("{efe6629c-81f7-4281-bd91-c9d604a95af6}"), DMOCategory.AudioEffect);
            DMOError.ThrowExceptionForHR(hr);

            m_imo   = dmoWrapperFilter as IMediaObject;
            m_imoip = dmoWrapperFilter as IMediaObjectInPlace;
        }
Пример #3
0
 /// <summary>
 /// Creates a new Media Object InPlace
 /// </summary>
 /// <param name="mediaObjectInPlace">Media Object InPlace COM Interface</param>
 internal MediaObjectInPlace(IMediaObjectInPlace mediaObjectInPlace)
 {
     this.mediaObjectInPlace = mediaObjectInPlace;
 }