Comments (10)
Which ones are freezing it? Those look like they should all work - I'll test them out when I wake up.
from ac-music-extension.
Simply the ones that are in commentary. As soon as I disable the commentary tags it freezes the extension and you can't play any of the music. That's why I found it weird, it affects way more than I thought it would so I don't really understand.
Ok, thanks Kyle. Good Night then!
from ac-music-extension.
You might want to check the documentation for set timeout. Some of the resolutions you have set look very tight. I wonder if perhaps it's an issue with how precise your time markers are.
Harold Houchin
On Feb 15, 2016, at 7:36 AM, JdotCarver [email protected] wrote:
Simply the ones that are in commentary. As soon as I disable the commentary tags it freezes the extension and you can't play any of the music. That's why I found it weird, it affects way more than I thought it would so I don't really understand.
—
Reply to this email directly or view it on GitHub.
from ac-music-extension.
Thing is they all are triple digit precision and the one that Kylechu already implemented work fine. And the first three work fine too whereas they all are equally precise.
from ac-music-extension.
You had a few numbers formatted incorrectly. Javascript doesn't recognize numbers with unnecessary leading zeros. For example, you can't type "00.32", you would need to use either "0.32" or ".32". Additionally, you can't structure the end time as "1.29.519" on line 44. The number represents seconds, not a timecode - you would want "89.519".
Also, "24" isn't a valid hour - the times are zero indexed and go from 0-23. You likely either mean for that to be 0, or all of your hour values are shifted one value too high.
Once I fixed these issues, everything worked perfect for me.
from ac-music-extension.
The reason why it was killing everything is because AudioManager is making the assumption that a "loopTimes" object exists when it attempts to play a song. Since the invalid numbers were causing a parsing error when creating that object, loopTimes === undefined and AudioManager crashes when it attempts to check the attributes of the nonexistent object.
I could change it so AudioManager will play regardless and only looping will break, but personally, I feel like it's better as it is now than to have it silently fail if someone messes up a loop time.
EDIT: Also, there is no maximum precision on the loop times. SetTimeout isn't guaranteed to give you more than ~2-3ms of precision, so there isn't much point going past three decimal places, but writing more precise times won't crash anything.
from ac-music-extension.
I made a pull request with the fixes I mentioned - #19
Also, in the future if you have issues like this, I highly recommend using the web inspector for the background page. It makes it easy to track down the causes of simple bugs - that's how I tracked down what was causing this error. You can get to it through a link in the Manage Extensions page.
from ac-music-extension.
Thank you so much. <3
Though you didn't need to do a pull request I could've corrected it myself Haha, and these were only the first few, I am still doing the rest.
from ac-music-extension.
I had already gone through and corrected them so I could test whether that was the problem - doing the pull request only took about five seconds and I figured I might as well save you the trouble of redoing the work.
So this bug can be closed?
from ac-music-extension.
This issue can be closed as the fix was merged.
from ac-music-extension.
Related Issues (20)
- Suggestion: Website/Webstore music HOT 1
- (feature request) Play random looping ambiance from NH HOT 1
- Unknown Error Trying to update zip location HOT 1
- Google Drive link doesn't include New Horizons music HOT 5
- Live Weather Location HOT 1
- Error when inputting live weather location HOT 4
- Official Firefox Version Please? HOT 1
- Certain songs don't quite loop properly HOT 1
- Improve transitions between songs when using Live Weather feature
- missing from Chrome Web Extensions Store HOT 3
- Even more customization
- Removed chrome extension page HOT 2
- Animal Crossing GCN Rain music
- Getting it working on Opera GX
- make it so you can play midi files
- It doesn't appears in the Chrome Web Store HOT 4
- Extension not available anymore on the Chrome Web Store HOT 1
- Midi
- Add Rain Sounds To Rain Music
- Town tune plays multiple times simultaneously
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 ac-music-extension.