Skip to content

Commit

Permalink
adding setVolume method (#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
sambaneko authored Sep 22, 2023
1 parent 48eb58e commit 25b5579
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/webamp/js/webampLazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,13 @@ class Webamp {
this.store.dispatch(Actions.stop());
}

/**
* Set volume from 0 - 100
*/
setVolume(volume: number): void {
this.store.dispatch(Actions.setVolume(volume));
}

/**
* Seek backward n seconds in the curent track
*/
Expand Down

0 comments on commit 25b5579

Please sign in to comment.