Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
changeVolume(audioOptions, callback) update
Browse files Browse the repository at this point in the history
  • Loading branch information
benjokoren-ow committed Jul 23, 2024
1 parent e613337 commit afb7f14
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pages/api/changelogs/overwolf-platform/2024/july/256.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ sidebar_custom_props:
electron_platform: false
---

### API
- Added the [`overwolf.media.replays.changeVolume()`](/api/media/replays#changevolumeaudiooptions-callback) method, will change the volume of the Game/Mic audio sources.

### Bug Fixes
- Fixed an issue where Overwolf would not load properly if `OverwolfBrowser.exe` was run as admin.
- Fixed a visual mismatch between HDR recording in Overwolf and HDR recording in OBS Studio.
- Fixed an issue where the microphone could be heard on all audio tracks when it was set to volume 0 at the start of the recording.
- Fixed an issue where duplicate audio/monitor sources were created when using the replays and streaming services together.
- Fixed an issue where duplicate audio/monitor sources were created when using the replays and streaming services together.
- Fixed an issue where replays volume was set to 100 even when the volume was set to 0.
14 changes: 13 additions & 1 deletion pages/api/media/replays/replays.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Please read all the info about video capture usage and options on our [video cap
* [overwolf.media.replays.stopCapture()](#stopcapturereplaytype-replayid-callback)
* [overwolf.media.replays.stopCapture()](#stopcapturereplayid-callback)
* [overwolf.media.replays.getHighlightsFeatures()](#gethighlightsfeaturesgameid-callback)
* overwolf.media.replays.turnOff() - Obsolete.
* [overwolf.media.replays.changeVolume()](#changevolumeaudiooptions-callback)

## Events Reference

Expand Down Expand Up @@ -351,6 +351,18 @@ If you run getHighlightsFeatures() for unsupported game, you will get "no featu
"error": "no feature supported"}
```

## changeVolume(audioOptions, callback)
#### Version added: 0.256

> Changes the volume of the replay.
Parameter | Type | Description |
------------- | --------------------------------------------------------| ----------------------------------------------------- |
audioOptions | [StreamAudioOptions](#streamaudiooptions-object) Object | The new volumes encapsulated in an object |
callback | (Result) => void | Returns with the result |



## onCaptureError

#### Version added: 0.78
Expand Down

0 comments on commit afb7f14

Please sign in to comment.