Commit graph

46 commits

Author SHA1 Message Date
Mauricio Collares
992e7ba630 AudioBuffer: Track sample rate 2019-08-19 14:36:30 -03:00
marmeladema
b08a3e6217 Remove some usage of unsafe code in AudioBuffer 2019-08-09 00:02:09 +01:00
marmeladema
88cacfb009 Modify *::get_cx methods to return a safe JSContext instead of a raw one 2019-07-24 09:53:10 +01:00
marmeladema
2c5d0a6ebc Convert CGTraitInterface to use safe JSContext instead of raw JSContext 2019-07-24 08:24:50 +01:00
Kamil Niski
adb402487e Create a helper API for entering a DOM object's compartment
Revert some unnecessary changes

Fix fmt errors
2019-06-29 19:23:17 +02:00
Josh Matthews
63714c90fb Upgrade to Spidermonkey 67. 2019-06-26 18:10:46 -04:00
Josh Matthews
4328713f71 Update to SpiderMonkey 66. 2019-05-10 22:43:43 -04:00
Josh Matthews
57d2b5a92d Remove mozjs dep from malloc_size_of. 2019-05-02 09:30:03 -04:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
Pyfisch
9e92eb205a Reorder imports 2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6 Format remaining files 2018-11-06 22:30:31 +01:00
Simon Sapin
9f9bf8f6bc Switch most crates to the 2018 edition 2018-11-06 16:12:04 +01:00
Simon Sapin
45f7199eee cargo fix --edition 2018-11-06 15:26:02 +01:00
Fernando Jiménez Moreno
091ad49d68 Allow reusing AudioBuffers 2018-10-11 19:27:21 +02:00
Manish Goregaokar
600f997a51 Increase webaudio sample rate threshold to match firefox 2018-10-10 17:32:12 -07:00
Fernando Jiménez Moreno
4a927b5b78 Rustfmt audiobuffer.rs 2018-09-19 07:28:12 +02:00
Fernando Jiménez Moreno
138c739205 Keep shared and js channels in sync 2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
346d705c66 Do not skip buffer update during copyToChannel 2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
a81389268a Throw IndexError if start_in_channel is equal to ArrayBuffer length 2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
10e8ab3892 Apply start_in_channel to destination and not source during AudioBuffer.CopyToChannel 2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
e0e1f5f900 Implement AudioBufferSourceOptions.AudioBuffer and always keep servo media audio buffer updated 2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
5307766ed2 Check AudioBuffer options constraints 2018-09-19 06:54:16 +02:00
Fernando Jiménez Moreno
b8ade93538 Throw when trying to copy AudioBuffer data from or to a SharedArrayBuffer 2018-09-19 06:54:16 +02:00
Fernando Jiménez Moreno
e80ac0000f Fix AudioBuffer crash. Do not modify number of channels while moving from shared to js channels 2018-09-19 06:54:16 +02:00
Fernando Jiménez Moreno
f423ede07f Add support for multichannel decoded audio 2018-09-11 10:38:56 +02:00
Alan Jeffrey
74c1e00d81 Upgraded to SM 60 2018-08-20 18:22:29 -04:00
Manish Goregaokar
a1fe48d721 Use JS_GetArrayBufferViewBuffer with JS_DetachArrayBuffer 2018-07-30 16:42:38 -07: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
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
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
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
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
Fernando Jiménez Moreno
b87fc17b4b decodeAudioData 2018-07-30 14:21:44 +02:00
Fernando Jiménez Moreno
4cadc336a9 AudioBuffer CopyFromChannel and CopyToChannel 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
3fe38a99ad AudioBuffer stub 2018-07-30 14:21:42 +02:00