mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 18:42:00 +01:00
Added api property to changedFunctions.
This commit is contained in:
parent
e9fbb7259e
commit
1abc681e3f
@ -443,6 +443,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Object.keys(scope.changedFunctions).forEach(function(key){
|
||||||
|
scope.changedFunctions[key].api = "canvas";
|
||||||
|
});
|
||||||
Object.keys(modifiedAudioAPI.changedFunctions).forEach(function(key){
|
Object.keys(modifiedAudioAPI.changedFunctions).forEach(function(key){
|
||||||
scope.changedFunctions[key] = modifiedAudioAPI.changedFunctions[key];
|
scope.changedFunctions[key] = modifiedAudioAPI.changedFunctions[key];
|
||||||
});
|
});
|
||||||
|
@ -96,8 +96,6 @@
|
|||||||
// changed functions and their fakes
|
// changed functions and their fakes
|
||||||
scope.changedFunctions = {
|
scope.changedFunctions = {
|
||||||
getFloatFrequencyData: {
|
getFloatFrequencyData: {
|
||||||
type: "readout",
|
|
||||||
getStatus: getStatus,
|
|
||||||
object: ["AnalyserNode"],
|
object: ["AnalyserNode"],
|
||||||
fakeGenerator: function(prefs, notify, window, original){
|
fakeGenerator: function(prefs, notify, window, original){
|
||||||
return function getFloatFrequencyData(array){
|
return function getFloatFrequencyData(array){
|
||||||
@ -109,8 +107,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getByteFrequencyData: {
|
getByteFrequencyData: {
|
||||||
type: "readout",
|
|
||||||
getStatus: getStatus,
|
|
||||||
object: ["AnalyserNode"],
|
object: ["AnalyserNode"],
|
||||||
fakeGenerator: function(prefs, notify, window, original){
|
fakeGenerator: function(prefs, notify, window, original){
|
||||||
return function getByteFrequencyData(array){
|
return function getByteFrequencyData(array){
|
||||||
@ -135,8 +131,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getByteTimeDomainData: {
|
getByteTimeDomainData: {
|
||||||
type: "readout",
|
|
||||||
getStatus: getStatus,
|
|
||||||
object: ["AnalyserNode"],
|
object: ["AnalyserNode"],
|
||||||
fakeGenerator: function(prefs, notify, window, original){
|
fakeGenerator: function(prefs, notify, window, original){
|
||||||
return function getByteTimeDomainData(array){
|
return function getByteTimeDomainData(array){
|
||||||
@ -148,8 +142,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getChannelData: {
|
getChannelData: {
|
||||||
type: "readout",
|
|
||||||
getStatus: getStatus,
|
|
||||||
object: ["AudioBuffer"],
|
object: ["AudioBuffer"],
|
||||||
fakeGenerator: function(prefs, notify, window, original){
|
fakeGenerator: function(prefs, notify, window, original){
|
||||||
return function getChannelData(channel){
|
return function getChannelData(channel){
|
||||||
@ -161,8 +153,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
copyFromChannel: {
|
copyFromChannel: {
|
||||||
type: "readout",
|
|
||||||
getStatus: getStatus,
|
|
||||||
object: ["AudioBuffer"],
|
object: ["AudioBuffer"],
|
||||||
fakeGenerator: function(prefs, notify, window, original){
|
fakeGenerator: function(prefs, notify, window, original){
|
||||||
return function copyFromChannel(destination, channelNumber, startInChannel){
|
return function copyFromChannel(destination, channelNumber, startInChannel){
|
||||||
@ -174,8 +164,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getFrequencyResponse: {
|
getFrequencyResponse: {
|
||||||
type: "readout",
|
|
||||||
getStatus: getStatus,
|
|
||||||
object: ["BiquadFilterNode", "IIRFilterNode"],
|
object: ["BiquadFilterNode", "IIRFilterNode"],
|
||||||
fakeGenerator: function(prefs, notify, window, original){
|
fakeGenerator: function(prefs, notify, window, original){
|
||||||
return function getFrequencyResponse(frequencyArray, magResponseOutput, phaseResponseOutput){
|
return function getFrequencyResponse(frequencyArray, magResponseOutput, phaseResponseOutput){
|
||||||
@ -188,4 +176,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Object.keys(scope.changedFunctions).forEach(function(key){
|
||||||
|
scope.changedFunctions[key].type = "readout";
|
||||||
|
scope.changedFunctions[key].getStatus = getStatus;
|
||||||
|
scope.changedFunctions[key].api = "audio";
|
||||||
|
});
|
||||||
}());
|
}());
|
Loading…
x
Reference in New Issue
Block a user