Scratch for Java

Sprite::addSound()

Adds a sound (WAV or OGG).

Examples

View on GitHub

Syntax

Java

.addSound(name, soundPath)
.addSound(soundPath)

Parameters

Name Data Type Description
name String the sound's name, for playSound(String)
soundPath String the sound file

Return

void

addSound()

Create Shareable URL

Select Sections