Skip to content

Commit

Permalink
Update src/playground/block_entry.js
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
leunge and github-actions[bot] authored Jan 7, 2025
1 parent cba9602 commit 2764f60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/playground/block_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -2709,7 +2709,9 @@ function getBlocks() {
const sounds = sprite.parent.sounds;
const isExist = Entry.isExist(soundId, 'id', sounds);
if (isExist) {
const duration = Math.floor(sound.duration * 1000 / Entry.playbackRateValue);
const duration = Math.floor(
(sound.duration * 1000) / Entry.playbackRateValue
);
const instance = Entry.Utils.playSound(soundId);
Entry.Utils.addSoundInstances(instance);
setTimeout(() => {
Expand Down

0 comments on commit 2764f60

Please sign in to comment.