Scratch for Java

Sprite::playSoundCopy()

Starts a separate copy of a sound at its own volume. Calling this again can overlap the previous copy. The returned handle controls only this play; stopSound() and stopAllSounds() also stop copies owned by this sprite. The sprite's ordinary volume does not change a copy's explicit volume.

Examples

View on GitHub

Syntax

Java

.playSoundCopy(name, volume)

Parameters

Name Data Type Description
name String a sound already added with addSound()
volume double volume from 0 to 100 percent

Return

SoundPlayback

playSoundCopy()

Create Shareable URL

Select Sections