-
Notifications
You must be signed in to change notification settings - Fork 59
Heavy load cracks on Firefox and CPU never comes back flat #64
Comments
Hello, did anyone have a look to this issue. The soundfont-player is not usable with Firefox, and I have not been able to identify why. I will have to stop using the player and use one I built. Sad because this one is a bit more flexible than mine. |
I'll take a look at this issue today. Can you specify your OS version and Firefox version? Have you tested in other browsers? Any other information that could be relevant will be welcomed. |
Hello, indeed I should have given more information about my tests I have tested with:
I have not seen the issue on Chrome 10 (neither cracks not CPU issue) Let me know if you need more information or if you need me to do more investigations Thanks |
Hi @dengarcia I've tested the exact code you posted before on Firefox (v63.0.1) and worked exactly the same as in Chrome. I don't know what's your problem, but I couldn't reproduce it. Anyway, I have to say that scheduling capabilities of this library are very limited (to say it as best). Instead of scheduling 200 notes in advance, it's better to have a function that is called every second (for example) and just schedule the 10 notes of that second. You can find more info here: https://www.html5rocks.com/en/tutorials/audio/scheduling/ |
Hello, Thank you for your reply. There is a possibility it depends on the computer and the environment, that said I have tested on three computers with high and low spec, and consistantly found the same issue. Here is an improved example showing the issue consitantly for me on Firefox and not on Chrome
I have added Test2 which loads the same sound and plays it in a buffer I create with AudioContext. There is no issue at all with Test2 So I believe there is something done in the soundfont-player that adds something that breaks in Firefox. I will try to investigate in detail again in soundfont-player. But let me know if you still don't see the issue with this test.
Denis |
I experience this problem, too. In Firefox, when the audio becomes just moderately stressed, the sound becomes crackled. I don't schedule sounds, just play them in real time. My environment is Windows 10 Personal Edition. |
Edit: This comment was on an older version! I experience this problem, too. On Firefox 84.0.2 (64-bit) on Mac Catalina 10.15.7: In activity monitor, I see the process On Chrome 87.0.4280.88 (Official Build) (x86_64), CPU stays low given the same actions and timescale, and there is no crackling |
I was not on the latest version of soundfont-player, and can't replicate the bug in the newest version. My apologies for posting prematurely on something that is likely already fixed. |
Hmm I'm not sure, I've only recently started using this soundfont player last week to make a simple piano and I'm running into the exact issue as kenanbit described when I use Firefox 85.0.1 (64-bit) on Windows 10. Chrome works fine. |
I have exactly the same issue on Arch, Firefox 94.0. I used this for a toy project: https://ws-songbird.toolforge.org/ and if you turn on the Wikidata events, the sounds eventually goes crackly and stays that way. In the example at the top of this issue, setting |
Hi have spent some time trying to understand where the difference comes from in Firefox and Chrome and I am now reaching to you for help.
I run the following code that works well on Chrome (no crack and CPU comes back near flat after the test) but in Firefox it cracks and CPU is high and never goes back down even a few minutes after the test is finished.
Is that a bug in Firefox or is that a bug in the library?
The code will execute play on the instrument (woodblock) every 0.1 second for 20 seconds.
The text was updated successfully, but these errors were encountered: