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

Merge branch 'master' of github.com:psychopy/psychojs

This commit is contained in:
Alain Pitiot 2020-12-04 10:29:53 +01:00
commit 26cf59b047

View File

@ -339,8 +339,14 @@ export class TonePlayer extends SoundPlayer
this._synth.connect(this._volumeNode);
// connect the volume node to the master output:
this._volumeNode.toDestination();
if (typeof this._volumeNode.toDestination === 'function')
{
this._volumeNode.toDestination();
}
else
{
this._volumeNode.toMaster();
}
}
else
{