GSDP:GAM100/CProcessing/PSound

From Inside
Jump to: navigation, search

PSound

Description

PSound can be used to store a loaded sound. Use soundLoad() to load a sound and soundPlay() to play a sound.

Example

PSound mySound;
void init()
{
  mySound = soundLoad("./Assets/808cowbell.wav");
}

void update() 
{
    // If the left mouse is clicked, play the sound
    if (mouseClicked())
        soundPlay(mySound, false);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>