1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-11 16:18:10 +00:00

Merge pull request #162 from thewhodidthis/bf#155--sound

sound/TonePlayer: fix triggerRelease
This commit is contained in:
Alain Pitiot 2020-09-04 22:42:53 +02:00 committed by GitHub
commit 567b3e0338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ export class TonePlayer extends SoundPlayer
if (this._soundLibrary === TonePlayer.SoundLibrary.TONE_JS)
{
// trigger the release of the sound, immediately:
this._synth.triggerRelease();
this._synth.triggerRelease(this._note);
// clear the repeat event if need be:
if (this._toneId)