Coder Social home page Coder Social logo

Comments (6)

meshula avatar meshula commented on June 1, 2024

This is expected to work, the GraphToy relies on it. Thanks for the report.

from labsound.

Avataren avatar Avataren commented on June 1, 2024

This is the code that prevents the connection from working:
in AudioNode::processIfNecessary:

if (isScheduledNode() && (_self->_scheduler._playbackState < SchedulingState::FADE_IN || _self->_scheduler._playbackState == SchedulingState::FINISHED)) { silenceOutputs(r); if (diagnosing_silence) ac->diagnosed_silence("Unscheduled"); return; }

If I comment this out, it works as expected.. _playbackState is "SCHEDULED" at this moment, but it never gets to FADE_IN it seems.

from labsound.

Avataren avatar Avataren commented on June 1, 2024

I found that by calling start(0.f) on the node, instead of AudioContext::currentTime, it does seem to work.

from labsound.

meshula avatar meshula commented on June 1, 2024

ah great. The GraphToy expects that connected nodes are not playing on connection otherwise your speakers might explode, especially connecting a weird signal generator.

So I take it you don't need a modification to the code?

from labsound.

Avataren avatar Avataren commented on June 1, 2024

I am fine with the way it works, as long as I know how to get the nodes playing again. All my output is going through an amplitude envelope, so I'm not worried about my speakers. :)

from labsound.

meshula avatar meshula commented on June 1, 2024

Sounds good :)

from labsound.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.