Giter Club home page Giter Club logo

Comments (3)

devongovett avatar devongovett commented on July 21, 2024

No, assets are an object representation of a file, so reusing them would defeat that purpose. Maybe I'm misunderstanding you though.

from aurora.js.

lapsio avatar lapsio commented on July 21, 2024

I'm trying to somehow use assets to run with my existing web audio API player with as few changes as it's possible - if i understand well - I could just 'replace' current MediaElementSource with output node from AudioDevice? (ofc adding necessary driver to fire start/stop and provide data from asset)

So i could use one AudioDevice from aurora and provide data on refill from various assets? Is it possible to create 2 AudioDevices and work on both? As currently my player supports crossfade so I'm using 2 sources.

from aurora.js.

devongovett avatar devongovett commented on July 21, 2024

You basically need parts of the refill function from AV.Player, and maybe an AV.Queue, unless you want to handle the buffering yourself. Either way, you'll listen for the data event from the AV.Asset and then copy that into whatever audio context you want via a ScriptProcessorNode (see the web audio device). Let me know if you have more questions.

from aurora.js.

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.