-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
qualifyIssues that need to be discussed furtherIssues that need to be discussed further
Description
to react on the BEEP character of ANSI, use the following code:
beep() {
const audioContext = new AudioContext();
const oscillator = audioContext.createOscillator();
const gainNode = audioContext.createGain();
oscillator.connect(gainNode);
gainNode.connect(audioContext.destination);
oscillator.frequency.value = 800; // Frequency in Hz
gainNode.gain.value = 0.3; // Volume (0-1)
oscillator.start();
oscillator.stop(audioContext.currentTime + 0.1); // Duration 100ms
}and in processAnsi:
case 7:
this.beep();
display = false;
break;```Metadata
Metadata
Assignees
Labels
qualifyIssues that need to be discussed furtherIssues that need to be discussed further