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
[MP1-4838] Volume control no longer functions properly when changing audio device
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="Sebastiii" data-source="post: 1207691" data-attributes="member: 60104"><p>In mediaportal.cs we have that : I think it's here the init is done : line 3123</p><p></p><p> VolumeHandler.CreateInstance();</p><p> GUIGraphicsContext.VolumeHandler = VolumeHandler.Instance;</p><p></p><p>If we are looking in \mediaportal\Core\DShowNET\Helper\DirectShowUtil.cs line 905</p><p></p><p>[code=csharp]try</p><p> {</p><p> // vh.Volume = 19660500 that means Audio endpoint device are not available.</p><p> if (GUIGraphicsContext.VolumeHandler != null && GUIGraphicsContext.VolumeHandler.Volume == 19660500) // Check if new audio device is connected</p><p> {</p><p> Log.Debug("DirectShowUtil: need dispose volume handler value {0}", GUIGraphicsContext.VolumeHandler.Volume);</p><p> VolumeHandler.Dispose();</p><p> GUIGraphicsContext.VolumeHandler = VolumeHandler.Instance;</p><p> }</p><p> if (GUIGraphicsContext.VolumeHandler != null && GUIGraphicsContext.VolumeHandler.Volume != 19660500 && GUIGraphicsContext.DeviceAudioConnected > 0)</p><p> {</p><p> Log.Debug("DirectShowUtil: volume handler value {0}", GUIGraphicsContext.VolumeHandler.Volume);</p><p> Log.Debug("DirectShowUtil: build the graph for PIN : {0}", pinName);</p><p> hr = graphBuilder.Render(pins[0]);</p><p> }</p><p> }</p><p> catch (Exception exception)</p><p> {</p><p> Log.Warn("DirectShowUtil: Could not initialize volume handler (don't connect Audio Pin) : {0}", exception.Message);</p><p> }[/code]</p><p></p><p>That part does a reinit, maybe it's possible to reinit differently elsewhere ?</p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1207691, member: 60104"] In mediaportal.cs we have that : I think it's here the init is done : line 3123 VolumeHandler.CreateInstance(); GUIGraphicsContext.VolumeHandler = VolumeHandler.Instance; If we are looking in \mediaportal\Core\DShowNET\Helper\DirectShowUtil.cs line 905 [code=csharp]try { // vh.Volume = 19660500 that means Audio endpoint device are not available. if (GUIGraphicsContext.VolumeHandler != null && GUIGraphicsContext.VolumeHandler.Volume == 19660500) // Check if new audio device is connected { Log.Debug("DirectShowUtil: need dispose volume handler value {0}", GUIGraphicsContext.VolumeHandler.Volume); VolumeHandler.Dispose(); GUIGraphicsContext.VolumeHandler = VolumeHandler.Instance; } if (GUIGraphicsContext.VolumeHandler != null && GUIGraphicsContext.VolumeHandler.Volume != 19660500 && GUIGraphicsContext.DeviceAudioConnected > 0) { Log.Debug("DirectShowUtil: volume handler value {0}", GUIGraphicsContext.VolumeHandler.Volume); Log.Debug("DirectShowUtil: build the graph for PIN : {0}", pinName); hr = graphBuilder.Render(pins[0]); } } catch (Exception exception) { Log.Warn("DirectShowUtil: Could not initialize volume handler (don't connect Audio Pin) : {0}", exception.Message); }[/code] That part does a reinit, maybe it's possible to reinit differently elsewhere ? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
[MP1-4838] Volume control no longer functions properly when changing audio device
Contact us
RSS
Top
Bottom