home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
8 sec delay for Directsound!!?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="iosub" data-source="post: 266131" data-attributes="member: 20095"><p>On line 91 of directshowutil.cs</p><p>add</p><p>public static IBaseFilter AddAudioRendererToGraph(IGraphBuilder graphBuilder, string strFilterName, bool setAsReferenceClock)</p><p> //Iosu changes, First try to add the filter without checking or removing </p><p> {</p><p> try</p><p> {</p><p> IPin pinOut = null;</p><p> IBaseFilter NewFilter = null;</p><p> IEnumFilters enumFilters;</p><p> HResult hr = new HResult(graphBuilder.EnumFilters(out enumFilters));</p><p> Log.Info("DirectShowUtils: IOSU First Try Insert new Audio Renderer {0} ", strFilterName);</p><p> // next add the new one...</p><p> foreach (Filter filter in Filters.AudioRenderers)</p><p> {</p><p> if (String.Compare(filter.Name, strFilterName, true) == 0)</p><p> {</p><p> Log.Info("DirectShowUtils: Passed finding Audio Renderer");</p><p> NewFilter = (IBaseFilter)Marshal.BindToMoniker(filter.MonikerString);</p><p> hr.Set(graphBuilder.AddFilter(NewFilter, strFilterName));</p><p> if (hr < 0)</p><p> {</p><p> Log.Error("failed:unable to add filter:{0} to graph", strFilterName);</p><p> NewFilter = null;</p><p> }</p><p> else</p><p> {</p><p> Log.Debug("added filter:{0} to graph", strFilterName);</p><p> if (pinOut != null)</p><p> {</p><p> hr.Set(graphBuilder.Render(pinOut));</p><p> if (hr == 0) Log.Info(" pinout rendererd");</p><p> else Log.Error(" failed: pinout render");</p><p> }</p><p> if (setAsReferenceClock)</p><p> {</p><p> hr.Set((graphBuilder as IMediaFilter).SetSyncSource(NewFilter as IReferenceClock));</p><p> Log.Debug("setAsReferenceClock sync source " + hr.ToDXString());</p><p> }</p><p> return NewFilter;</p><p> }</p><p> }//if (String.Compare(filter.Name,strFilterName,true) ==0)</p><p> }//foreach (Filter filter in filters.AudioRenderers)</p><p> if (NewFilter == null)</p><p> {</p><p> Log.Error("failed filter:{0} not found", strFilterName);</p><p> }</p><p> }</p><p> catch</p><p> {</p><p> Log.Info("DirectShowUtils: IOSU FAILD First Try Insert new Audio Renderer {0} ", strFilterName);</p><p> }</p><p> Log.Info("DirectShowUtils: IOSU FAILD First Try Insert new Audio Renderer {0} ", strFilterName);</p><p> //End Iosu's change, It has fail so go to Old Methond</p><p></p><p>try</p><p>====================================================================================</p><p></p><p></p><p>Also another delay... 6sec on</p><p>TsReaderPlayer.cs on line 410</p><p> hr = interfaceFile.Load(filename, null);</p><p>If the file is rtsp:\\ it takes only less 1sec but if the file is R:\MediaShift\live4-0.ts.tsbuffer it takes 6SEC!!...</p><p></p><p>I think that if we speed up these issues... "we will fix the No responding...."</p><p></p><p></p><p>Iosu</p></blockquote><p></p>
[QUOTE="iosub, post: 266131, member: 20095"] On line 91 of directshowutil.cs add public static IBaseFilter AddAudioRendererToGraph(IGraphBuilder graphBuilder, string strFilterName, bool setAsReferenceClock) //Iosu changes, First try to add the filter without checking or removing { try { IPin pinOut = null; IBaseFilter NewFilter = null; IEnumFilters enumFilters; HResult hr = new HResult(graphBuilder.EnumFilters(out enumFilters)); Log.Info("DirectShowUtils: IOSU First Try Insert new Audio Renderer {0} ", strFilterName); // next add the new one... foreach (Filter filter in Filters.AudioRenderers) { if (String.Compare(filter.Name, strFilterName, true) == 0) { Log.Info("DirectShowUtils: Passed finding Audio Renderer"); NewFilter = (IBaseFilter)Marshal.BindToMoniker(filter.MonikerString); hr.Set(graphBuilder.AddFilter(NewFilter, strFilterName)); if (hr < 0) { Log.Error("failed:unable to add filter:{0} to graph", strFilterName); NewFilter = null; } else { Log.Debug("added filter:{0} to graph", strFilterName); if (pinOut != null) { hr.Set(graphBuilder.Render(pinOut)); if (hr == 0) Log.Info(" pinout rendererd"); else Log.Error(" failed: pinout render"); } if (setAsReferenceClock) { hr.Set((graphBuilder as IMediaFilter).SetSyncSource(NewFilter as IReferenceClock)); Log.Debug("setAsReferenceClock sync source " + hr.ToDXString()); } return NewFilter; } }//if (String.Compare(filter.Name,strFilterName,true) ==0) }//foreach (Filter filter in filters.AudioRenderers) if (NewFilter == null) { Log.Error("failed filter:{0} not found", strFilterName); } } catch { Log.Info("DirectShowUtils: IOSU FAILD First Try Insert new Audio Renderer {0} ", strFilterName); } Log.Info("DirectShowUtils: IOSU FAILD First Try Insert new Audio Renderer {0} ", strFilterName); //End Iosu's change, It has fail so go to Old Methond try ==================================================================================== Also another delay... 6sec on TsReaderPlayer.cs on line 410 hr = interfaceFile.Load(filename, null); If the file is rtsp:\\ it takes only less 1sec but if the file is R:\MediaShift\live4-0.ts.tsbuffer it takes 6SEC!!... I think that if we speed up these issues... "we will fix the No responding...." Iosu [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
8 sec delay for Directsound!!?
Contact us
RSS
Top
Bottom