Skip to content

Commit

Permalink
make output volume go to 200%
Browse files Browse the repository at this point in the history
  • Loading branch information
nin0-dev committed Dec 30, 2024
1 parent 40eaaf7 commit 2c40908
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/vcPanelSettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ function OutputVolumeComponent() {

return (
<>
{Settings.plugins.VCPanelSettings.showOutputVolumeHeader && <Forms.FormTitle>Output volume - {Math.floor(outputVolume)}%</Forms.FormTitle>}
<Slider maxValue={200} minValue={0} initialValue={outputVolume} hideBubble={Settings.plugins.VCPanelSettings.showOutputVolumeHeader} onValueChange={volume => {
{Settings.plugins.VCPanelSettings.showOutputVolumeHeader && <Forms.FormTitle>Output volume</Forms.FormTitle>}
<Slider maxValue={200} minValue={0} onValueRender={v => `${v.toFixed(0)}%`} initialValue={outputVolume} asValueChanges={volume => {
FluxDispatcher.dispatch({
type: "AUDIO_SET_OUTPUT_VOLUME",
volume
Expand All @@ -48,8 +48,8 @@ function InputVolumeComponent() {

return (
<>
{Settings.plugins.VCPanelSettings.showInputVolumeHeader && <Forms.FormTitle>Input volume - {Math.floor(inputVolume)}%</Forms.FormTitle>}
<Slider maxValue={100} minValue={0} initialValue={inputVolume} onValueChange={volume => {
{Settings.plugins.VCPanelSettings.showInputVolumeHeader && <Forms.FormTitle>Input volume</Forms.FormTitle>}
<Slider maxValue={100} minValue={0} initialValue={inputVolume} asValueChanges={volume => {
FluxDispatcher.dispatch({
type: "AUDIO_SET_INPUT_VOLUME",
volume
Expand Down

0 comments on commit 2c40908

Please sign in to comment.