sbx-react-sound
v1.0.6
Published
sbx-react-sound
Downloads
145
Readme
sbx-client-sound
sbx i --save sbx-client-sound
import Sound from 'sbx-clint-sound';
export default new Sound({
get volume() {
return Store.get('sound')
},
sounds: {
info: new Audio(require('assets/sounds/info.mp3')),
error: new Audio(require('assets/sounds/error.ogg')),
success: new Audio(require('assets/sounds/success.mp3')),
click: new Audio(require('assets/sounds/sound_click.ogg')),
sent: new Audio(require('assets/sounds/sent.mp3')),
message: new Audio(require('assets/sounds/message.mp3')),
}
});