How to use the standardized-audio-context.AudioContext function in standardized-audio-context

To help you get started, we’ve selected a few standardized-audio-context examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nextgtrgod / webaudio-synth / src / modules / Synth.js View on Github external
constructor() {

		try {
			this.context = window.webkitAudioContext
				? new sAudioContext()
				: new AudioContext()

			document.body.addEventListener('mousedown', this.resumeAudio)
			document.body.addEventListener('keydown', this.resumeAudio)
		}
		catch (e) {
			alert('Web Audio API is not supported in this browser');
			return;
		};

		this.store = new Store(settings);


		// creating controls
		this.controls = [];
github vitaliy-bobrov / js-rocks / src / app / audio / audio-context-manager.service.ts View on Github external
constructor() {
    this.context = new AudioContext({
      latencyHint: 'interactive'
    });
    this.masterGain = new GainNode(this.context);
    this.masterGain.connect(this.context.destination);
    this.masterSub$.next(1);
  }
github Tonejs / Tone.js / Tone / core / context / AudioContext.ts View on Github external
export function createAudioContext(): AudioContext {
	return new stdAudioContext() as unknown as AudioContext;
}
github chrisguttandin / angular-audio-context / src / audio-context-factory.ts View on Github external
export function audioContextFactory (latencyHint: IAudioContextOptions['latencyHint']): IAudioContext {
    return new AudioContext({ latencyHint });
}