Code Monkey home page Code Monkey logo

Comments (4)

Vurv78 avatar Vurv78 commented on August 27, 2024 1

Need to make WebAudio properly give an error if you try and use it while it isn't valid then. (At least with @strict on)

from webaudio.

Vurv78 avatar Vurv78 commented on August 27, 2024

Use the @strict directive and your chip should throw an error. This code probably doesn't work as you are going over the networking burst limit (it should be 10/s but I don't know if your chip is running more than this example does)

Also xwa:pause() xwa:play() and xwa:update() all send the information to the client so you don't need to do xwa:update() and then xwa:pause() right after, you can just do xwa:pause()

from webaudio.

oneandonlyjason avatar oneandonlyjason commented on August 27, 2024

Yeah this was Just an Example to See if i make anything wrong in my normal Chip

My Normal Chip Starts a Stream when i use a Command.
When i use the Stop Command the Chip Executes:
Music:stop()

Where Music is my WebAudio Object. I can also see that this Part of the Code Executes because everything Visual after that Command Executes correctly
Just the Music does not stop, it just keeps Playing. And Same for the Volume in the End
When i activate the @strict directive it also doesnt throw an Error it just doesnt pause the Music

from webaudio.

oneandonlyjason avatar oneandonlyjason commented on August 27, 2024

Ok i figured out what was wrong... And its kinda my Bad because im not used to OOP in E2. I needed a @persist Stream:webaudio so that the Object he would use is the Same Everytime i guess. My Guess is that the Object was not Persist and Global per Default so he didnt find it when he Tried to Stop the Stream

from webaudio.

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.