We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
playErrorBeep()
1 parent 5316182 commit 138cfaaCopy full SHA for 138cfaa
packages/blockly/core/dragging/block_drag_strategy.ts
@@ -380,7 +380,7 @@ export class BlockDragStrategy implements IDragStrategy {
380
381
if (this.moveMode === MoveMode.CONSTRAINED) {
382
showUnconstrainedMoveHint(this.workspace, true);
383
- this.workspace.getAudioManager().beep(260);
+ this.workspace.getAudioManager().playErrorBeep();
384
}
385
386
packages/blockly/core/workspace_audio.ts
@@ -138,6 +138,13 @@ export class WorkspaceAudio {
138
oscillator.stop(this.context.currentTime + duration);
139
140
141
+ /**
142
+ * Plays a standard error beep.
143
+ */
144
+ async playErrorBeep() {
145
+ return this.beep(260);
146
+ }
147
+
148
/**
149
* Returns whether or not playing sounds is currently allowed.
150
*
0 commit comments