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

Make sound editor work also

parent 16c32482
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ SoundEditor.propTypes = {
const mapStateToProps = (state, {soundIndex}) => {
const sound = state.vm.editingTarget.sprite.sounds[soundIndex];
const audioBuffer = state.vm.runtime.audioEngine.audioBuffers[sound.md5];
const audioBuffer = state.vm.getSoundBuffer(soundIndex);
return {
sampleRate: audioBuffer.sampleRate,
samples: audioBuffer.getChannelData(0),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment