mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Merge pull request #446 from Datamats/master
make webaudio work with cef
This commit is contained in:
commit
76b298ffd9
@ -130,9 +130,15 @@ function open()
|
||||
delete gain;
|
||||
}
|
||||
|
||||
audio = new webkitAudioContext;
|
||||
processor = audio.createJavaScriptNode(4096, 0, 1);
|
||||
gain = audio.createGainNode();
|
||||
if(typeof AudioContext != "undefined"){
|
||||
audio = new AudioContext;
|
||||
processor = audio.createScriptProcessor(4096, 0, 2);
|
||||
gain = audio.createGain();
|
||||
}else{
|
||||
audio = new webkitAudioContext;
|
||||
processor = audio.createJavaScriptNode(4096, 0, 1);
|
||||
gain = audio.createGainNode();
|
||||
}
|
||||
|
||||
processor.onaudioprocess = function(event)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user