Skip to content

Commit

Permalink
Gain kludge
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Solomon committed Feb 13, 2022
1 parent 6611a8b commit 5ed2a13
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.8] - 2022-01-03
## [0.6.9] - 2022-02-08

### Fixed

- Fixes clicks in certain scenarios where gain is 0.

## [0.6.8] - 2022-02-08

### Added

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "purescript-wags",
"version": "0.6.8",
"version": "0.6.9",
"description": "Web Audio Graphs as a Stream",
"scripts": {
"build": "spago build",
Expand Down
3 changes: 3 additions & 0 deletions src/WAGS/Interpret.js
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,9 @@ exports.setGain_ = function (ptr) {
return function (a) {
return function (state) {
return function () {
if (!state.units[ptr].main.gain.value && a.param) {
state.units[ptr].main.gain.value = 0.0;
}
genericSetter(state.units[ptr].main, "gain", state.writeHead, a);
};
};
Expand Down

0 comments on commit 5ed2a13

Please sign in to comment.