Skip to content

Source 4 Explicit-Control: Unable to terminate the program after playing a sound #1509

Open
@Ziwen510

Description

@Ziwen510

In the Explicit-Control variant of Source 4, the program fails to terminate properly after executing a "play" function in the sound module. This malfunction presents as a lack of output and results in a website crash, specifically due to an "out of memory" error.

To reproduce:
import {play, make_sound} from "sound"; play(make_sound(x => math_sin(440 * 2 * x * math_PI), 2));

Possible reason:
It appears that the ECE interpreter is prematurely concluding its evaluation process, while the sound processing is not fully complete.

Possible solution:
Implement an asynchronous operation for the interpreter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions