Skip to content

Commit e9fda83

Browse files
committed
changing sound playback setting
1 parent 07afdd5 commit e9fda83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

objectEditMenu.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ export function initializeObjectEditMenu(scene, camera, renderer, animationManag
301301
//add paper crumpling sound
302302
const audio = new Audio('https://www.soundjay.com/misc/sounds/paper-throw-1.mp3');
303303
audio.volume = 0.5; // Set volume to 50%
304+
//start audio .2 seconds in
305+
audio.currentTime = 0.2; // Start audio at 0.2 seconds
306+
audio.playbackRate = 1.5; // Set playback speed to 1.5x
304307
audio.play();
305308
});
306309

0 commit comments

Comments
 (0)