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
HTPC Projects
Software
Operating System
Hide Windows volume OSD
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="mm1352000" data-source="post: 1171178" data-attributes="member: 82144"><p>Argh, the code seems to be very messy. I don't like code like this. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>[USER=60104]@Sebastiii[/USER]</p><p>Why do we have the "if (GUIGraphicsContext.DeviceAudioConnected > 0)" checks?</p><p>Is it to avoid initialising/using the "_mixer" object, or...?</p><p></p><p>Why is the code sometimes checking whether the volume is 19660500 instead of checking DeviceAudioConnected?</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/DShowNET/Helper/DirectShowUtil.cs#L945" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/DShowNET/Helper/DirectShowUtil.cs#L945</a></p><p></p><p>In general it seems like the Mixer and MasterVolumeHandler classes were designed to handle the situation when no audio end-point is available, so I don't understand why the "wrapping checks" - "if (...)" - are needed.</p><p></p><p><sigh></p></blockquote><p></p>
[QUOTE="mm1352000, post: 1171178, member: 82144"] Argh, the code seems to be very messy. I don't like code like this. :( [USER=60104]@Sebastiii[/USER] Why do we have the "if (GUIGraphicsContext.DeviceAudioConnected > 0)" checks? Is it to avoid initialising/using the "_mixer" object, or...? Why is the code sometimes checking whether the volume is 19660500 instead of checking DeviceAudioConnected? [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/DShowNET/Helper/DirectShowUtil.cs#L945[/URL] In general it seems like the Mixer and MasterVolumeHandler classes were designed to handle the situation when no audio end-point is available, so I don't understand why the "wrapping checks" - "if (...)" - are needed. <sigh> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Software
Operating System
Hide Windows volume OSD
Contact us
RSS
Top
Bottom