Commit graph

6673 commits

Author SHA1 Message Date
Manish Goregaokar
a1fe48d721 Use JS_GetArrayBufferViewBuffer with JS_DetachArrayBuffer 2018-07-30 16:42:38 -07:00
Anthony Ramine
43463e80cb Remove an obsolete todo in gl.compileShader()
We get the uniform data etc at link-time.
2018-07-31 00:28:14 +02:00
Anthony Ramine
6af2ce79a2 Remove an obsolete todo in gl.attachShader()
Attaching the same shader twice should indeed emit an InvalidOperation error.
2018-07-31 00:28:14 +02:00
Fernando Jiménez Moreno
b738d9a912 Throw if AudioBufferSourceNode.Start params are negative 2018-07-30 19:54:55 +02:00
Fernando Jiménez Moreno
3b8cb83e04 Make OfflineAudioContextOptions spec compliant 2018-07-30 18:50:36 +02:00
Fernando Jiménez Moreno
ce828c0071 Get rooting out of AudioBuffer::new_inherited 2018-07-30 14:24:42 +02:00
Fernando Jiménez Moreno
6aaf5806b1 OfflineAudioContext 2018-07-30 14:23:48 +02:00
Fernando Jiménez Moreno
75dd050e57 Fix rebase mistake 2018-07-30 14:23:47 +02:00
Manish Goregaokar
00014b3f16 Add AudioParam connection support 2018-07-30 14:23:46 +02:00
Fernando Jiménez Moreno
acb03603b6 Fire AudioScheduledSourceNode.onended when playback stops 2018-07-30 14:23:46 +02:00
Fernando Jiménez Moreno
c9ff1b9f57 Enter compartment during AudioBuffer creation 2018-07-30 14:23:46 +02:00
Fernando Jiménez Moreno
596640595c Root JS channels during AudioBuffer construction 2018-07-30 14:23:46 +02:00
Fernando Jiménez Moreno
c617ca0d30 Remove commented code 2018-07-30 14:23:46 +02:00
Fernando Jiménez Moreno
477907e578 Do not copy initial data during AudioBuffer construction and use JS_DetachArrayBuffer 2018-07-30 14:23:45 +02:00
Fernando Jiménez Moreno
1649b6a528 Fix build errors after rebase 2018-07-30 14:23:45 +02:00
Fernando Jiménez Moreno
562e58ac49 AudioParam value getter 2018-07-30 14:21:48 +02:00
Fernando Jiménez Moreno
21cb160be3 test-tidy fixes 2018-07-30 14:21:48 +02:00
Fernando Jiménez Moreno
f0a691e474 Update servo-media after crate split up. Allows building for Android 2018-07-30 14:21:48 +02:00
Fernando Jiménez Moreno
b68c791b8d Remove unimplemented PeriodicWave stub 2018-07-30 14:21:48 +02:00
Fernando Jiménez Moreno
ebcbe2ff7d Mark DecodeResolver as must_root 2018-07-30 14:21:47 +02:00
Fernando Jiménez Moreno
8a6ea00f58 Reference issue to support the AudioScheduledSourceNode.ended event 2018-07-30 14:21:47 +02:00
Fernando Jiménez Moreno
3dde730f9b AudioParam automation rate setter 2018-07-30 14:21:47 +02:00
Fernando Jiménez Moreno
758ae94aa1 AudioNode channel related properties getter and setter fixes 2018-07-30 14:21:47 +02:00
Fernando Jiménez Moreno
abccf68a47 Clarify that servo-media deals with duplicated connections 2018-07-30 14:21:47 +02:00
Fernando Jiménez Moreno
b26a3bd31b rustfmt 2018-07-30 14:21:46 +02:00
Fernando Jiménez Moreno
3fc9ecace0 Make restore_js_channel_data unsafe 2018-07-30 14:21:46 +02:00
Manish Goregaokar
8172b4f960 Remove unnecessary comment
This check is implicitly handled by the graph impl
2018-07-30 14:21:46 +02:00
Manish Goregaokar
b7730da37d Add spec link to AudioBuffer::Constructor 2018-07-30 14:21:46 +02:00
Manish Goregaokar
02aaf55cd3 Pass global to AudioBuffer::new_inherited 2018-07-30 14:21:46 +02:00
Manish Goregaokar
723f1b0582 Fix construction of destination node (#6)
* Fix comparison of audiocontexts

* Fix comparison

* Fix destination node construction
2018-07-30 14:21:45 +02:00
Manish Goregaokar
6ac4b4b8e0 Fix context comparison (#5)
* Fix comparison of audiocontexts

* Fix comparison
2018-07-30 14:21:45 +02:00
Manish Goregaokar
f0d04249f9 Use new params impl (#4)
* AudioNodeType -> AudioNodeInit

* Use new param type system, clean up
2018-07-30 14:21:44 +02:00
Manish Goregaokar
8f9a081ff0 Fix Trusted usage in audio decoder to queue tasks (#3) 2018-07-30 14:21:44 +02:00
Fernando Jiménez Moreno
911b8ebd79 Remove unsafe code to create empty AudioNodeOptions 2018-07-30 14:21:44 +02:00
Fernando Jiménez Moreno
b87fc17b4b decodeAudioData 2018-07-30 14:21:44 +02:00
Fernando Jiménez Moreno
e0e1141e74 Undo trace impl for Mutex<T> 2018-07-30 14:21:43 +02:00
Fernando Jiménez Moreno
4cadc336a9 AudioBuffer CopyFromChannel and CopyToChannel 2018-07-30 14:21:43 +02:00
Manish Goregaokar
f3bc183dba Add disconnect methods; cleanup DOM stuff (#2)
* Add disconnect methods

* Use Dom, not DomRoot

DomRoot will keep it permanently rooted, it should only be used in
values not on the JS heap
2018-07-30 14:21:43 +02:00
Fernando Jiménez Moreno
23f7a73622 Copy AudioBufferSourceNode buffer 2018-07-30 14:21:43 +02:00
Fernando Jiménez Moreno
356d7fd7a6 createBufferSource and buffer setter on buffer source node 2018-07-30 14:21:43 +02:00
Fernando Jiménez Moreno
25a74a75ea Create AudioBuffer from BaseAudioContext 2018-07-30 14:21:42 +02:00
Fernando Jiménez Moreno
cb16c596b3 AudioBuffer.GetChannelData and internal storage 2018-07-30 14:21:42 +02:00
Fernando Jiménez Moreno
0cb053ad4c AudioBufferSourceNode stubs 2018-07-30 14:21:42 +02:00
Fernando Jiménez Moreno
3fe38a99ad AudioBuffer stub 2018-07-30 14:21:42 +02:00
Fernando Jiménez Moreno
93990d437e OscillatorNode detune param 2018-07-30 14:21:42 +02:00
Fernando Jiménez Moreno
0e92efbb79 BaseAudioContext.CreateGain() 2018-07-30 14:21:42 +02:00
Fernando Jiménez Moreno
02c39eb9ef GainNode 2018-07-30 14:21:41 +02:00
Fernando Jiménez Moreno
986c2f7842 Expose more AudioParam methods 2018-07-30 14:21:41 +02:00
Fernando Jiménez Moreno
97aa142993 Queue statechange event 2018-07-30 14:21:41 +02:00
Fernando Jiménez Moreno
7380f69f77 Initial AudioParam bindings 2018-07-30 14:21:41 +02:00