Skip to content
This repository was archived by the owner on Jun 9, 2019. It is now read-only.

Commit c977957

Browse files
committed
Merge pull request #16 from mohayonao/v0.2.1
v0.2.1
2 parents 57e385f + 373fefe commit c977957

22 files changed

+101
-53
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "web-audio-test-api",
33
"description": "Web Audio API test library for CI",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"authors": [
66
"Nao Yonamine <[email protected]>"
77
],

build/web-audio-test-api.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ _.inherits(AnalyserNode, AnalyserNodeConstructor);
5050
AnalyserNode.exports = AnalyserNodeConstructor;
5151
AnalyserNode.jsonAttrs = [ "fftSize", "minDecibels", "maxDecibels", "smoothingTimeConstant" ];
5252

53-
AnalyserNode.prototype.getFloatFrequencyData = function() {
53+
AnalyserNodeConstructor.prototype.getFloatFrequencyData = function() {
5454
var inspector = new Inspector(this, "getFloatFrequencyData", [
5555
{ name: "array", type: "Float32Array" },
5656
]);
@@ -60,7 +60,7 @@ AnalyserNode.prototype.getFloatFrequencyData = function() {
6060
});
6161
};
6262

63-
AnalyserNode.prototype.getByteFrequencyData = function() {
63+
AnalyserNodeConstructor.prototype.getByteFrequencyData = function() {
6464
var inspector = new Inspector(this, "getByteFrequencyData", [
6565
{ name: "array", type: "Uint8Array" },
6666
]);
@@ -70,7 +70,7 @@ AnalyserNode.prototype.getByteFrequencyData = function() {
7070
});
7171
};
7272

