2010-01-25, 05:06
I may be wrong about this, but it would be easy to test out....
And it would explain why your solution worked for me not you - I've normalized all of my mp3's...
If your mp3 file has some sort of volume setting set in it, it looks like the code turns the xbmc volume down based on it.
This is from (Windows 7), C:\Users\ (your name) \APPDATA\XBMC\scripts\Home Theater Experience\resources\lib\xbmcscript_trivia.py
You can test this by simply addingin #'s in front of the above lines, like below:
I just did this to my system, and it didn't seem to break anything at the very least...so worth a try.
And it would explain why your solution worked for me not you - I've normalized all of my mp3's...
dbldown768 Wrote:I have a problem with the trivia volume? It is always set at 50%. I see that this is the default value in the settings.xml file. I have changed the default to be 100%, but that didnt seem to work. I do not see this setting anywhere in the onscreen configuration menu of the script?
I should also add, i tried to change the settings.xml in the userdata folder (scripts_data) to 100%. Seems to not matter here as well.
If your mp3 file has some sort of volume setting set in it, it looks like the code turns the xbmc volume down based on it.
This is from (Windows 7), C:\Users\ (your name) \APPDATA\XBMC\scripts\Home Theater Experience\resources\lib\xbmcscript_trivia.py
def _start_slideshow_music( self ):
# did user set this preference
if ( self.settings[ "trivia_music_file" ] ):
# calculate the new volume
volume = self.current_volume * ( float( self.settings[ "trivia_music_volume" ] ) / 100 )
# set the volume percent of current volume
xbmc.executebuiltin( "XBMC.SetVolume(%d)" % ( volume, ) )
# play music
xbmc.Player( xbmc.PLAYLIST_MUSIC ).play( self.settings[ "trivia_music_file" ] )
# did user set this preference
if ( self.settings[ "trivia_music_file" ] ):
# calculate the new volume
volume = self.current_volume * ( float( self.settings[ "trivia_music_volume" ] ) / 100 )
# set the volume percent of current volume
xbmc.executebuiltin( "XBMC.SetVolume(%d)" % ( volume, ) )
# play music
xbmc.Player( xbmc.PLAYLIST_MUSIC ).play( self.settings[ "trivia_music_file" ] )
You can test this by simply addingin #'s in front of the above lines, like below:
def _start_slideshow_music( self ):
# did user set this preference
#if ( self.settings[ "trivia_music_file" ] ):
# calculate the new volume
#volume = self.current_volume * ( float( self.settings[ "trivia_music_volume" ] ) / 100 )
# set the volume percent of current volume
# xbmc.executebuiltin( "XBMC.SetVolume(%d)" % ( volume, ) )
# play music
xbmc.Player( xbmc.PLAYLIST_MUSIC ).play( self.settings[ "trivia_music_file" ] )
# did user set this preference
#if ( self.settings[ "trivia_music_file" ] ):
# calculate the new volume
#volume = self.current_volume * ( float( self.settings[ "trivia_music_volume" ] ) / 100 )
# set the volume percent of current volume
# xbmc.executebuiltin( "XBMC.SetVolume(%d)" % ( volume, ) )
# play music
xbmc.Player( xbmc.PLAYLIST_MUSIC ).play( self.settings[ "trivia_music_file" ] )
I just did this to my system, and it didn't seem to break anything at the very least...so worth a try.