Comments (4)
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.
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.
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.
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)
- Audio Parenting Issue HOT 2
- Block streamed audio
- Addition of https://www.liveatc.net to the whitelist
- No Function with Newest Version anymore HOT 4
- Non-E2 support via integration with Sound Emitter, SPU. HOT 4
- Unable to read webaudio from tables and arrays
- pasting a webaudio chip with advdupe2 causes a lua error HOT 1
- What is the Whitelist Format? HOT 2
- Works for some, but not for all. HOT 1
- Clientside error lua/webaudio/receiver.lua:307: Tried to use a NULL entity HOT 2
- URL Whitelist Addition - TrekCore
- [[E2] WebAudio] lua/entities/gmod_wire_expression2/core/custom/webaudio.lua:22: attempt to call field 'RegisterPlayerTable' (a nil value) HOT 1
- webaudio:set3DEnabled does not actually change the "3d" flag in sound.PlayURL HOT 4
- [E2 addon] Suggestion - bass error flags and webaudio_maxfilesize sv convar HOT 1
- Document `wa_sc_compat` or enable by default
- CL Lua error
- Use e2function Definitions HOT 4
- Add Catbox to Whitelist
- More explicit errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webaudio.