webkitaudiocontext

WebKit Audio distorts on iOS 6 (iPhone 5) first time after power cycling

a 夏天 提交于 2019-12-03 17:57:26
问题 I've been struggling with an elusive audio distortion bug using webkitAudioContext in HTML5 under iOS 6. It can happen in other circumstances, but the only way I can get 100% repro is on the first visit to my page after power cycling the device. It seems like if you visit any audio-capable page prior to visiting this one, the problem will not occur. The distortion only happens to audio generated by webkitAudioContext.decodeAudioData() and then played through webkitAudioContext

Audio plays in Chrome but not Safari

别等时光非礼了梦想. 提交于 2019-12-02 18:08:01
问题 I've got an angular 5 application where I've set the click handler of a button to download an audio file and play it. I'm using this code to do so: onPreviewPressed(media: Media): void { const url = "....."; this.httpClient.get(url, {responseType: 'blob'}).subscribe(x => { const fileReader = new FileReader(); fileReader.onloadend = () => { const context = new ((<any>window).AudioContext || (<any>window).webkitAudioContext)(); const source = context.createBufferSource(); context

Using WebAudio API from NodeJs

陌路散爱 提交于 2019-11-29 05:03:58
I want to use WebAudio(AudioContext) in NodeJS. However NodeJS does not support WebAudio. There is an npm for web-audio-api but it is still in alpha stage and is incomplete. So how can I use WebAudio(AudioContext) in NodeJS. Can I instantiate a chrome browser environment from NodeJS and utilize its capabilties. Is this possible? Is there any other way to do it? Please help. You can use node-webkit or app.js to use WebAudio API and talk with it with socket.io. 来源: https://stackoverflow.com/questions/25197708/using-webaudio-api-from-nodejs

WebKit Audio distorts on iOS 6 (iPhone 5) first time after power cycling

拟墨画扇 提交于 2019-11-28 20:49:37
I've been struggling with an elusive audio distortion bug using webkitAudioContext in HTML5 under iOS 6. It can happen in other circumstances, but the only way I can get 100% repro is on the first visit to my page after power cycling the device. It seems like if you visit any audio-capable page prior to visiting this one, the problem will not occur. The distortion only happens to audio generated by webkitAudioContext.decodeAudioData() and then played through webkitAudioContext.createBufferSource(). Audio playback of webkitAudioContext.createMediaElementSource() will not distort. Am I missing

Using WebAudio API from NodeJs

独自空忆成欢 提交于 2019-11-27 18:52:19
问题 I want to use WebAudio(AudioContext) in NodeJS. However NodeJS does not support WebAudio. There is an npm for web-audio-api but it is still in alpha stage and is incomplete. So how can I use WebAudio(AudioContext) in NodeJS. Can I instantiate a chrome browser environment from NodeJS and utilize its capabilties. Is this possible? Is there any other way to do it? Please help. 回答1: You can use node-webkit or app.js to use WebAudio API and talk with it with socket.io. 来源: https://stackoverflow