|
|
@ -239,7 +239,7 @@ settings.HeadphonesSettings = SettingsScreen:new { |
|
|
|
value = 0, |
|
|
|
value = 0, |
|
|
|
} |
|
|
|
} |
|
|
|
balance:onevent(lvgl.EVENT.VALUE_CHANGED, function() |
|
|
|
balance:onevent(lvgl.EVENT.VALUE_CHANGED, function() |
|
|
|
volume.left_bias:set(balance:value()) |
|
|
|
volume.left_bias:set(-balance:value()) |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
local balance_label = self.content:Label {} |
|
|
|
local balance_label = self.content:Label {} |
|
|
@ -254,7 +254,7 @@ settings.HeadphonesSettings = SettingsScreen:new { |
|
|
|
end), |
|
|
|
end), |
|
|
|
volume.left_bias:bind(function(bias) |
|
|
|
volume.left_bias:bind(function(bias) |
|
|
|
balance:set { |
|
|
|
balance:set { |
|
|
|
value = bias |
|
|
|
value = -bias |
|
|
|
} |
|
|
|
} |
|
|
|
if bias < 0 then |
|
|
|
if bias < 0 then |
|
|
|
balance_label:set { |
|
|
|
balance_label:set { |
|
|
|