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="Rick164" data-source="post: 1208201" data-attributes="member: 17766"><p>First draft finished and what works:</p><p></p><p>- Re-attaches itself to device if it changes be it internally or externally</p><p>- Re-created VolumeHandler so OSD remains working</p><p>- Volume control on current default device</p><p><s></s></p><p><s>The current volume control is 0-65535 however CoreAudio wants it in 0-100, updated the VolumeStyles but even small changes raise it to 100 so think we have some 65535 reference hard coded which is causing it to round to 100 but can't find it yet.</s></p><p><s>Any ideas on where I need to change this?</s></p><p><s></s></p><p><s>Branch is located here which writes CoreAudio messages to error log for now (easier to find):</s></p><p><s></s></p><p><s><a href="https://github.com/RickDB/MediaPortal-1/commits/DEV-AudioImprovements" target="_blank">https://github.com/RickDB/MediaPortal-1/commits/DEV-AudioImprovements</a></s></p><p><s></s></p><p><s>In some plugins we also have the hard coded volume values which go above so not sure if we should just convert 0-100 to the current standard (0-65535) to make sure nothing breaks.</s></p><p><s></s></p><p>Fixed that (math is hard <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /> ), [USER=160722]@Virtual[/USER] this means we already solved the bug with this however needs more testing and would like to expand on it some more <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Other scenario that I would like to handle is:</p><p></p><p>- User is playing audio / video and in config has setup non-default directsound device.</p><p>- Volume control will change on default direct sound device with new approach.</p><p></p><p>So what we need to know when something is Playing which Audio Device is in use, this can be name / ID but has to come directly out of Mediaportal.</p><p>Then on Volume change see if different than default and change attached device for that which is easy.</p><p></p><p>Using this branch for changes:</p><p></p><p><a href="https://github.com/RickDB/MediaPortal-1/commits/DEV-AudioImprovements" target="_blank">https://github.com/RickDB/MediaPortal-1/commits/DEV-AudioImprovements</a></p></blockquote><p></p>
[QUOTE="Rick164, post: 1208201, member: 17766"] First draft finished and what works: - Re-attaches itself to device if it changes be it internally or externally - Re-created VolumeHandler so OSD remains working - Volume control on current default device [S] The current volume control is 0-65535 however CoreAudio wants it in 0-100, updated the VolumeStyles but even small changes raise it to 100 so think we have some 65535 reference hard coded which is causing it to round to 100 but can't find it yet. Any ideas on where I need to change this? Branch is located here which writes CoreAudio messages to error log for now (easier to find): [URL]https://github.com/RickDB/MediaPortal-1/commits/DEV-AudioImprovements[/URL] In some plugins we also have the hard coded volume values which go above so not sure if we should just convert 0-100 to the current standard (0-65535) to make sure nothing breaks. [/S] Fixed that (math is hard :p ), [USER=160722]@Virtual[/USER] this means we already solved the bug with this however needs more testing and would like to expand on it some more :) Other scenario that I would like to handle is: - User is playing audio / video and in config has setup non-default directsound device. - Volume control will change on default direct sound device with new approach. So what we need to know when something is Playing which Audio Device is in use, this can be name / ID but has to come directly out of Mediaportal. Then on Volume change see if different than default and change attached device for that which is easy. Using this branch for changes: [URL]https://github.com/RickDB/MediaPortal-1/commits/DEV-AudioImprovements[/URL] [/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