audiovanish-plugin-soundpack-default
Version:
16 lines (12 loc) • 311 B
JavaScript
var path = require('path'),
fs = require('fs'),
Sounds = {};
Sounds.get = function(sounds, callback) {
fs.readdir(__dirname + '/sounds', function(err, files) {
files.forEach(function(file) {
sounds.push(__dirname + '/sounds/' + file);
});
callback(null, sounds);
});
};
module.exports = Sounds;