Skip to content

Commit

Permalink
SP-06: Finetune volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Tihi321 committed Apr 7, 2024
1 parent 311549a commit 1bb77e9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
18 changes: 16 additions & 2 deletions src/blocks/audio/Beats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,22 @@ export const Beats = ({ src, name }: { name: string; src: string }) => {
</audio>
<Name>{name}</Name>
<AudioControls>
<Slider type="range" min="0" max="10" step="1" value={audioVolume()} onChange={onChange} />
<Input type="number" min="0" max="10" step="1" value={audioVolume()} onChange={onChange} />
<Slider
type="range"
min="0"
max="10"
step="0.1"
value={audioVolume()}
onChange={onChange}
/>
<Input
type="number"
min="0"
max="10"
step="0.1"
value={audioVolume()}
onChange={onChange}
/>
</AudioControls>
</Container>
);
Expand Down
9 changes: 8 additions & 1 deletion src/blocks/audio/MusicPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,14 @@ export const MusicPlayer = () => {
{formatTime(duration())}
</TimelineContainer>
<Divider />
<Slider type="range" min="0" max="10" step="1" value={audioVolume()} onChange={onChange} />
<Slider
type="range"
min="0"
max="10"
step="0.01"
value={audioVolume()}
onChange={onChange}
/>
<Divider />
<GroupContainer>
<Title>B</Title>
Expand Down

0 comments on commit 1bb77e9

Please sign in to comment.