I have some troubles while trying to reproduce different frequencies using two different audio channels (left and right) in JavaScript. I’ve been searching in StackOverflow and Internet for a while, but I didn’t find anything that could help me, so I decided to ask here for help. Let me explain first why I’m doing this. There’s a lot of people
Tag: audiocontext
Audiocontext demo. Volume is halved on Chrome/Android, crackles on Firefox
I did a pure CSS/JS piano keyboard using the AudioContext object but I have two problems related to the playTone function: On Chrome/android (v.89.0.4389.105/Android 10) it seems that the volume is halved at every key pressed: after a few notes played the volume is not audible anymore. On Firefox (v.88/MacOS 10.15.7) I hear a crackle at the end of every
How can I request user permission for audio on Chrome?
I am working on SAAS solution and I need customers to receive notification sounds from the application. Even if they just launched it without any interaction with it. Google has changed Chrome behaviour regarding this aspect and now user is required to click on webpage to get notification sounds. I have found out that it is possible to allow sounds
How to load audio file into AudioContext like stream?
For example i want to load 100MB mp3 file into AudioContext, and i can do that with using XMLHttpRequest. But with this solution i need to load all file and only then i can play it, because onprogress method don’t return data. Also i tried to do that with fetch method, but this way have same problem. There is any