Commit e63678cc authored by Francois Cartegnie's avatar Francois Cartegnie

web intf: fix volume on the 200% base

parent fc1227e4
......@@ -20,7 +20,7 @@ function updateStatus(){
$('#totalTime').append(format_time($('length',data).text()));
$('#currentTime').append(format_time($('time',data).text()));
$('#seekSlider').slider({value: toFloat($('position',data).text()) * 100 });
$('#currentVolume').append(Math.round($('volume',data).text()/5.12)+'%');
$('#currentVolume').append(Math.round($('volume',data).text()/2.56)+'%');
$('#volumeSlider').slider({value: ($('volume',data).text()/5.12) });
$('#rateSlider').slider({value: ($('rate',data).text()) });
$('#currentRate').append(Math.round($('rate',data).text()*100)/100+'x');
......
......@@ -22,7 +22,7 @@ $(function(){
min: 0,
max: 100,
stop: function( event, ui ) {
$( "#currentVolume" ).empty().append( ui.value+"%" );
$( "#currentVolume" ).empty().append( ui.value * 2 +"%" );
sendCommand({
'command':'volume',
'val':Math.round(ui.value*5.12)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment