Skip to content
Snippets Groups Projects
Commit 0b71d4f6 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Indent previous then also

parent d5c4de62
Branches
Tags
No related merge requests found
......@@ -31,15 +31,16 @@ class SoundLibrary extends React.PureComponent {
const idParts = md5ext.split('.');
const md5 = idParts[0];
const vm = this.props.vm;
vm.runtime.storage.load(vm.runtime.storage.AssetType.Sound, md5).then(soundAsset => {
const sound = {
md5: md5ext,
name: soundItem.name,
format: soundItem.format,
data: soundAsset.data
};
return this.audioEngine.decodeSound(sound);
})
vm.runtime.storage.load(vm.runtime.storage.AssetType.Sound, md5)
.then(soundAsset => {
const sound = {
md5: md5ext,
name: soundItem.name,
format: soundItem.format,
data: soundAsset.data
};
return this.audioEngine.decodeSound(sound);
})
.then(soundId => {
this.player.playSound(soundId);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment