1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1x 1x 1x 1x 1x 1x 1x 46x 46x 21x 21x 21x | require('./array-includes-shim'); const Camera = require('./camera'); const Microphone = require('./microphone'); const Player = require('./player'); const Speaker = require('./speaker'); const install = require('./install'); module.exports = { Camera, Microphone, Player: function(args) { install('madplay'); return new Player(args); }, Speaker: function(args) { install('espeak'); install('madplay'); return new Speaker(args); }, }; |