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:
commit
26cf59b047
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user