73-
AnalyserNode.prototype.getByteTimeDomainData = function() {
73+
AnalyserNodeConstructor.prototype.getByteTimeDomainData = function() {
7474
var inspector = new Inspector(this, "getByteTimeDomainData", [
7575
{ name: "array", type: "Uint8Array" },
7676
]);
@@ -121,7 +121,7 @@ _.inherits(AudioBuffer, AudioBufferConstructor);
121121

122122
AudioBuffer.exports = AudioBufferConstructor;
123123

124-
AudioBuffer.prototype.getChannelData = function(channel) {
124+
AudioBufferConstructor.prototype.getChannelData = function(channel) {
125125
var inspector = new Inspector(this, "getChannelData", [
126126
{ name: "channel", type: "number" }
127127
]);
@@ -224,7 +224,7 @@ _.inherits(AudioBufferSourceNode, AudioBufferSourceNodeConstructor);
224224
AudioBufferSourceNode.exports = AudioBufferSourceNodeConstructor;
225225
AudioBufferSourceNode.jsonAttrs = [ "buffer", "playbackRate", "loop", "loopStart", "loopEnd" ];
226226

227-
AudioBufferSourceNode.prototype.start = function(when) {
227+
AudioBufferSourceNodeConstructor.prototype.start = function(when) {
228228
var inspector = new Inspector(this, "start", [
229229
{ name: "when", type: "optional number" },
230230
{ name: "offset", type: "optional number" },
@@ -241,7 +241,7 @@ AudioBufferSourceNode.prototype.start = function(when) {
241241
this._startTime = _.defaults(when, 0);
242242
};
243243

244-
AudioBufferSourceNode.prototype.stop = function(when) {
244+
AudioBufferSourceNodeConstructor.prototype.stop = function(when) {
245245
var inspector = new Inspector(this, "stop", [
246246
{ name: "when", type: "optional number" }
247247
]);
@@ -650,7 +650,7 @@ _.inherits(AudioListener, AudioListenerConstructor);
650650

651651
AudioListener.exports = AudioListenerConstructor;
652652

653-
AudioListener.prototype.setPosition = function() {
653+
AudioListenerConstructor.prototype.setPosition = function() {
654654
var inspector = new Inspector(this, "setPosition", [
655655
{ name: "x", type: "number" },
656656
{ name: "y", type: "number" },
@@ -662,7 +662,7 @@ AudioListener.prototype.setPosition = function() {
662662
});
663663
};
664664

665-
AudioListener.prototype.setOrientation = function() {
665+
AudioListenerConstructor.prototype.setOrientation = function() {
666666
var inspector = new Inspector(this, "setOrientation", [
667667
{ name: "x" , type: "number" },
668668
{ name: "y" , type: "number" },
@@ -677,7 +677,7 @@ AudioListener.prototype.setOrientation = function() {
677677
});
678678
};
679679

680-
AudioListener.prototype.setVelocity = function() {
680+
AudioListenerConstructor.prototype.setVelocity = function() {
681681
var inspector = new Inspector(this, "setVelocity", [
682682
{ name: "x", type: "number" },
683683
{ name: "y", type: "number" },
@@ -750,7 +750,7 @@ _.inherits(AudioNode, AudioNodeConstructor);
750750

751751
AudioNode.exports = AudioNodeConstructor;
752752

753-
AudioNode.prototype.connect = function(destination) {
753+
AudioNodeConstructor.prototype.connect = function(destination) {
754754
var inspector = new Inspector(this, "connect", [
755755
{ name: "destination", type: "AudioNode | AudioParam", validate: sameContext },
756756
{ name: "output" , type: "optional number", validate: checkNumberOfOutput },
@@ -787,7 +787,7 @@ AudioNode.prototype.connect = function(destination) {
787787
}
788788
};
789789

790-
AudioNode.prototype.disconnect = function() {
790+
AudioNodeConstructor.prototype.disconnect = function() {
791791
var inspector = new Inspector(this, "connect", [
792792
{ name: "output", type: "optional number", validate: checkNumberOfOutput },
793793
]);
@@ -922,7 +922,7 @@ _.inherits(AudioParam, AudioParamConstructor);
922922

923923
AudioParam.exports = AudioParamConstructor;
924924

925-
AudioParam.prototype.setValueAtTime = function(value, startTime) {
925+
AudioParamConstructor.prototype.setValueAtTime = function(value, startTime) {
926926
var inspector = new Inspector(this, "setValueTime", [
927927
{ name: "value" , type: "number" },
928928
{ name: "startTime", type: "number" },
@@ -939,7 +939,7 @@ AudioParam.prototype.setValueAtTime = function(value, startTime) {
939939
});
940940
};
941941

942-
AudioParam.prototype.linearRampToValueAtTime = function(value, endTime) {
942+
AudioParamConstructor.prototype.linearRampToValueAtTime = function(value, endTime) {
943943
var inspector = new Inspector(this, "linearRampToValueAtTime", [
944944
{ name: "value" , type: "number" },
945945
{ name: "endTime", type: "number" },
@@ -956,7 +956,7 @@ AudioParam.prototype.linearRampToValueAtTime = function(value, endTime) {
956956
});
957957
};
958958

959-
AudioParam.prototype.exponentialRampToValueAtTime = function(value, endTime) {
959+
AudioParamConstructor.prototype.exponentialRampToValueAtTime = function(value, endTime) {
960960
var inspector = new Inspector(this, "exponentialRampToValueAtTime", [
961961
{ name: "value" , type: "number" },
962962
{ name: "endTime", type: "number" },
@@ -973,7 +973,7 @@ AudioParam.prototype.exponentialRampToValueAtTime = function(value, endTime) {
973973
});
974974
};
975975

976-
AudioParam.prototype.setTargetAtTime = function(target, startTime, timeConstant) {
976+
AudioParamConstructor.prototype.setTargetAtTime = function(target, startTime, timeConstant) {
977977
var inspector = new Inspector(this, "setTargetAtTime", [
978978
{ name: "target" , type: "number" },
979979
{ name: "startTime" , type: "number" },
@@ -992,7 +992,7 @@ AudioParam.prototype.setTargetAtTime = function(target, startTime, timeConstant)
992992
});
993993
};
994994

995-
AudioParam.prototype.setValueCurveAtTime = function(values, startTime, duration) {
995+
AudioParamConstructor.prototype.setValueCurveAtTime = function(values, startTime, duration) {
996996
var inspector = new Inspector(this, "setValueCurveAtTime", [
997997
{ name: "values" , type: "Float32Array" },
998998
{ name: "startTime", type: "number" },
@@ -1011,7 +1011,7 @@ AudioParam.prototype.setValueCurveAtTime = function(values, startTime, duration)
10111011
});
10121012
};
10131013

1014-
AudioParam.prototype.cancelScheduledValues = function(startTime) {
1014+
AudioParamConstructor.prototype.cancelScheduledValues = function(startTime) {
10151015
var inspector = new Inspector(this, "cancelScheduledValues", [
10161016
{ name: "startTime", type: "number" },
10171017
]);
@@ -1221,7 +1221,7 @@ _.inherits(BiquadFilterNode, BiquadFilterNodeConstructor);
12211221
BiquadFilterNode.exports = BiquadFilterNodeConstructor;
12221222
BiquadFilterNode.jsonAttrs = [ "type", "frequency", "detune", "Q", "gain" ];
12231223

1224-
BiquadFilterNode.prototype.getFrequencyResponse = function() {
1224+
BiquadFilterNodeConstructor.prototype.getFrequencyResponse = function() {
12251225
var inspector = new Inspector(this, "getFrequencyResponse", [
12261226
{ name: "frequencyHz" , type: "Float32Array" },
12271227
{ name: "magResponse" , type: "Float32Array" },
@@ -1959,7 +1959,7 @@ _.inherits(OscillatorNode, OscillatorNodeConstructor);
19591959
OscillatorNode.exports = OscillatorNodeConstructor;
19601960
OscillatorNode.jsonAttrs = [ "type", "frequency", "detune" ];
19611961

1962-
OscillatorNode.prototype.start = function(when) {
1962+
OscillatorNodeConstructor.prototype.start = function(when) {
19631963
var inspector = new Inspector(this, "start", [
19641964
{ name: "when", type: "optional number" },
19651965
]);
@@ -1974,7 +1974,7 @@ OscillatorNode.prototype.start = function(when) {
19741974
this._startTime = _.defaults(when, 0);
19751975
};
19761976

1977-
OscillatorNode.prototype.stop = function(when) {
1977+
OscillatorNodeConstructor.prototype.stop = function(when) {
19781978
var inspector = new Inspector(this, "stop", [
19791979
{ name: "when", type: "optional number" },
19801980
]);
@@ -1992,7 +1992,7 @@ OscillatorNode.prototype.stop = function(when) {
19921992
this._stopTime = _.defaults(when, 0);
19931993
};
19941994

1995-
OscillatorNode.prototype.setPeriodicWave = function(periodicWave) {
1995+
OscillatorNodeConstructor.prototype.setPeriodicWave = function(periodicWave) {
19961996
var inspector = new Inspector(this, "setPeriodicWave", [
19971997
{ name: "periodicWave", type: "PeriodicWave" },
19981998
]);
@@ -2098,7 +2098,7 @@ PannerNode.jsonAttrs = [
20982098
"rolloffFactor", "coneInnerAngle", "coneOuterAngle", "coneOuterGain"
20992099
];
21002100

2101-
PannerNode.prototype.setPosition = function() {
2101+
PannerNodeConstructor.prototype.setPosition = function() {
21022102
var inspector = new Inspector(this, "setPosition", [
21032103
{ name: "x", type: "number" },
21042104
{ name: "y", type: "number" },
@@ -2110,7 +2110,7 @@ PannerNode.prototype.setPosition = function() {
21102110
});
21112111
};
21122112

2113-
PannerNode.prototype.setOrientation = function() {
2113+
PannerNodeConstructor.prototype.setOrientation = function() {
21142114
var inspector = new Inspector(this, "setOrientation", [
21152115
{ name: "x", type: "number" },
21162116
{ name: "y", type: "number" },
@@ -2122,7 +2122,7 @@ PannerNode.prototype.setOrientation = function() {
21222122
});
21232123
};
21242124

2125-
PannerNode.prototype.setVelocity = function() {
2125+
PannerNodeConstructor.prototype.setVelocity = function() {
21262126
var inspector = new Inspector(this, "setVelocity", [
21272127
{ name: "x", type: "number" },
21282128
{ name: "y", type: "number" },
@@ -2307,7 +2307,7 @@ var WebAudioAPI = require("./WebAudioAPI");
23072307

23082308
var WebAudioTestAPI = {};
23092309

2310-
WebAudioTestAPI.VERSION = "0.2.0";
2310+
WebAudioTestAPI.VERSION = "0.2.1";
23112311
WebAudioTestAPI.sampleRate = 44100;
23122312

23132313
WebAudioTestAPI.use = function() {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "web-audio-test-api",
33
"description": "Web Audio API test library for CI",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"author": "Nao Yonamine <[email protected]>",
66
"bugs": {
77
"url": "https://github.com/mohayonao/web-audio-test-api/issues"
88
},
99
"devDependencies": {
10-
"browserify": "^8.1.1",
10+
"browserify": "^8.1.3",
1111
"coveralls": "^2.11.2",
1212
"espower-loader": "^0.10.0",
1313
"istanbul": "^0.3.5",

src/AnalyserNode.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ _.inherits(AnalyserNode, AnalyserNodeConstructor);
4949
AnalyserNode.exports = AnalyserNodeConstructor;
5050
AnalyserNode.jsonAttrs = [ "fftSize", "minDecibels", "maxDecibels", "smoothingTimeConstant" ];
5151

52-
AnalyserNode.prototype.getFloatFrequencyData = function() {
52+
AnalyserNodeConstructor.prototype.getFloatFrequencyData = function() {
5353
var inspector = new Inspector(this, "getFloatFrequencyData", [
5454
{ name: "array", type: "Float32Array" },
5555
]);
@@ -59,7 +59,7 @@ AnalyserNode.prototype.getFloatFrequencyData = function() {
5959
});
6060
};
6161

62-
AnalyserNode.prototype.getByteFrequencyData = function() {
62+
AnalyserNodeConstructor.prototype.getByteFrequencyData = function() {
6363
var inspector = new Inspector(this, "getByteFrequencyData", [
6464
{ name: "array", type: "Uint8Array" },
6565
]);
@@ -69,7 +69,7 @@ AnalyserNode.prototype.getByteFrequencyData = function() {
6969
});
7070
};
7171

72-
AnalyserNode.prototype.getByteTimeDomainData = function() {
72+
AnalyserNodeConstructor.prototype.getByteTimeDomainData = function() {
7373
var inspector = new Inspector(this, "getByteTimeDomainData", [
7474
{ name: "array", type: "Uint8Array" },
7575
]);

src/AudioBuffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _.inherits(AudioBuffer, AudioBufferConstructor);
3636

3737
AudioBuffer.exports = AudioBufferConstructor;
3838

39-
AudioBuffer.prototype.getChannelData = function(channel) {
39+
AudioBufferConstructor.prototype.getChannelData = function(channel) {
4040
var inspector = new Inspector(this, "getChannelData", [
4141
{ name: "channel", type: "number" }
4242
]);

src/AudioBufferSourceNode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ _.inherits(AudioBufferSourceNode, AudioBufferSourceNodeConstructor);
6565
AudioBufferSourceNode.exports = AudioBufferSourceNodeConstructor;
6666
AudioBufferSourceNode.jsonAttrs = [ "buffer", "playbackRate", "loop", "loopStart", "loopEnd" ];
6767

68-
AudioBufferSourceNode.prototype.start = function(when) {
68+
AudioBufferSourceNodeConstructor.prototype.start = function(when) {
6969
var inspector = new Inspector(this, "start", [
7070
{ name: "when", type: "optional number" },
7171
{ name: "offset", type: "optional number" },
@@ -82,7 +82,7 @@ AudioBufferSourceNode.prototype.start = function(when) {
8282
this._startTime = _.defaults(when, 0);
8383
};
8484

85-
AudioBufferSourceNode.prototype.stop = function(when) {
85+
AudioBufferSourceNodeConstructor.prototype.stop = function(when) {
8686
var inspector = new Inspector(this, "stop", [
8787
{ name: "when", type: "optional number" }
8888
]);

src/AudioListener.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ _.inherits(AudioListener, AudioListenerConstructor);
2828

2929
AudioListener.exports = AudioListenerConstructor;
3030

31-
AudioListener.prototype.setPosition = function() {
31+
AudioListenerConstructor.prototype.setPosition = function() {
3232
var inspector = new Inspector(this, "setPosition", [
3333
{ name: "x", type: "number" },
3434
{ name: "y", type: "number" },
@@ -40,7 +40,7 @@ AudioListener.prototype.setPosition = function() {
4040
});
4141
};
4242

43-
AudioListener.prototype.setOrientation = function() {
43+
AudioListenerConstructor.prototype.setOrientation = function() {
4444
var inspector = new Inspector(this, "setOrientation", [
4545
{ name: "x" , type: "number" },
4646
{ name: "y" , type: "number" },
@@ -55,7 +55,7 @@ AudioListener.prototype.setOrientation = function() {
5555
});
5656
};
5757

58-
AudioListener.prototype.setVelocity = function() {
58+
AudioListenerConstructor.prototype.setVelocity = function() {
5959
var inspector = new Inspector(this, "setVelocity", [
6060
{ name: "x", type: "number" },
6161
{ name: "y", type: "number" },

src/AudioNode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ _.inherits(AudioNode, AudioNodeConstructor);
5656

5757
AudioNode.exports = AudioNodeConstructor;
5858

59-
AudioNode.prototype.connect = function(destination) {
59+
AudioNodeConstructor.prototype.connect = function(destination) {
6060
var inspector = new Inspector(this, "connect", [
6161
{ name: "destination", type: "AudioNode | AudioParam", validate: sameContext },
6262
{ name: "output" , type: "optional number", validate: checkNumberOfOutput },
@@ -93,7 +93,7 @@ AudioNode.prototype.connect = function(destination) {
9393
}
9494
};
9595

96-
AudioNode.prototype.disconnect = function() {
96+
AudioNodeConstructor.prototype.disconnect = function() {
9797
var inspector = new Inspector(this, "connect", [
9898
{ name: "output", type: "optional number", validate: checkNumberOfOutput },
9999
]);

0 commit comments

Comments
 (0)