mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-12 16:48:10 +00:00
Merge pull request #162 from thewhodidthis/bf#155--sound
sound/TonePlayer: fix triggerRelease
This commit is contained in:
commit
567b3e0338
@ -266,7 +266,7 @@ export class TonePlayer extends SoundPlayer
|
|||||||
if (this._soundLibrary === TonePlayer.SoundLibrary.TONE_JS)
|
if (this._soundLibrary === TonePlayer.SoundLibrary.TONE_JS)
|
||||||
{
|
{
|
||||||
// trigger the release of the sound, immediately:
|
// trigger the release of the sound, immediately:
|
||||||
this._synth.triggerRelease();
|
this._synth.triggerRelease(this._note);
|
||||||
|
|
||||||
// clear the repeat event if need be:
|
// clear the repeat event if need be:
|
||||||
if (this._toneId)
|
if (this._toneId)
|
||||||
|
Loading…
Reference in New Issue
Block a user