mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-11 16:18:10 +00:00
sound/TonePlayer: post Tone.js upgrade tweaks
This commit is contained in:
parent
581acf18aa
commit
e22ef2f2ea
@ -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._note);
|
||||
this._synth.triggerRelease();
|
||||
|
||||
// clear the repeat event if need be:
|
||||
if (this._toneId)
|
||||
@ -339,7 +339,7 @@ export class TonePlayer extends SoundPlayer
|
||||
this._synth.connect(this._volumeNode);
|
||||
|
||||
// connect the volume node to the master output:
|
||||
this._volumeNode.toMaster();
|
||||
this._volumeNode.toDestination();
|
||||
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user