Skip to content

[error] WebAudio AudioContext #1175

@c4lliope

Description

@c4lliope

I am using Faust code I had success on earlier, to render my MIDI keyboard signal into audio.
Today, I see an odd error in the console:

In Brave:

The AudioContext encountered an error from the audio device or the WebAudio renderer.

In Firefox:

An AudioContext was prevented from starting automatically. It must be created or resumed after a user gesture on the page.

Here is the specific Faust code:

declare options "[midi:on][nvoices:12]";
import("stdfaust.lib");
freq = hslider("freq[midi:key]",200,50,1000,0.01);
gain = hslider("gain",0.5,0,1,0.01);
gate = button("gate");
envelope = en.adsr(0.01,0.01,0.8,0.1,gate)*gain;
process = os.sawtooth(freq)*envelope;

I also see this with "Output is Off". I'm unable to play any sound from Faust.

Maybe there is a dev guide to get a local copy up and running? If this has been a browser API change, I can spend some energy to make repairs. Or, perhaps a regression may require you to roll back a deployment. If you've seen this before I'll be glad to make any required changes on my side. If I can't play piano today, I'll play the other keyboard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions