Sketchware

Sketchware

  • Docs
  • Community
  • Blog

›Components

The Basics

  • Getting Started
  • Creating a New Project
  • Designing Your App
  • Programming Your App
  • Adding Components
  • Adding Resources

Firebase

  • Getting Started
  • Linking Android App
  • Project Settings
  • Setting Database Rules
  • Enabling Login Methods
  • Enabling Firebase Storage

AdMob

  • Getting Started
  • Creating Ad Unit
  • Sketchware AdMob Settings

Publishing

  • Getting Started
  • Creating a Service Account
  • First Time Publishing

Components

  • Intent
  • SharedPreference
  • Calendar
  • Vibrator
  • Timer
  • Dialog
  • MediaPlayer
  • SoundPool
  • ObjectAnimator
  • Camera
  • FilePicker
  • Gyroscope
  • Firebase DB
  • Firebase Auth
  • Firebase Storage

SoundPool

Unlike SoundPool, SoundPool is used to play short sounds, such as sound effects.

Example

Loading a single sound effect and playing it.

example



Blocks

create max stream count

Create a SoundPool instance with maximum number of sounds it can hold.

create

TypeExplanationRequired
SoundPoolSoundPool ComponentYes
SoundSound file to loadYes

SoundID load

Load a sound file and set a number variable.

load

TypeExplanationRequired
SoundPoolSoundPool ComponentYes
SoundSound file to loadYes

play Sound ID

Play the sound file with the matching Sound ID.

play

TypeExplanationRequired
SoundPoolSoundPool ComponentYes
SoundSound file to loadYes

stop stream ID

Stop the sound file with the matching Sound ID.

stop

TypeExplanationRequired
SoundPoolSoundPool ComponentYes
SoundSound file to loadYes
← MediaPlayerObjectAnimator →
  • Example
  • Blocks
    • create max stream count
    • SoundID load
    • play Sound ID
    • stop stream ID
Sketchware
Docs
Getting Started
Community
FacebookSlack
More
BlogMedium
Copyright © 2018 Sketchware